|
![](/i/fill.gif) |
In article <76jhsv4pk8ttf7o4su0flpeeja13hg5ols@4ax.com>,
Erhard Ducke <duc### [at] gentlemansclub de> wrote:
> >shadow_pigment feature from Mlpov
>
> As a possible and more trivial solution I declared a texture map with a
> radial pattern with frequency 1 to the planet sphere like this:
>
> texture {
> radial frequency 1
Radial? That seems like the wrong tool for the job when you're just
using different textures on each side of the sphere. The gradient
pattern would make more sense...or even an object pattern with a plane
object, though that would make it difficult to blend between the two.
> When I rotate the radial around the y- and z-axis according to the position
> of the sun like this:
> texture {
> radial rotate y*TIME rotate z*ECLIPTIC_ANGLE
> texture_map {...}
> }
>
> the bitmap travels with the radial pattern so that not only bright and dark
> zone are moving but the whole earth seems to rotate...
This is because you are rotating the entire texture, not just the
pattern. You need to counter-rotate the textures in the texture_map by
-y*TIME, or use pigment_pattern or a function pattern to rotate just the
pattern. If you use the gradient pattern, you could just rotate the
gradient vector with vrotate().
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |