|
|
> 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
|
|