POV-Ray : Newsgroups : povray.advanced-users : cutaway_textures problem Server Time
24 Nov 2024 21:41:06 EST (-0500)
  cutaway_textures problem (Message 1 to 1 of 1)  
From: WarpEnterprises
Subject: cutaway_textures problem
Date: 19 Oct 2004 04:30:01
Message: <web.4174cf5e54ea7b256aafb9c10@news.povray.org>
Hi!
I did a search but could not find recent comments on my problem.
Look at the code beyond.
Is it a bug that cutaway_textures can only be used with CSG primitives?
Even a merge containing one object will apply a default texture and that way
"switch off" the cutaway_textures-feature.


sky_sphere {pigment {color <0.3, 0.3, 0.3>}}
light_source {<20,20,-10> , <1,1,1>}
light_source {<-20,20,-10> , <1,1,1>}

#declare cubus = object {box {<0,0,0>,<1,1,1>
 texture {pigment {color red 0.8 green 0.2 blue 0.4} }
}}

#declare ball1 = object {
 sphere {<0.5, 1.0, 0.5>, 0.25}
}

#declare ball2 = object {
 merge {
  sphere {<0.5, 1.0, 0.5>, 0.25}
 }
}

#declare result1 = object {
 intersection {
  object {ball1}
  object {cubus}
  cutaway_textures
 }
}

#declare result2 = object {
 intersection {
  object {ball2}
  object {cubus}
  cutaway_textures
 }
}

cubus //the source objects
ball1

object {result1 translate <-1,0,0>} //this works as expected
object {result2 translate <+1,0,0>} //this does not work, default textures
are applied

camera {
 location <8, 15,-20>
 angle 7
 look_at <0.5, 0.5, 0>
}


Post a reply to this message

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