★ TouchArcade needs your help. Click here to support us on Patreon.

OpenGL 2.0 question.

01-26-2011, 10:37 PM
#1
Joined: Jan 2011
Posts: 235
OpenGL 2.0 question.

We've written an application using the opengles 2.0 libraries but have since found that there are still a lot of people using older devices that do not have the ability to run these apps. Has anyone had any experience backporting a gles2.0 game back to 1.0? How much effort is involved and is there any documentation on this particular issue?


Thanks
01-26-2011, 11:48 PM
#2
I wrote up a post a while back about converting from ES1 to ES2. It's not perfectly what you are asking for, but maybe you can apply it in reverse. It has a chunk of code in it that lets you initialize a 2.0 renderer on devices that allow it and a 1.0 renderer otherwise.

http://goldenhammersoftware.blogspot...to-es2-on.html

For materials I basically describe a fixed function version, and specify a vertex and pixel shader. My 1.0 renderer ignores the vertex and pixel shader, and my 2.0 renderer ignores a lot of the fixed function stuff in the file. It's not perfect, but it's working for me.

A lot of effects you can create in ES2 can't be recreated in ES1, at least not without heavy performance cost. You'll have to start basic and figure out what effects from your ES2 game to try to simulate.
01-27-2011, 03:04 AM
#3
Joined: Jan 2011
Posts: 235
Thanks