• Welcome to Dark Bit Factory & Gravity.
 

OldSkool Effects with Opengl

Started by energy, December 15, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

energy

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

coding: jwasm,masm
hobby: www.scd2003.de

Rbz

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();


Challenge Trophies Won:

energy

coding: jwasm,masm
hobby: www.scd2003.de