www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: Uwe Siems on August 10, 2011, 08:44:58 pm

Title: Interact2D.reproject2D3DWS returns wrong result...
Post by: Uwe Siems on August 10, 2011, 08:44:58 pm
...if Camera.setDirection was called with non-orthogonal vectors. This obviously is corrected for the camera view, but not for the result of Interact2D.reproject2D3DWS.
It's easy to avoid for me, but at first I wondered what was wrong.

Regards,
Uwe
Title: Re: Interact2D.reproject2D3DWS returns wrong result...
Post by: EgonOlsen on August 10, 2011, 09:25:41 pm
setDirection()? You mean setOrientation(), don't you? If so, i don't consider this to be a bug. You shouldn't set non-orthogonal vectors for this as the result can be anything...i'll enhance the docs for this method.
Title: Re: Interact2D.reproject2D3DWS returns wrong result...
Post by: Uwe Siems on August 11, 2011, 02:31:20 pm
Yes, of course, it was Camera.setOrientation.