Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualfunnyben123

Posted 28 December 2012 - 02:16 PM

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

 

glViewPort(0,0,GraphicsWidth()*2,GraphicsHeight()*2)

glFrustum(0,Graphicswidth()*2,0,GraphicsHeight()*2,1,1000)

glDrawElements()

glViewPort(0,0,GraphicsWidth(),GraphicsHeight())

glFrustum(0,GraphicsWidth(),0,GraphicsHeight(),1,1000)

 

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


#1funnyben123

Posted 28 December 2012 - 02:15 PM

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

 

glViewPort(0,0,GraphicsWidth()*2,GraphicsHeight()*2)

glFrustum(0,Graphicswidth()*2,0,GraphicsHeight()*2,1,1000)

glDrawElements()

glViewPort(0,0,GraphicsWidth(),GraphicsHeight())

glFrustum(0,GraphicsWidth(),0,GraphicsHeight(),1,1000)

 

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


PARTNERS