POV-Ray : Newsgroups : moray.win : Questions/problems with scaling textures on shapes ... Server Time
26 Dec 2024 17:26:53 EST (-0500)
  Questions/problems with scaling textures on shapes ... (Message 1 to 6 of 6)  
From: Neil Kolban
Subject: Questions/problems with scaling textures on shapes ...
Date: 4 Dec 2004 23:20:50
Message: <41b28ca2@news.povray.org>
Folks,
consider the following.

A is a 4x4x4 scaled cube
B is two 1x1x1 cubes in a CSG Union then the CSG scaled by 4x4x4
C is two 4x4x4 cubes in a CSG Union
D is an 8x4x4 scaled cube

The same texture has been applied to all the high level shapes (A - 
cube, B - CSG, C -CSG, D - cube)





What I am trying to achieve is 'D' but for the CSG created objects (they 
won't always be simple cubes).  I can see that I can create D for CSG 
created entities by creating multiple materials and scaling them for 
each shape but what I want is one material and not have to have multiple 
copies.

In summary, I guess I am needing some pointers to the relationship 
between scaling and materials, especially when applied to CSGs.

Any help appreciated.

Neil


Post a reply to this message


Attachments:
Download 'iso-8859-1' (2 KB)

From: Stephen McAvoy
Subject: Re: Questions/problems with scaling textures on shapes ...
Date: 5 Dec 2004 09:43:04
Message: <na76r093vhq7gml1u9rs3h46fi3ol7dfmq@4ax.com>
On Sat, 4 Dec 2004 22:20:35 -0600, "Neil Kolban" <kol### [at] kolbancom>
wrote:

>
>Any help appreciated.
>
>Neil
I don't think you can do what you want to do, if I understand you
correctly. (It was a bit hard to read your question as it was all on
two lines) BTW I am not renowened for my textures :-( 
Once you have the correct scaling of your material and apply it to
your object the material will be scaled along with your object or
group.
Here is something that might give you more of an insight.
Copy group C and place it below it. Change the "Space" to "world" then
move the new group on the X axis. Note how the texture does not move
with the object.
I think you will need different textures for the different scaled
groups.


Regards
        Stephen


Post a reply to this message

From: StephenS
Subject: Re: Questions/problems with scaling textures on shapes ...
Date: 5 Dec 2004 09:45:04
Message: <41b31ef0@news.povray.org>
...
What I am trying to achieve is 'D' but for the CSG created objects (they
won't always be simple cubes).  I can see that I can create D for CSG
created entities by creating multiple materials and scaling them for each
shape but what I want is one material and not have to have multiple copies.
...
I think what you are looking for is to scale the texture differently for
each object you use it on. You can achieve this by:
   Make sure the 'Configuration\Moray\Show Material proxies' is selected
   Hold down the 'shift' key and left click on the proxy wireframe
   Scale as needed

If the proxy is completely contained within the object, it may be hard to
select. You can temporarily scale the texture in the Material Editor, select
and move the proxy wireframe for the object in question and then remove the
scaling.

See ScaleTextureOnShape.zip file in moray.binaries
I think you want how I did CSG005

Stephen


Post a reply to this message

From: Stephen McAvoy
Subject: Re: Questions/problems with scaling textures on shapes ...
Date: 5 Dec 2004 11:52:10
Message: <o5f6r0h7ucjcmkcq8fqr7iai5qft4645a3@4ax.com>
Nice one Stephen. I knew that if I said that it could not be done then
someone would prove me wrong :-)


Regards
        Stephen


Post a reply to this message

From: Jacquier Marc
Subject: Re: Questions/problems with scaling textures on shapes ...
Date: 5 Dec 2004 12:42:26
Message: <41b34882$1@news.povray.org>

news:41b31ef0@news.povray.org...
> ...
> What I am trying to achieve is 'D' but for the CSG created objects (they
> won't always be simple cubes).  I can see that I can create D for CSG
> created entities by creating multiple materials and scaling them for each
> shape but what I want is one material and not have to have multiple
copies.
> ...
> I think what you are looking for is to scale the texture differently for
> each object you use it on. You can achieve this by:
>    Make sure the 'Configuration\Moray\Show Material proxies' is selected
>    Hold down the 'shift' key and left click on the proxy wireframe
>    Scale as needed
>
> If the proxy is completely contained within the object, it may be hard to
> select. You can temporarily scale the texture in the Material Editor,
select
> and move the proxy wireframe for the object in question and then remove
the
> scaling.
>
You can also select and transform the material of a selected object by
hitting alt+t


Marc


Post a reply to this message

From: Neil Kolban
Subject: Re: Questions/problems with scaling textures on shapes ...
Date: 5 Dec 2004 14:33:07
Message: <41b36273$1@news.povray.org>
Thanks to all of you.  The responses you provide to my questions are
fantastic and give me all the information I need to make progress.  I hope
that, one day, I can add value to newbies like myself.

I appreciate you all.

Neil


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.