POV-Ray : Newsgroups : povray.animations : Objects moving through texturemaps - need help with normal placement Server Time
26 Jun 2024 14:15:37 EDT (-0400)
  Objects moving through texturemaps - need help with normal placement (Message 1 to 2 of 2)  
From: Jared
Subject: Objects moving through texturemaps - need help with normal placement
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

From: Hughes, B 
Subject: Re: Objects moving through texturemaps - need help with normal placement
Date: 27 Mar 2003 20:13:15
Message: <3e83a1ab@news.povray.org>
"Jared" <nomail@nomail> wrote in message
news:web.3e8394bf6c07e273274118ec0@news.povray.org...
> 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.

Which version of POV is being used?

It should work fine with each normal added to the texture map entries. In
fact, checking it with POV-Ray 3.5 it is all continuous as seen on a
unit-sized sphere with a scale of 2 (instead of 200) then translated -x so
as to start the texturing at one side and end at another.

Perhaps what you are seeing happen is a consequence of not having the whole
texture scaled to fit and moved into position. Unlikely, since you probably
already set that up for the object as needed.

Bob


Post a reply to this message

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