POV-Ray : Newsgroups : povray.newusers : making perfectly transparent object with color : Re: making perfectly transparent object with color Server Time
29 Jul 2024 06:16:07 EDT (-0400)
  Re: making perfectly transparent object with color  
From: Alain
Date: 17 Jul 2006 19:07:13
Message: <44bc1821$1@news.povray.org>
yoon nous apporta ses lumieres en ce 17/07/2006 12:05:
> At first, make a white ball and then make a red box, which is bigger than
> the ball, in front of the ball.
> 
> If I use the command "filter" or "transmit", I could see the ball through
> the box.
> 
> But the color of ball(white) seem to be redder and dimmer than its original
> because the light traverse through the red box.
> 
> If I put more red boxes in front of the ball, I will not be able to see the
> ball because many boxes screen the light emitted from the white ball.
> 
> How can I see the white ball even if there are many boxes between the ball
> and the camera?
> 
> Thank you.
> 
> JH
> 
As you add transparent box, you need to trace through more and more surfaces. 
The maximum number of surfaces you can pass is set by max_trace_level, it's 
default value is 5. So, with 3 box you get 2 levels for each box (front and back 
face) and 1 for the sphere, making a total of 7. You thus need to set 
max_trace_level 7 to be able to see the sphere, otherwize, you see black.
Add:
global_settings{ max_trace_level TraceValue} to your scene. Adjust TraceValue so 
that your transparency is completely restored. The global_settings{} block can 
be about anywhere in the scene, but is usualy placed near the beggining.

-- 
Alain
-------------------------------------------------


Post a reply to this message

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