Jump to content

  • Log In with Google      Sign In   
  • Create Account


funnyben123

Member Since 19 Dec 2012
Offline Last Active Dec 28 2012 02:31 PM
-----

Topics I've Started

Rendering Larger Viewport

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 left corner of the FBO.


glUseProgram and glBindFramebuffer order

19 December 2012 - 09:49 PM

my apologies for being new to opengl,

does order matter when call glUseProgram and glBindFramebuffer?

if I -

glUseProgram(1)
glBindFramebuffer(x)
dlDrawElements()

Will I be using program 1?

Thanks!

Multiple Textures Single Pass

19 December 2012 - 07:09 AM

Hello!

I'm new to forum and to openGL as well and struggled these last few days to get an SSAO shader to work.

For this I needed a Color, Luminance, and Depth Texture. Is it possible to acquire all of these with a single pass?

Thanks!
BlaBZ!

PARTNERS