|
|
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
|
|