POV-Ray : Newsgroups : povray.general : Difference Server Time
15 Nov 2024 03:22:11 EST (-0500)
  Difference (Message 1 to 4 of 4)  
From: Raymond Gilford
Subject: Difference
Date: 15 Mar 1999 19:21:39
Message: <36ED9669.A9C9CFB7@statesman.com>
Hi

I am having a problem with the difference feature. When I have the
object that I want to cut a section out of built and go to apply the
difference function, I get black in the cutout section. Does anyone know
how to get around this? I have a layered object that I want to do a
cutaway from.

RG


Post a reply to this message

From: Spider
Subject: Re: Difference
Date: 15 Mar 1999 20:27:35
Message: <36EDB1EE.1E98DD39@bahnhof.se>
apply a pigment to the whole difference.
like this :
difference {
  cylinder {
    <0,0,0>,<0,1,0>,0.5
    open
  }
  box{
    <-0.5-0.1, -0.1, -0.5-0.1>,
    <0.5+0.1,  1+0.1, 0>
    pigment { transmit 1 }
  }
  pigment {
    White
  }
}



Raymond Gilford wrote:
> 
> Hi
> 
> I am having a problem with the difference feature. When I have the
> object that I want to cut a section out of built and go to apply the
> difference function, I get black in the cutout section. Does anyone know
> how to get around this? I have a layered object that I want to do a
> cutaway from.
> 
> RG

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Raymond C  Gilford
Subject: Re: Difference
Date: 16 Mar 1999 01:19:46
Message: <36EDF7F9.108C4243@gyltech.com>
Okay maybe I was not clear when I presented the problem. I have set of
cylinders that are grouped together with a union. They already have separate
textures applied to them. I want to create a cutaway to show the internal
textures. But when I do the difference I get black over the whole thing.

Spider wrote:

> apply a pigment to the whole difference.
> like this :
> difference {












> }
>
> Raymond Gilford wrote:
> >
> > Hi
> >
> > I am having a problem with the difference feature. When I have the
> > object that I want to cut a section out of built and go to apply the
> > difference function, I get black in the cutout section. Does anyone know
> > how to get around this? I have a layered object that I want to do a
> > cutaway from.
> >
> > RG
>
> --
> //Spider

> What I can do and what I could do, I just don't know anymore



Post a reply to this message

From: Ken
Subject: Re: Difference
Date: 16 Mar 1999 03:29:02
Message: <36EE16C6.A995AC5@pacbell.net>
Raymond C. Gilford wrote:
> 
> Okay maybe I was not clear when I presented the problem. I have set of
> cylinders that are grouped together with a union. They already have separate
> textures applied to them. I want to create a cutaway to show the internal
> textures. But when I do the difference I get black over the whole thing.


Spiders example was very close but did not tke into account tht you had
pre textured your cylinders. The same method though applies where you
make your differencing object transperent. This way it will neither
add it's color to the union or block the union from being seen. If you
applied a red pigment it wold be red whre the difference object cut away
and if you apply no pigment then you will have black out like you are
seeing now.

So rearranging Spider's example a bit you have:

 difference {
   union{
    cylinder{ texture{YourTexture}}
    cylinder{ texture{YourTexture}}
    cylinder{ texture{YourTexture}}
    cylinder{ texture{YourTexture}}
   } //end union
 
    box{ pigment{rgbt 1 }}
 } // end difference


-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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