Jump to content

[SOLVED] can someone give a more detailed discription about the player setUp and setViewDirection?


photo

Recommended Posts

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

post-512-0-45152600-1354065112_thumb.jpg

 

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
×
×
  • Create New...