POV-Ray : Newsgroups : povray.general : Difference : Re: Difference Server Time
12 Aug 2024 07:21:53 EDT (-0400)
  Re: Difference  
From: Ken
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.