POV-Ray : Newsgroups : povray.bugreports : bounding boxes again : bounding boxes again Server Time
15 May 2024 19:33:28 EDT (-0400)
  bounding boxes again  
From: Martin
Date: 10 Jan 2010 07:30:55
Message: <4b49c87f$1@news.povray.org>
Hello!

transform is not transforming the bounding boxes in this release (beta 
35). I think this happened already in beta 32 (if i remember). Again, 
this code renders ok in pov 3.6:

global_settings{#if(version < 3.7) assumed_gamma 1 #end}
camera{location x*10+z*5+y*5 look_at 0}
light_source{(x+y)*10 1}

background{rgb <0.5,0.6,0.7>}

#declare T1= transform{translate x}

#declare Ob1= intersection{
   sphere{0 10 translate -z*9.5}
   sphere{0 10 translate z*9.5}
   cylinder{z*2,-z*2 1 inverse}
   pigment{red 1}
   bounded_by{box{2.6, -2.6}}
   transform{ T1}
}
#declare Ob2= intersection{
   sphere{0 10 translate -x*9.5}
   sphere{0 10 translate x*9.5}
   cylinder{x*2,-x*2 1 inverse}
   pigment{green 1}
   bounded_by{box{2.6, -2.6}}
   transform{ T1}
}
union{
   object{Ob1} //<----- :?.. where is my bounding box!
   object{Ob2}
transform{T1}
}

Thank you!


Post a reply to this message

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