chao.zhang Posted November 27, 2012 Share Posted November 27, 2012 hello, everyone. What exactly does the setUp of player means, we want to set the camera rotate around the earth equator。 but the result is not what we desire. Thanks in advance. Link to comment
chao.zhang Posted November 28, 2012 Author Share Posted November 28, 2012 Let me make it more clear. I have a earth Sphere with the center at position (0, 0, 0), I need to move the camera around the earth equator and make sure the viewport center is always the sphere center. so the position P of camera path (the red circle) can be computed as P(RcosΘ, RsinΘ, 0). then the camera view direction at position P is V(-RcosΘ, -RsinΘ, 0) ? and should I set the up vector of the player? anyone knows please help, thanks. Link to comment
ulf.schroeter Posted November 28, 2012 Share Posted November 28, 2012 The up-vector defines the roll degree-of-freedom of the camera. In your case up should be vec3(0,0,1). Link to comment
chao.zhang Posted November 29, 2012 Author Share Posted November 29, 2012 many thanks. Link to comment
Recommended Posts