|
|
in news:40aa5343@news.povray.org Skip Talbot wrote:
> Is there a way
> to translate a turbulence warp so that it's sampling from a different
> part of the pattern?
>
Translate the spherical pattern to somewhere random, apply turbulence,
translate the whole thing to the position you want.
Changing the seed for turbulence would be nice option.
texture {
pigment {
spherical
translate <3,3,3>
warp {
turbulence 0.3
}
translate <-3,-3,-3>
color_map {
[0.0 color rgb 0.0 ]
[1.0 color rgb 1.0 ]
}
}
Ingo
Post a reply to this message
|
|
|
|
In article <Xns94EDD24F1E61Cseed7@news.povray.org>,
ingo <ing### [at] tagpovrayorg> wrote:
> translate <3,3,3>
> warp {
> turbulence 0.3
> }
> translate <-3,-3,-3>
You should also remember that the "warp {}" is necessary...otherwise,
turbulence will be done first, no matter what its order relative to the
other transformations is. As I recall, this dates from a time when
turbulence was a separate feature, before warps were added.
You can package it into a nice little macro:
#macro Turbulence(Amt, Trans)
transform {Trans inverse}
warp {
turbulence Amt
}
transform {Trans}
#end
#macro TurbulenceOLO(Amt, Octaves, Lambda, Omega, Trans)
transform {Trans inverse}
warp {
turbulence Amt
lambda Lambda
octaves Octaves
omega Omega
}
transform {Trans}
#end
TransformedTurbulence(0.3, transform {translate <-3,-3,-3>})
--
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
|
|