Skip to content

Camera pose in ECEF, camera matrix <--> View matrix, projection matrix #2369

Closed Answered by jasonbeverage
rebmaso asked this question in Support Q&A
Discussion options

You must be logged in to vote

There are a few things you can try to figure out what is going on:

  1. If you are going to use the EarthManipulator, turn off terrain avoidance to make sure it's not moving the camera to avoid going under the terrain. For example do something like this:
    manip ->getSettings()->setTerrainAvoidanceEnabled( false );

  2. I'm not sure what the source of the data that you are loading is, but make sure that you are using the correct vertical datum for the elevation. Try adding egm96 to your elevation layer in your earth file and see if things look like they line up better.

  3. Your projection matrix is using fixed values for the width and height. Be certain that the window you are rendering to has the …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rebmaso
Comment options

Answer selected by rebmaso
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support questions
3 participants