POV-Ray : Newsgroups : povray.advanced-users : Weird results scaling normals : Weird results scaling normals Server Time
2 Nov 2024 09:17:31 EDT (-0400)
  Weird results scaling normals  
From: Nieminen Juha
Date: 24 Nov 1999 13:37:11
Message: <383c3057@news.povray.org>
Try this:

camera { location y*4-z*4 look_at 0 angle 35 }
light_source { <100,200,-300> 1 }
#declare Granite = texture { pigment { rgb x } normal { granite 1 } }
plane
{ y,0 texture { Granite }
}

  And now try this:

camera { location y*4-z*4 look_at 0 angle 35 }
light_source { <100,200,-300> 1 }
#declare Granite = texture { pigment { rgb x } normal { granite } }
plane
{ y,0
  texture
  { gradient x texture_map
    { [0 Granite scale .01][1 Granite scale .01]
    }
    scale 100
  }
}

  The result should be identical, but it isn't.
  I remember reading about problems when scaling normals. Is this the one?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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