|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
probably this applies to pigment_maps and maybe other *_maps as well.
I have a cylinder:
cylinder {
<Length1, 0, 0>, <Length2, 0, 0>, 1
texture {
gradient x
turbulence 1
scale 10
texture_map {
[0 T_Paper ]
[0.5 T_Paper ]
[0.5 T_Transparent ]
[1 T_Transparent ]
}
}
}
The T_Paper texture previously declared is also a gradient x
texture_map, with repeating bands and turbulence 0. T_Transparent
is just what it says.
My problem is that the turbulence 1 and scale 10 modifiers
used here also affect the T_Paper texture. I can re-scale the
T_Paper to compensate, but I can't get rid of the turbulence.
I'm guessing there's a completely different way to get the effect,
but I'm a bit stumped atm
aTdHvAaNnKcSe
--
I would've gotten away with it too, if it wasn't for those pesky kids!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
As you've found out, transforms affect the entire texture, not just the
pattern. You can work around this though:
cylinder {
<Length1, 0, 0>, <Length2, 0, 0>, 1
texture {
function {
pattern {
gradient x
turbulence 1
scale 10
}
}
texture_map {
[0 T_Paper ]
[0.5 T_Paper ]
[0.5 T_Transparent ]
[1 T_Transparent ]
}
}
}
That's a texture_map using a function pattern with a pattern function
using a turbulated and scaled pattern as the pattern. You may need to
declare the pattern function separately, I've ran into some oddities
with this area of the function syntax before.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Christopher James Huff wrote:
> As you've found out, transforms affect the entire texture, not just the
> pattern. You can work around this though:
>
> cylinder {
> <Length1, 0, 0>, <Length2, 0, 0>, 1
> texture {
> function {
> pattern {
> gradient x
> turbulence 1
> scale 10
> }
> }
> texture_map {
> [0 T_Paper ]
> [0.5 T_Paper ]
> [0.5 T_Transparent ]
> [1 T_Transparent ]
> }
> }
> }
>
> That's a texture_map using a function pattern with a pattern function
> using a turbulated and scaled pattern as the pattern. You may need to
> declare the pattern function separately, I've ran into some oddities
> with this area of the function syntax before.
>
Wonderful! that worked perfectly. Like you say I did have to declare
the pattern function separately, but then it worked.
I really don't understand why though :-)
--
I would've gotten away with it too, if it wasn't for those pesky kids!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|