POV-Ray : Newsgroups : povray.binaries.images : Cutaway textures problem again Server Time
19 Aug 2024 10:15:03 EDT (-0400)
  Cutaway textures problem again (Message 1 to 3 of 3)  
From: Disnel
Subject: Cutaway textures problem again
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


 

From: Josh English
Subject: Re: Cutaway textures problem again
Date: 19 Dec 2000 10:49:17
Message: <3A3F8393.B433404F@spiritone.com>
The problem as I see it is that the cutaway textures, listed there, will
effect the entire resulting shape, and I'm not sure that if it is transparent
if it will show the original objects textures underneath. The solid black is
explained by the fact that object 3 has no texture statement. If you don't
want it to effect the color of the shape, give it a pigment value of rgbf 1,
that should have the shape effect without the color artifact.

Josh

Disnel wrote:

> 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
>
>   ------------------------------------------------------------------------
>  [Image]  [Image]  [Image]

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Nathan Kopp
Subject: Re: Cutaway textures problem again
Date: 20 Dec 2000 01:08:55
Message: <3a404cf7$1@news.povray.org>
"Disnel" <dis### [at] hlavacek-partnercz> wrote...
> 
> Three scenes, in the first cutaway_textures works, in second and third
> not. Default texture is used at the cut.

This is a bug.  It will be fixed in POV 3.5.

-Nathan


Post a reply to this message

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