Chapter 7

Changing model positions in the HUD camera

It will use the projection matrix of its parent camera (or main camera) when there is no preset one. A model filled the entire screen means that you can just wrap it up with a truncated pyramid (perspective) or cube (orthographic). An upside down effect can be implemented using:

setProjectionMatrixAsFrustum( left, right, top, bottom, near, far ); // Swapped top and bottom

To transform a specified part of 3D scenes into 2D images, you have to carefully set the view frustum. The following website may help in some ways: http://www.songho.ca/opengl/gl_projectionmatrix.html.

Another way to display the same scene in different views

The following example code segments will show the same scene in two cameras: ...

Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.