POV-Ray : Newsgroups : povray.binaries.images : Cutaway textures problem again : Cutaway textures problem again Server Time
19 Aug 2024 08:20:12 EDT (-0400)
  Cutaway textures problem again  
From: Disnel
Date: 19 Dec 2000 06:06:20
Message: <3A3F502E.230C3D5F@hlavacek-partner.cz>
Three scenes, in the first cutaway_textures works, in second and third
not. Default texture is used at the cut.

---------------------------------------------------

Scene 1:

#version unofficial MegaPov 0.6;

camera {location <-2, 3, -5> up <0, 1, 0> right <1, 0, 0> angle 60
look_at <-0.5, 0.5, 0>}
light_source {<20, 30, -50> color rgb 1}
plane {<0, 1, 0>, 0 pigment {color rgb 1}}

#declare Object1=sphere {<-1, 0, 0>, 2 pigment {color red 1}}
#declare Object2=sphere {< 1, 0, 0>, 2 pigment {color green 1}}

#declare Object3=plane {<0, 0, 1>, 0}

difference {
  union {
    object {Object1}
    object {Object2}
  }
  object {Object3}
  cutaway_textures
}

---------------------------------------------------

Scene 2:

#version unofficial MegaPov 0.6;

camera {location <-2, 3, -5> up <0, 1, 0> right <1, 0, 0> angle 60
look_at <-0.5, 0.5, 0>}
light_source {<20, 30, -50> color rgb 1}
plane {<0, 1, 0>, 0 pigment {color rgb 1}}

#declare Object1=sphere {<-1, 0, 0>, 2 pigment {color red 1}}
#declare Object2=sphere {< 1, 0, 0>, 2 pigment {color green 1}}

#declare Object3=union {
  plane {<0, 0, 1>, 0}
  sphere {<0, 0, 0>, 1}
}

difference {
  union {
    object {Object1}
    object {Object2}
  }
  object {Object3}
  cutaway_textures
}


---------------------------------------------------

Scene 3:

#version unofficial MegaPov 0.6;

#default {texture {pigment {color rgb 1}}}

camera {location <-2, 3, -5> up <0, 1, 0> right <1, 0, 0> angle 60
look_at <-0.5, 0.5, 0>}
light_source {<20, 30, -50> color rgb 1}
plane {<0, 1, 0>, 0 pigment {color rgb 1}}

#declare Object1=sphere {<-1, 0, 0>, 2 pigment {color red 1}}
#declare Object2=sphere {< 1, 0, 0>, 2 pigment {color green 1}}

#declare Object3=union {
  plane {<0, 0, 1>, 0}
  sphere {<0, 0, 0>, 1}
}

difference {
  union {
    object {Object1}
    object {Object2}
  }
  object {Object3}
  cutaway_textures
}

----------------------------------------------------------

Images below

Regards

Disnel


Post a reply to this message


Attachments:
Download 'cutaway1.jpeg.jpg' (3 KB) Download 'cutaway2.jpeg.jpg' (3 KB) Download 'cutaway3.jpeg.jpg' (3 KB)

Preview of image 'cutaway1.jpeg.jpg'
cutaway1.jpeg.jpg

Preview of image 'cutaway2.jpeg.jpg'
cutaway2.jpeg.jpg

Preview of image 'cutaway3.jpeg.jpg'
cutaway3.jpeg.jpg


 

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