POV-Ray : Newsgroups : povray.beta-test : light_grop and translate Server Time
29 Jul 2024 04:22:42 EDT (-0400)
  light_grop and translate (Message 1 to 1 of 1)  
From: Rangifer
Subject: light_grop and translate
Date: 17 Apr 2005 03:38:41
Message: <42621281$1@news.povray.org>
If an object in a light_group or the light_group itself is translated 
with any vector with x != 0, Beta 1 seems to crash.



// a light group makes certain light sources only
// influencing certain objects

light_group {
   light_source {          // light sourc(es) of this group
     <100, 100, 100>
     color rgb y
   }
   sphere {                // objects illuminated by those light sources
     <0, -1, 0>,0.5
     pigment { color rgb 1 }

     //translate <0,0,0> // ok
     //translate <0,0,1> // ok
     //translate <0,1,0> // ok
     //translate <0,1,1> // ok
     //translate <1,0,0> // crashes
     //translate <1,0,1> // crashes
     //translate <1,1,0> // crashes
     //translate <1,1,1> // crashes
   }
   global_lights         // add this to make all global lights
                           // also illuminating this light group

   //translate <0,0,0> // ok
   //translate <0,0,1> // ok
   //translate <0,1,0> // ok
   translate <0,1,1> // ok
   //translate <1,0,0> // crashes
   //translate <1,0,1> // crashes
   //translate <1,1,0> // crashes
   //translate <1,1,1> // crashes
}


Post a reply to this message

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