|
|
In the scene below are two spheres with white dots. I expected both the
textures to be the same, except for the red dot. But it seems that scaling
the not only affects the pattern_type but also the texture map. I had a quick
look in the docs but found nothing that explains.
Is this the to be expected behaviour, or...
How can I get the result I want? Layerd textures won't work because of the
different finishes.
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
#version 3.1;
global_settings {assumed_gamma 1.0}
light_source {<500,500,-500> rgb 1}
camera {location <0,1.6,-2> look_at <0,0,0>}
#declare TestT= texture {
pigment {
leopard
scale 0.05
colour_map {
[0.3, rgb 0.3]
[0.3, rgb 1]
}
}
}
#declare TestT2= texture {
cylindrical
scale <2,1,1>
texture_map {
[0.7, TestT]
[0.8, pigment {red 1} finish {phong 1}]
}
}
sphere {
0,0.5
texture{TestT}
translate <-0.5,0,0>
}
sphere {
0,0.5
texture{TestT2}
translate <0.5,0,0>
}
Post a reply to this message
|
|
|
|
I think this is what the reset_children patch in UVPov is for. It allows
you to transform the top level of a texture, leaving it's component
parts(it's children) unchanged.
Other than using that patch, I think this will do what you
want(untested!):
#declare TestT2= texture {
cylindrical
scale <2,1,1>
texture_map {
[0.7, TestT scale < 0.5, 1, 1>]//scale this part to compensate
[0.8, pigment {red 1} finish {phong 1}]
}
}
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|
|
|
Chris Huff wrote:
>I think this is what the reset_children patch in UVPov is for. It allows
>you to transform the top level of a texture, leaving it's component
>parts(it's children) unchanged.
>...
>...
> [0.7, TestT scale < 0.5, 1, 1>]//scale this part to compensate
>..
The warp{reset_children} is perfect, as it also works for turbulence witch
your second solution does not.
Thanks Chris,
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|