How can I use openGL func glortho()?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
d3d3d353
Posts: 5
Joined: Tue Aug 31, 2010 2:43 am

How can I use openGL func glortho()?

Post by d3d3d353 »

Hi All,
I try to use glortho(),but it doesn't seem to work.
I use the Tutorials2.Quake3Map.I load a ball which made by 3dmax.The code is:
addcamerascenenode(...);
beginscene(...);
glviewport(...);
......
glortho(...);
drawall();
endscene();

glortho()doesn't work,what shall I do?Thanks a lot.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Why don't you use the Irrlicht methods for ortho cams?
d3d3d353
Posts: 5
Joined: Tue Aug 31, 2010 2:43 am

Post by d3d3d353 »

hybrid wrote:Why don't you use the Irrlicht methods for ortho cams?
Thanks a lot. but I still don't understand. Could you explain it more specifically? Which method can I use?
Thank you!
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Read in the documentation about the methods of the ICameraSceneNode, the ISceneManager and the matrix4 classes to learn properly how to create an orthogonal projection matrix, and how to set it, and how to enable this camera to render the scenes.

matrix4
ISceneManager
ICameraSceneNode
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply