SketchUcation Plugin Store

 

 

Textures on a dynamic component

Textures on a dynamic component

Postby meister-mischler » Mon Apr 30, 2012 8:51 am

I created a dynamic component, which calculates the volume of a "paper" box. The size of the unfolded piece of paper is set to 24 by 16 cm. Depending on the height of the box (that can be choosen in the dialogbox), you get a different volume.
For educational purposes these functions are just great. :ecstatic:

The texture unfortunatly gets scaled when the box height is altered. Is there a way to avoid that or can somebody help with a workaround?

Regards
Kurt
Please, register (free) to access all the attachments on the forums.
meister-mischler
 
Posts: 27
Joined: Sun Nov 15, 2009 5:01 pm
Location: Switzerland
Name: Kurt
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: education
Level of SketchUp: Intermediate

Re: Textures on a dynamic component

Postby Brodie » Mon Apr 30, 2012 8:54 pm

I've run into the same issue and I don't believe there's a good fix for this. When you scale an object, the texture scales too and that's all there is to it. If your end goal is rendering some rendering software may be able to help you out, but nothing within SU itself.

I'd like to see some sort of plugin fix for this perhaps that could go into all groups and reapply the materials to fix the stretching but I don't know of such a plugin

-Brodie
Hardware: Intel i7 980x 3.33 Ghz 6-Core Processor
nVidia Quadro FX 3700 512Mb, 18.0 G RAM
Software: Maxwell 2.5, SketchUp 8, 3ds Max 2011, Vray, Adobe CS5, AutoCAD 2007, Windows 7 64-bit
User avatar
Brodie
Top SketchUcator
 
Posts: 1345
Joined: Mon Mar 10, 2008 11:33 pm

Re: Textures on a dynamic component

Postby meister-mischler » Mon Apr 30, 2012 9:58 pm

Hi Brodie

If your end goal is rendering

No, that's not my goal. The texture may help the students to understand, how wide, long and deep the box is. Each square is (should be) a square centimeter. ;-)

Regards
Kurt
meister-mischler
 
Posts: 27
Joined: Sun Nov 15, 2009 5:01 pm
Location: Switzerland
Name: Kurt
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: education
Level of SketchUp: Intermediate

Re: Textures on a dynamic component

Postby Brodie » Tue May 01, 2012 11:04 pm

In that case you may be able to accomplish your goal with geometry rather than textures. Instead of a 1cm x 1cm texture maybe you could use 1cm x 1cm components. You could fix their scale in the DC options to 1cm x 1cm and then have add a COPY option to the component so that when you scale the overall object to, say, 50cm long, it creates 50 of those 1cm components. The only drawback would be that you'd have to limit the scaling options to 1cm increments. Does that make sense?

-Brodie
Hardware: Intel i7 980x 3.33 Ghz 6-Core Processor
nVidia Quadro FX 3700 512Mb, 18.0 G RAM
Software: Maxwell 2.5, SketchUp 8, 3ds Max 2011, Vray, Adobe CS5, AutoCAD 2007, Windows 7 64-bit
User avatar
Brodie
Top SketchUcator
 
Posts: 1345
Joined: Mon Mar 10, 2008 11:33 pm

Re: Textures on a dynamic component

Postby meister-mischler » Wed May 02, 2012 8:18 am

Does that make sense?

Definitly! But as I am a bloody beginner with DC I have gone the way I could handle. ;) Changing this to geometry is perhaps a challenge when I have got more experience. By now I have no idea how to start.

Kurt
meister-mischler
 
Posts: 27
Joined: Sun Nov 15, 2009 5:01 pm
Location: Switzerland
Name: Kurt
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: education
Level of SketchUp: Intermediate

Re: Textures on a dynamic component

Postby Brodie » Wed May 02, 2012 4:54 pm

I'd start by downloading something like a fence DC which copies the fence posts as you scale the fence up. That'll show you how to fix the size of the fence posts and how to determine how far apart the posts are from each other. You should be able to then translate that into what you're doing where the 'fence posts' are 1cmx1cm squares and the number of copies is the total length divided by 1cm minus 1.

So if the total length is 10 cm the equation would be calculated 10/1 - 1 = 9 giving you your 1 original square and 9 copies.

-Brodie
Hardware: Intel i7 980x 3.33 Ghz 6-Core Processor
nVidia Quadro FX 3700 512Mb, 18.0 G RAM
Software: Maxwell 2.5, SketchUp 8, 3ds Max 2011, Vray, Adobe CS5, AutoCAD 2007, Windows 7 64-bit
User avatar
Brodie
Top SketchUcator
 
Posts: 1345
Joined: Mon Mar 10, 2008 11:33 pm

Re: Textures on a dynamic component

Postby meister-mischler » Thu May 03, 2012 9:33 pm

I will try and do my very best. ;-)
meister-mischler
 
Posts: 27
Joined: Sun Nov 15, 2009 5:01 pm
Location: Switzerland
Name: Kurt
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: education
Level of SketchUp: Intermediate

Re: Textures on a dynamic component

Postby DareDevil » Sat May 05, 2012 11:06 am

Perhaps something like that :

Box.jpg

Box.skp

The 1cm×1cm square don't exit, it's only lines on the box faces, so you can't texture them like a checker.
 
Please, register (free) to access all the attachments on the forums.
User avatar
DareDevil
 
Posts: 360
Joined: Sun Mar 15, 2009 10:19 pm
Location: Marseille, France
Name: Didier D

Re: Textures on a dynamic component

Postby meister-mischler » Mon May 07, 2012 10:44 am

It looks good! :D
texture them like a checker

It is not a must. I'am fine with your solution.

When I choose "LenZ = 1cm" the copies are not shown. I will figure it out when i going to spend more time to DC. ;-)

General question: Are DC often used or is that something for Geeks?

Regards
Kurt
meister-mischler
 
Posts: 27
Joined: Sun Nov 15, 2009 5:01 pm
Location: Switzerland
Name: Kurt
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: education
Level of SketchUp: Intermediate

Re: Textures on a dynamic component

Postby DareDevil » Mon May 07, 2012 7:32 pm

meister-mischler wrote:It looks good! :D
When I choose "LenZ = 1cm" the copies are not shown. I will figure it out when i going to spend more time to DC. ;-)

Mmmm..... :? I experienced the same error...
I think is because SU work in inch, and when I ask values in cm, the real value pass to sub object in inch and re-translate in cm. So, when you enter "1" is probably translate and re-translate to "0.99999999" and the integer is "0".
I only think of that error :?
I will look for a solution...

General question: Are DC often used or is that something for Geeks?

DCs are very often used by very few rare geeks :D :D
User avatar
DareDevil
 
Posts: 360
Joined: Sun Mar 15, 2009 10:19 pm
Location: Marseille, France
Name: Didier D

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Dynamic Components

Who is online

Users browsing this forum: No registered users and 1 guest