|
|
In article <52a3ntc43mlkpp85jvf1g18pmian504003@4ax.com> , Peter Popov
<pet### [at] vipbg> wrote:
> Unfortunately, no. Even if I remove any and all transformation code
> from CBox::Intersect (or CSphere::Intersect) and only use
> untransformed primitives, they render incorrectly.
You are scaling vectors to unit length in some places. You should really
not have such side effects in your code. If you remove it at least
debugging should be easy. After all, a sphere/ray intersection isn't that
hard to debug if you are sure your vectors work without side effects.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|