POV-Ray : Newsgroups : povray.general : object moving through a texture_map : object moving through a texture_map Server Time
5 Nov 2024 13:26:26 EST (-0500)
  object moving through a texture_map  
From: Jared
Date: 27 Mar 2003 19:30:05
Message: <web.3e839685ab31b60f274118ec0@news.povray.org>
I have an object called SpherePattern moving through space in my animation.
As it passes through the texture_map, each part of the object changes its
texture to match the texture at that point in space. I want to apply a
normal to the ENTIRE texture field uniformly. I have labeled two possible
places so far where I have tried to place my normal arguments. At position
A, where I tried it first, the normals would start over for each texture,
so the object would hit different normal patterns as they moved from one
texture to another. It was an effect I don't want to have there. It looks
sort of like there are multiple objects at the same space using two
different normal patterns. I want the object to change color, but not
switch to a different normal everytime it hits a new texture. At position
B, which I *thought* would apply one normal to the WHOLE texture map,
POVRay rejects the notation I use because I think it wants to see the
normal arguments right after each individual texture. What can I do to
apply ONE CONTINUOUS normal field to the WHOLE texture map?

the applicable part of the file is pasted below:


object {SpherePattern texture{gradient<1,0,0> scale 200 texture_map{
0.75 scale 0.1}
            ]
0.75 scale 0.1}
            ]
                  finish {ambient 0.8 diffuse 0.55 phong 0.3}    //POSITION
A  normal { bumps 0.75 scale 0.1}
            ]
bumps 0.75 scale 0.1}
            ]
bumps 0.75 scale 0.1}
            ]
                  }    //end texture map
                   //POSITION B  normal { bumps 0.75 scale 0.1}
                  }    //end texture
                  }    //end object


Post a reply to this message

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