sorry, pi is point of intersection of the incident ray. I got the calculations from this page about raytracing:

http://www.devmaster.net/articles/ra...ries/part2.php

LOL...yes I AM using a fixed cEpsilon value, but it is

[pascal]Const
cEpsilon = 0.001;
[/pascal]

cheers,
Paul