Is it ok to use OpenGL 1.1?

I have googled around a bit and only found:

  • you should use 3.0 and above
  • but 1.1 is ok for use, for now

But it would be hard to move my game engine from 1.1 to 3.0 without changing too much… My game engine is just 2D and, at the moment, targeted for beginners… So is there anything bad that could happen with keeping with 1.1?

Thx in advance…

By keeping with 1.1, I’m assuming you mean rendering with commands like glVertex and glBegin and glEnd. I think it would be a good learning experience for you to update the library, but I don’t think enough people use your library for this updating to be crucial (not meant to offend you, just an observation). Although I think you will see a noticeable amount of lag as you start to render more and more with opengl 1.1.

I only really start to notice lag in around 5000 (or 50000, can’t remember) images on a general laptop and I will be working on an ‘isViewable()’ method to stop drawing images which aren’t viewable by the camera…

So lag isn’t really a problem…

Well then I guess it’s up to whether you want to learn opengl 3 or not :stuck_out_tongue:

Switch to 2 then !
Not as different as 3 but still way better

I would highly recommend you learn the programmable pipeline in GL 3.0+, as 95%+ of computers today support it (according to Steam)! The fixed function pipeline (GL 1-2) is still there for getting something quickly to render, but otherwise for engines/games I would highly recommend using modern GL.

The poor 5% though… :frowning:

Also, yeah, unless you’re running it on computers from before 2008, you’re fine with OpenGL 3.0. In fact, I’m slowly gonna switch my library over soon. Geometry shaders are looking more and more useful. Gonna have to re-write my shaders for ALLOT of things in ‘Cross’ though…

Just like to point out, thats means Steam users, ergo gamers and only those who took the survey, so that number might be as low as 70-80%

I have fought against GL 3 for a long time simply because you want as many people as possible able to play your game. Also mac, linux and shitty windows pc users. But at this point it might be alright…
I mean of course the best case is when your code can just switch, which good engines can, like even libgdx can do.

If you are making games, you should be mostly targeting Steam anyway. Non-Steam users are generally the casual gaming genre… which doesn’t even have demanding graphics that merit need for the programmable pipeline.

I just did some research, and found this website. There’s a game called Overgrowth by wolfire games, and it’s slowly growing in popularity (I’ve got it, looked at the shaders and they’re using good ol’ OpenGL 2.0). Overgrowth has a system that reports back to their website with information about the hardware people are running their games on, so have a look at this:
http://feedback.wildfiregames.com/report/opengl
And the steam survey
http://store.steampowered.com/hwsurvey/
And a reddit post

We had some discussions in IRC whether OGL3 is requirable nowadays some time ago when I was teporarily forced to use an oldish laptop with still it’s pre-installed Vista on it (no idea how old exactly it is, thats why I mention the OS) which was only able for 2.9.

Am also mainly using 1.1 (which works -although being totally outdated- still perfectly fine), but that’s pretty much just a result of being too lazy to change that.
If you want to stay at 1.1 and it works, do that, but expect that in some years nobody will really be able to run it anymore; if you want to move on, expect some work and that still a few people cannot run it (but will at some point).

This is really something you have to decide for yourself.

Also note that only having very outdated tech in your engine further reduces the already minute chances of somebody else using it.

Also to note, I made a mistake earlier: it was 90%+ that has GL 2.0-2.1 (which support shaders), and ~70% support OpenGL 3.

I think that actually about 98% of Steam users have OpenGL3+ capable cards but a fairly significant number of them are still using the broken OEM drivers.

Cas :slight_smile:

I strongly suggest you to use 3.x in Core profile. In the case you can’t run 3.x, then use 2.x in the very least with the shaders.

But the problem is, my game engine rendering system is pretty much:

drawImage(Texture, [settings])

or

drawShape(Shape, [possible texture], [settings])

So it would be hard to go to OpenGL 3

Yeah, in my experience I’d definitely agree. I still have people having problems running my game with LWJGL 2.9.2 / Slick2d and having to update their drivers. How people have cards that can’t even use Slick (based on GL11) is beyond me.

Without derailing the topic too much I’d like to point out that this is one of the problems with making a game engine before you’ve had decent experience making games.

On topic, keep in mind that Open-Source Linux drivers haven’t got very complete implementations of OpenGL 3.x. I believe the limitation is that you can’t use higher than 3.0 unless you’re on core profile. LWJGL should have some way to configure using the core profile but I’m not entirely sure what it is. And then on top of that you have the requirement that all code must use modern OpenGL techniques.

It’s sort of an all or nothing if you want to use OpenGL 3.1+ and support Linux. (of course, proprietary drivers can run it fine without the core profile issue, but AMD especially are known for their drivers always being horribly out of date)

It is not at all hard, what you are having right now can be achieved with streaming VBOs. I do that all the time in my engine. I simulate the immediate mode in GL33 with my Batcher class.

LWJGL has a way of selecting between version selection of the context. In LWJGL 2.X you have to do that with ContextAttribs class. In LWJGL 3 you will specify that with GLFW hints.

My game engine is targetted towards beginners ATM… thats why its so simple instead of stuff like sprite batchers and that… I like a simple life :wink:

[quote=“Rayvolution,post:17,topic:53010”]
So I’m guessing (according to this) that you use GL11? If so, is there any problems with it rather than updating to GL30? I rather an opinion from someone who knows my side rather than people who love and believe in the other side.

Thanks for the help… I will have a look at GL30 and maybe consider it