Sign in to follow this  

Rendering Larger Viewport

Recommended Posts

I'm attempting to anti alias by rendering to a larger texture then scaling down the texture. My code looks like this 








For some reason it's only rendering the bottom left corner of the FBO.

Edited by funnyben123

Share this post

Link to post
Share on other sites
glFrustum — multiply the current matrix by a perspective matrix

Before applying the frustum-matrix you have to reset the matrix first (glLoadIdentity), push and pop it (glPushMatrix, glPopMatrix) or use some other method (e.g. glLoadMatrix)

Edit: Or more likely you are using glFrustum wrong. The docs say void glFrustum(left, right, bottom, top, nearVal, farVal) - in your example code you are not in the center with your matrix.

- Martin Edited by MausGames

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