POV-Ray : Newsgroups : povray.general : Sun, atmosphere, haze etc. : Re: Sun, atmosphere, haze etc. Server Time
30 Jul 2024 06:28:34 EDT (-0400)
  Re: Sun, atmosphere, haze etc.  
From: clipka
Date: 26 Aug 2009 06:57:16
Message: <4a95150c$1@news.povray.org>
SharkD schrieb:
> #local Inc_Scale_Amount = Width;
> #local Dec_Scale_Amount = sqrt(3) / vlength(Inc_Scale_Amount);

What is "Width"?

It should be a scalar, otherwise you'll be running into trouble, as 
you'd need an anisotropic media density (i.e. different density 
depending on the orientation of the traversing ray) for a proper job.

Then if it is a scalar, the above values should actually be:

   #local Inc_Scale_Amount = Width;
   #local Dec_Scale_Amount = 1 / Width;

If you absolutely need it to be a vector, you'll probably want the 
"thickness" to remain the same, i.e. retain the effective absorption in 
Y direction; you'd achieve this by defining the values as:

   #local Inc_Scale_Amount = Width;
   #local Dec_Scale_Amount = 1 / Width.y;


Post a reply to this message

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