POV-Ray : Newsgroups : povray.programming : Making Light... Not act like light.... : Re: Making Light... Not act like light.... Server Time
25 Apr 2024 17:25:06 EDT (-0400)
  Re: Making Light... Not act like light....  
From: scott
Date: 28 Jan 2010 04:02:02
Message: <4b61528a$1@news.povray.org>
> He wants to be able to enter a mathematical formula into a
> ray-tracing program, but make each ray of light behave according to the 
> formula.

If you want the "light rays" to travel in anything other than straight lines 
then you're going to have a *really* big job, as pretty much everything in 
POV assumes this.  You would have to rewrite all the intersection code to 
test for intersections between the shape and an arbitrary curved ray!  Plus, 
AIUI, POV applies the inverse of any shape transforms (scale, rotate, move 
etc) to the ray and then does the intersection, you'd need to work out how 
to apply the inverse transforms to your curved ray.

TBH it might be easier to start from scratch without assuming straight rays!


Post a reply to this message

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