Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[FREEWARE] OpenGl ES 2.0 Demo

OP Phippu

7th April 2010, 03:43 PM   |  #1  
Phippu's Avatar
OP Member
Flag Bern
Thanks Meter: 0
 
63 posts
Join Date:Joined: Mar 2010
More
Its there, the first real OpenGL ES 2.0 demo! Some of you may know already my Tigre Engine. The last few day I started to add OpenGl ES 2.0 support and below are the first results. I'll publish all the code as soon as its 100% ready, if you can't wait you should have a look at the current engine at my page, with full source code and a lot of demo applications.

To the demo itself: It shows a very simple phong shader applied to different meshes. If your device has a gsensor, then you can spin around the camera by rotating your device. I've tested the demo with my HD2 and got a bit more than 50 FPS, which is realy god (but remember, its only a prototype and I have a lot of ideas how to improve the performance:))

The second demo is available now! It shows some more advanced effects such as diffuse mapping and normal mapping combined with phong specular lighting. You can switch between those effects and use the g-sensor to rotate the eye or you can rotate it freely with your fingers.

Requirements:
- .net 3.5 runtime
- windows mobile 5,6,6.1,6.5 or 6.5.3
- opengl 2.0 with shader compiler and 1.x support

supported devices:
HTC HD2, HTC HD Mini, Toshiba T01, Acer Neotouch

not supported devices (there are lot of demos on my page that work with this devices, but not opengl 2 demos):
HTC HD, Diamond, Diamond 2, Touch Pro, Touch Pro2

devices that support opengl es 2.0 but does not fulfill all requirements (those will be supported soon):
Omnia II, F900

Download (look for "Tigre Gl2 Test" and for "Tigre Demo Suite 2.0" for the eye)

The updated engine is not yet released, but this article explains how open gl es 2.0 works and how it can be used with the upcoming update:

Basics of OpenGl ES 2.0 and how to use it with Tigre

PS: Why is ogles 1.x required? Ogles 2.0 does offer nothing to do all the required matrix transformation stuff. So I simply decided to use that functionality from ogles 1.x, but omnia II users don't worry, there will be a cpu based transformation too!

Last edited by Phippu; 9th June 2010 at 01:22 AM. Reason: updated links
7th April 2010, 05:47 PM   |  #2  
Senior Member
Thanks Meter: 0
 
573 posts
Join Date:Joined: Dec 2006
More
Cool test, how do you display the FPS?

If only games developers harnessed the power available, well hopefully we'll see some great 3D games with WP7
7th April 2010, 06:28 PM   |  #3  
Phippu's Avatar
OP Member
Flag Bern
Thanks Meter: 0
 
63 posts
Join Date:Joined: Mar 2010
More
Measuring the time that was required for rendering a frame is easy, but display text with my engine is currently only possible with ogles 1.x (but i think the text implemnetation is great and very flexible). I'll put the updated Tigre sdk online as soon as every feature that works with ogles 1.x also works with ogles 2.0, I think this will take 1-2 weeks.

To WP7: I'll port the engine also for xna, so this will make things even more easy Haven't started this yet, but I don't know if we can access opengl directly with wp7 or if we can use the gpu only via xna. This would be very sad, since xna does not allow us to writte own shaders.

PS: the next demo will be some more eye candy, with bump mapping+specular lighting + environment mapping; be exited
7th April 2010, 06:55 PM   |  #4  
Senior Member
Flag Oslo
Thanks Meter: 0
 
236 posts
Join Date:Joined: May 2008
This is fantastic! I'm working on some OpenGL-stuff myself, and with your permission I'd like to use parts of your tigre-implementation.

I'm trying to load up one of the demos (actually any of the demos) in the VS-solutions, but I get an error "Create context failed: 12291"

Any ideas?


Running it on an HTC HD2, btw...
7th April 2010, 07:04 PM   |  #5  
Phippu's Avatar
OP Member
Flag Bern
Thanks Meter: 0
 
63 posts
Join Date:Joined: Mar 2010
More
Thanks Of course you may use parts of Tigre, but please note somewhere that you use parts of Tigre and please do not use it for commercial use without permisson.

The problem with the context failed bug is well known, also for silvermoon or any other ogles application on the snapdragon platform. For now you have to softreset your hd2, then it sould work. I've found already a solution for that issue, the bug will be removed in the next release.
7th April 2010, 07:06 PM   |  #6  
Senior Member
Flag Oslo
Thanks Meter: 0
 
236 posts
Join Date:Joined: May 2008
Quote:
Originally Posted by Phippu

Thanks Of course you may use parts of Tigre, but please note somewhere that you use parts of Tigre and please do not use it for commercial use without permisson.

The problem with the context failed bug is well known, also for silvermoon or any other ogles application on the snapdragon platform. For now you have to softreset your hd2, then it sould work. I've found already a solution for that issue, the bug will be removed in the next release.

Ah, all right I'll give that a try! Of course no commercial application, just really nice and useful (hopefully )
7th April 2010, 07:17 PM   |  #7  
Phippu's Avatar
OP Member
Flag Bern
Thanks Meter: 0
 
63 posts
Join Date:Joined: Mar 2010
More
I'm exited, tell me if you're done or if you need some help.
7th April 2010, 07:56 PM   |  #8  
9600xt's Avatar
Senior Member
Flag Turin
Thanks Meter: 53
 
599 posts
Join Date:Joined: Aug 2008
Donate to Me
More
why when i try to run it on my blackstone it crashes??
7th April 2010, 08:58 PM   |  #9  
Phippu's Avatar
OP Member
Flag Bern
Thanks Meter: 0
 
63 posts
Join Date:Joined: Mar 2010
More
The Blackstone supports only OpenGl ES 1.0, but the demo requires OpenGl 2.0. Have a look at my page, there are many demos that run all on the Blackstone. Here is a gallery of that demos.
8th April 2010, 04:18 AM   |  #10  
Senior Member
Thanks Meter: 11
 
461 posts
Join Date:Joined: May 2008
When I run I just get a blank window.

Do I need to start. App seems to be okay as I can select menu items like teapot etc but still blank.

Running Xannytech rom with Chainfire driver and dotNet 3.5

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes