POV-Ray : Newsgroups : povray.beta-test : Function image type mirrored vertically : Function image type mirrored vertically Server Time
29 Jul 2024 16:26:21 EDT (-0400)
  Function image type mirrored vertically  
From: Rune
Date: 5 Apr 2002 17:27:38
Message: <3cae24da@news.povray.org>
The function image type is mirrored vertically.
It does take values in the 0 to 1 range both horizontally and vertically as
it should, but the y values go from 1 to 0 instead of from 0 to 1.

The code below shows the bug. Can anybody confirm?

camera {location -3*z}
#default {finish {ambient 1}}
#declare F = function {pattern {spherical}}
plane {
   -z, 0
   pigment {function {F(x,y,z)}}
}
box {
   <0,0,-0.001>,<1,1,1>
   pigment {
      image_map {function 100, 100 {F(x,y,z)}}
   }
}

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:  http://rsj.mobilixnet.dk (updated Mar 19)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Ring:  http://webring.povray.co.uk


Post a reply to this message

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