OpenGL 2 supported in Irrlicht 0.14.0 (gcc version)

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
Alex001
Posts: 25
Joined: Tue Dec 02, 2003 8:20 pm
Location: Germany, Munich

OpenGL 2 supported in Irrlicht 0.14.0 (gcc version)

Post by Alex001 »

tried to run OpenGL (version 2) in Irrlicht 0.14.0 using the gcc version.
1. I could not use OpenGL 2, the Irrlicht.dll (gcc version) seems to support only 1.5.
is this true ?

2. I would really like to have a MS-free environment (all OpenSource), but to aim this target I need to
- use f.e. GCC
- OpenGL (version 2)

I think in the result my program (based on OpenGL and GCC) should not run slower than using MSVC and DirectX, but all my tests ended up in a very slow OpenGL version, MUCH slower than my DirectX version.

I am very thankful for any hint on that problem and I think solving this problem could bring the community foreward!
:D
[/b]
Any fool can make things bigger, more complex, and more violent. It takes a touch of genius-and a lot of courage-to move in the opposite direction.
(Albert Einstein)
terefang
Posts: 48
Joined: Tue Jun 21, 2005 9:56 am

Post by terefang »

have you looked at the optimization options in dev-cpp?

default irrlicht dll example 10 (shaders) gives ~2900 fps on my system with opengl (~3500 with dx9).

gcc-compiled irrlicht without optimization gives only ~300 fps with opengl.

take a look at the gcc documentation about '-O6' and further 'expensive-optimizations' options.

PS: you mentioned a m$-free environment, why do you use windows as a platform then? ;-)
terefang
nVidia 7800GT/256, AMD64-X2 4k2, Latest Fedora/CentOS
hybrid

Post by hybrid »

If you want to use libraries with different API you have to recompile Irrlicht on your own. It should be source compatible, though, since Irrlicht does not use any specialized features of OpenGL 1.5 that are not part of version 2.0.
Performance might also depend on hardware support of the OpenGL library.
Guest

Post by Guest »

Just to clarify - Niko hasn't upped the OGL requirement from 1.2 to 1.5 in 0.14.0 has he? It is just using the extra features if it finds them and falls back to 1.2?????

chrs
hybrid

Post by hybrid »

It seems as if he even relaxed the old requirements some more. For shaders he's checking for basic shader support and not for specific versions anymore. Did not check the consequences for compatibility yet, but I'd assume that it shoudl work more relaible with older and newer versions of OpenGL now.
Alex001
Posts: 25
Joined: Tue Dec 02, 2003 8:20 pm
Location: Germany, Munich

Post by Alex001 »

@terefang and the other who sent replies: thank you for your hints.

I really guess I have to look deeper into C::B as well as the doku there.
Very strange: after a while I COULD run the OpenGL version; I think I just made an error somehow before.

And, of course, the next switch is to leave Windows at all and go to Linux (Debian).
Any fool can make things bigger, more complex, and more violent. It takes a touch of genius-and a lot of courage-to move in the opposite direction.
(Albert Einstein)
Post Reply