Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: energy on December 15, 2007

Title: OldSkool Effects with Opengl
Post by: energy on December 15, 2007
Hello to all!
I started using OpenGL this time and want to ask to share and explain some codings for Oldskool effects with OPENGL
like scrollers etc....
Jim posted some examples for copperbars, but i think only in 2D Mode...
How to use all effects mixed with 2D/3D mode?

Cheers and thanks in advance
eNeRGy

Title: Re: OldSkool Effects with Opengl
Post by: Rbz on December 15, 2007
QuoteHow to use all effects mixed with 2D/3D mode?
Just switching from orthographic mode to perspective mode and vice versa.

orthographic mode:
glViewport(0, 0, 800, 600);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.0f, 800, 600,0.0f);


perspective mode:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0f,800.0f/600.0f,0.1f,100.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();


Title: Re: OldSkool Effects with Opengl
Post by: energy on December 15, 2007
Thanks RBraz !  :-*