POV-Ray : Newsgroups : povray.binaries.images : Cutaway textures problem again : Re: Cutaway textures problem again Server Time
19 Aug 2024 08:21:48 EDT (-0400)
  Re: Cutaway textures problem again  
From: Josh English
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

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