POV-Ray : Newsgroups : povray.general : Problem with doors : Re: Problem with doors Server Time
31 Jul 2024 22:12:20 EDT (-0400)
  Re: Problem with doors  
From: Chris B
Date: 19 Aug 2006 13:48:38
Message: <44e74ef6$1@news.povray.org>
"sopawilly" <sop### [at] hotmailcom> wrote in message 
news:web.44e7398070f886c15573f0e20@news.povray.org...
>I would like to ask for your help with a problem. On a scene, i have a 
>wall,
> with a door on it, and i want to see the room at the other side. But with
> the command intersection, i take off the part of the wall i need, but i
> just get a black, or of any other color rectangle, but i need to see the
> other side.
>

As Warp and Ger mentioned you'd normally use a difference, making sure that 
the cutting object is large enough to slice all of the way through the wall 
thickness (to avoiding coincident surfaces), thus you wouldn't necessarily 
need to make the colour of the cut surface transparent.

> Is there any color defined that is transparent? or should i look for 
> another
> way to make that.
>

Nevertheless, You can add a degree of transparency to any colour by adding a 
fourth 'transparency' element to the color vector, so you can specify:

  color rgbt <1,1,1,1>
to get a totally transparent colour, or
  color rgbt <1,0,0,0.5>
to give a partially transparent red surface.

You can also add a tranparency vector to an existing colour by adding 't' 
with an appropriate multiplier, so:

  box {0,1 pigment {color Red + t*0.75} }
  sphere {0,0.5 pigment {color Yellow + t*0.5}}

With tranparency you can slice a transparent or partially transparent hole 
in the edge of a solid object to see inside.

Regards,
Chris B.


Post a reply to this message

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