glob3mobile / g3m

The multiplatform advanced visualization framework
http://www.glob3mobile.com/
Other
116 stars 56 forks source link

Stereo mode strange camera bug #189

Closed Matyooo closed 8 years ago

Matyooo commented 8 years ago

Hi @DiegoGomezDeck , @amazingsmash ,

I have a noticed a strange behavour of the G3mWidget._currentCamera field. This camera is somehow alternating between beeing the rightEyeCam, the leftEyeCam and the auxCam between frames.

This thing is normally hidden because currentCamera is always copied over from nextCamera at the beginning of a new frame, but I am using the Camera.point2pixel function a lot and its result vary from frame to frame. The only way I could fix this bug is to comment out the last line of G3MWidget:

//Restoring central camera
//_currentCamera.copyFrom(_auxCam, true);

Could you look into that?

Matyooo commented 8 years ago

This one was my fault. Resolved. sorry for bothering :)