I was having problems with the camera doing horizontal translation. The reason was that cross() modifies the dir vector, which causes the eyeCoord position to move differently than the posCoord. I changed cross() to getCrossed to calculate the horizontal/x vector of the camera and it seems to fix it. Could someone commit this change to the addon? Or can I do that somehow?
hi there
I have been using this great addon to lets users navigate through a 3D scene built in OF but it appears that the camera’s up vector is never recalculated? using moveLocal() to pan horizontally works but when panning vertically the y axis the camera moves along is always the global one. looking at the code it seems that perhaps up vector never changes from 0,1,0
I have had a crack at fixing this but no luck - any advice?
cheers
rene.
Hmmm, the camera in ofx3DUtils is pretty basic, perhaps if you can post an example of your problem I can look at it, but otherwise check out the great and more advanced opengl cameras here: http://www.dhpoware.com/demos/
I am looking to create a more advanced camera in the future based on some of this code…