POV-Ray : Newsgroups : povray.animations : Objects moving through texturemaps - need help with normal placement : Objects moving through texturemaps - need help with normal placement Server Time
29 Jun 2024 07:51:40 EDT (-0400)
  Objects moving through texturemaps - need help with normal placement  
From: Jared
Date: 27 Mar 2003 19:20:10
Message: <web.3e8394bf6c07e273274118ec0@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 Polished_Chrome pigment{color rgb<0,0,0>}   //POSITION A  normal { bumps
0.75 scale 0.1}
            ]
[.2 Polished_Chrome pigment{color rgb<0,0,0>}  //POSITION A  normal { bumps
0.75 scale 0.1}
            ]
[.5 Polished_Chrome pigment{ color rgb<1,0.8,.2>}
                  finish {ambient 0.8 diffuse 0.55 phong 0.3}    //POSITION
A  normal { bumps 0.75 scale 0.1}
            ]
[.8 Polished_Chrome pigment{color rgb<0,0,0>}     //POSITION A  normal {
bumps 0.75 scale 0.1}
            ]
[1.00 Polished_Chrome pigment{color rgb<0,0,0>}   //POSITION A  normal {
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.