OpenGL ES 1.x render system "OpenGL ES 1.x emulator" support

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

OpenGL ES 1.x render system "OpenGL ES 1.x emulator" support

Post by Assaf Raman »

I wanted for a few months now to add support to OpenGL ES, mainly to be able to run OGRE on mobile devices.
Sinbad add a new OpenGL ES render system a few month back and I didn't find the time to look it up until the last weekend.
Turns out it didn't support multiplatform and only had GTK implemented in it.
I found this good win32 OpenGL ES emulator and started to work on the code.
I added win32 support for it and the base for other platform implementations (something similar to the OpenGL render system).
I just committed my first patch to the render system.
I don't know if GTK support is broken – because I didn't have an environment to test it on – I tried my best to keep the support – but I there is only so much you can do if you don't have the option to compile.
I will be happy if someone will have a look and test if it still works.

Attached are a few sample screen shot from my windows computer - using the OpenGL ES render system.
Attachments
Water
Water
Demo_Water.png (349.19 KiB) Viewed 7796 times
Particle FX
Particle FX
Demo_ParticleFX.png (236.97 KiB) Viewed 7794 times
Facial Animation
Facial Animation
Demo_FacialAnimation.png (139.72 KiB) Viewed 7791 times
Skeletal Animation
Skeletal Animation
Demo_SkeletalAnimation.png (271.58 KiB) Viewed 7792 times
Watch out for my OGRE related tweets here.

User avatar
Kaelic
Halfling
Posts: 95
Joined: Tue May 15, 2007 1:32 pm
Location: Guildford, UK

Re: OpenGL ES 1.x render system win32 support

Post by Kaelic »

Would love to see this running on an iPhone!

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

Me too, I will try start working on it when I will find some time.
Watch out for my OGRE related tweets here.

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

The chess also seems to be functional.
Attachments
chess2.png
chess2.png (322.66 KiB) Viewed 7763 times
chess1.png
chess1.png (372.12 KiB) Viewed 7764 times
chess0.png
chess0.png (225.36 KiB) Viewed 7756 times
Watch out for my OGRE related tweets here.

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: OpenGL ES 1.x render system win32 support

Post by sinbad »

Great work!

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

I am going to try to compile OGRE to run on Symbian - it more approachable for me because is has some STL and boost support:
Open C provides developers with a set of standard POSIX and middleware C libraries from nine well-known C libraries. Open C++ offers standard C++ libraries with STL, IOStreams, and Boost libraries support.
I don't think that anyone has gotten OGRE to run on Symbian before, correct me if I am wrong.

I am going to get OGRE to compile "as it" as much as I can.

I will update on this thread while I work this weekend on it.
Watch out for my OGRE related tweets here.

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: OpenGL ES 1.x render system win32 support

Post by sinbad »

Assaf Raman wrote:I don't think that anyone has gotten OGRE to run on Symbian before, correct me if I am wrong.
Not that I'm aware of, that would be pretty cool.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

which version of ogre3d you use, I use ogre3d 1.61, but it has complier errors?
when I use PowerVR SDK, it needs <egl/egl.h>, where I can find it?

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

I use the trunk.
This is the path of egl.h on my computer (default):
C:\Imagination Technologies\PowerVR SDK\OGLES-1.1_WINDOWS_PCEMULATION_2.03.23.1162\Builds\OGLES\Include\GLES
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

I use OGLES-1.1_WINDOWS_PCEMULATION_2.04.24.0765, but the application will crack when use RenderSystem_GLES_d.dll. Could you send your Includes, Libs and Dlls to my mail. Thanks!
My Email is follow999@msn.com

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

Can you give more information about your problem?
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

I check out code from trunk.
When I use OGLES-1.1_WINDOWS_PCEMULATION_2.01.21.0983, it is not support glTexEnvi, so I replace it with glTexEnvf, but it doesn't show right.
When I use OGLES-1.1_WINDOWS_PCEMULATION_2.04.24.0765, it crashes in eglChooseConfig, stops in malloc, no debug information.
It is strange, I don't known whether it occurs by opengles simulator or not.
Could you tell me more information to run it successfully. Thanks.

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

What are you running? Are the demos I posted about work for you?
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

run demo such as Demo_SkeletalAnimation or Demo_BezierPatch.

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

I just had a look at "OGLES-1.1_WINDOWS_PCEMULATION_2.04.24.0765", seems that they removed the egl support!?
To compile an run the demos I used "OGLES-1.1_WINDOWS_PCEMULATION_2.03.23.1162" that has egl support.
How did you get the code to compile with "OGLES-1.1_WINDOWS_PCEMULATION_2.04.24.0765"?
Watch out for my OGRE related tweets here.

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

seems that the demos that come with "OGLES-1.1_WINDOWS_PCEMULATION_2.04.24.0765" don't compile for me.
Do they compile for you?
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

it seems that PowerVR doesn't supply OGLES-1.1_WINDOWS_PCEMULATION_2.03.23.1162, could you send me a copy. Thanks!
I download a egl.h file from www.khronos.org and put it in EGL folder besides GLES folder. Then you can compile the projects.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »


User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

I will create a GLES 1.x dependency zip file like the one we have for the other dependencies - so you can just copy\paste it to the OGRE folder and it should compile and run, sounds good? Give me 20 min.
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

great. Thanks!

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

where do you put the GLES 1.x dependency zip?

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

Just unzip to the OGRE source folder - it will have the directory structure to copy the files to the right place. (h files to Dependencies\include, lib to Dependencies\lib and dlls to samples).
This is smiler to the way you copy the other OGRE precompiled dependencies.
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

Yes. I known. What I mean is where I can get this file, from svn or other ways?

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: OpenGL ES 1.x render system win32 support

Post by Assaf Raman »

OGRE OpenGL ES 1.1 win32 Dependencies - the source for the files is: "OGLES-1.1_WINDOWS_PCEMULATION_2.03.23.1162".
Just unzip to the OGRE source folder and make sure you are unzipping so the right directory will go to the right place.
Make sure you don't have other files getting included from other paths (best to rename "C:\Imagination Technologies" so you will be sure).
Post if this issue is resolved.
Watch out for my OGRE related tweets here.

follow999
Gnoblar
Posts: 10
Joined: Sat Mar 07, 2009 6:19 pm

Re: OpenGL ES 1.x render system win32 support

Post by follow999 »

Yes. It really works. Excellent!!!!!!!!!!!!!!!!!!!!

Post Reply