POV-Ray : Newsgroups : povray.beta-test : Function (optimization?) bug : Function (optimization?) bug Server Time
30 Jul 2024 06:30:12 EDT (-0400)
  Function (optimization?) bug  
From: R  Suzuki
Date: 24 Dec 2001 23:14:33
Message: <3c27fd29$1@news.povray.org>
Try the below code.
'funciton{-y/1/2}' should be same as 'function{-y/1/(2)}'.
But it behaves differently. 
(On the other hand, 'function{y/1/2}' is same as 'function{y/1/(2)}'.)

POV Win Beta 9, Win-Me

R. Suzuki

//---------------------------------------------------------------------
#version 3.5;

camera { location  z*-20 direction 3*z}

light_source {z*-50  color rgb 1}

box{-1,1 
  texture{pigment{function{-y/1/2}  color_map{[.0 rgb 0] [1 rgb 1]} }}
  translate <-1.5,1.5,0> }

box{-1,1 
  texture{pigment{function{-y/1/(2)}  color_map{[.0 rgb 0] [1 rgb 1]} }}
  translate <1.5,1.5,0>  }
 
box{-1,1 
  texture{pigment{function{y/1/2}  color_map{[.0 rgb 1] [1 rgb 0]} }}
  translate <-1.5,-1.5,0>}

box{-1,1 
  texture{pigment{function{y/1/(2)}  color_map{[.0 rgb 1] [1 rgb 0]} }}
  translate <1.5,-1.5,0> }
//------------------------------------------------


Post a reply to this message

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