POV-Ray : Newsgroups : povray.beta-test : Media broken? : Re: Media broken? Server Time
29 Jul 2024 12:20:50 EDT (-0400)
  Re: Media broken?  
From: Warp
Date: 6 May 2002 17:26:31
Message: <3cd6f506@news.povray.org>
Tim Nikias <tim### [at] gmxde> wrote:
> Build simple scene:
> camera + two lightsources + media (without container)

> You get:
> Black image.

  Correct behaviour.
  Perhaps not the desired behaviour, but the expected one.
  The problem is that POV-Ray can't sample media along an infinitely long
ray. There's just no way it can do that. The ray must be finite in order
to be possible to sample. This means that sampling media is only possible
for rays that hit an object.
  Another way of being able to sample media is using spotlights because also
in this case the ray is not infinite (it is sampled only inside the spotlight
cone).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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