POV-Ray : Newsgroups : povray.general : A normal question : A normal question Server Time
11 Aug 2024 11:26:13 EDT (-0400)
  A normal question  
From: Rune S  Johansen
Date: 1 Aug 1999 11:15:50
Message: <37a464a6@news.povray.org>
I have a problem when I make a texture (say Texture1) with a normal and use
it in a texture_map.

I scale the Texture1 hundred times smaller inside a texture_map entry of
another texture (say Texture2). I then scale Texture2 hundred times bigger.

Now I thought the normal would look the same in Texture1 and Texture2 but it
doesn't.

Why is that?

What can I make to make them look the same?

I need to scale Texture2 bigger without the entries in the pattern are
affected.

// Here's an example of the problem:

camera {
   location 3*x
   look_at 0
}

light_source {100*<1,2,-1>, color 1}

#declare Texture1 =
texture {
   pigment {bozo  scale 0.5}
   normal {bozo 2 scale 0.5}
   finish {ambient 0.2 diffuse 0.8}
}

#declare Texture2 =
texture {
   gradient x
   scale 100
   texture_map {
      [0.5 Texture1 scale 1/100]
      [0.5 Texture1 scale 1/100]
   }
}

sphere {
   0, 1
   texture {Texture1} // Change to Texture2 and see the difference!
}


Post a reply to this message

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