Sign in to follow this  
dnaxx

Position 3D model in the center

Recommended Posts

dnaxx    100
hello! after rendering a scene I finally want to render a 3D modell into the center (center in respect to the screen width/height) of the screen. How can I do this? thank you,

Share this post


Link to post
Share on other sites
Waffler    127
Calling glLoadIdentity() bring the matrix back to the origin, which is (in a way) the camera's location and rotation. After that, just translate and render as necessary.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this