POV-Ray : Newsgroups : povray.general : Need a Macro; derive Visible Space Params : Re: Need a Macro; derive Visible Space Params Server Time
2 Aug 2024 10:21:53 EDT (-0400)
  Re: Need a Macro; derive Visible Space Params  
From: Tim Nikias
Date: 2 Nov 2004 22:30:09
Message: <418850c1$1@news.povray.org>
Hey Jeff!

1st: The appropriate link should have been http://www.nolights.de, I'm not a
DigitalTwilight since over a year. :-)
2nd: If you download my Glare-Macros, you'll find a macro called
Glare_Transform(x) in there. "x" is a position-vector which will get
transformed. If the x and y component of that vector is between .5 and -.5,
the transformed point in space will be within the viewing frustrum of a
standard camera. The z component returns the distance from the camera and
needs to be positive to be in front of the camera and not behind it...

Note that the macro requires at least two variables, Camera_Location and
Camera_Look_At, to work properly, other needed variables are declared with
default values in case they are specified.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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