PDA

View Full Version : [DEV] OpenGL ES Test Application


l3v5y
25th May 2009, 12:44 AM
Hi everyone...

I've been playing around with OpenGL ES, struggling to get it to compile, and eventually succeeding to discover that some of the parameters I set wouldn't work on the Diamond.

I've fixed all of the issues that I know of and now I want to see what devices a little test application will work on.

Hopefully, it should work on all the MSM720X based devices, and anything else that supports OpenGL|ES, that support can either be hardware or software acceleration, so those of you without the more recent devices can give it a shot and see what happens.

You should be presented with a triangle, that you can reorientate with mouse click and drags...

If people could test it out and see what happens, I'd be very happy :)

It may even lead somewhere!

Tested and verified on:
HTC Touch Diamond
HTC Touch Diamond2
Xperia X1 (sortof...)
HTC Touch HD
HTC Touch Pro

hanackin
25th May 2009, 01:09 AM
it works perfectly on my HD ! :D

l3v5y
25th May 2009, 01:16 AM
it works perfectly on my HD ! :D

Excellent.

Are the framerates good? (I know there's no display of framerates, but does it feel smooth?)

Matzix
25th May 2009, 01:38 AM
I've tested it on my german O2 XDA Diamond Pro and it works very well and feels very smooth - even with chainfires gfxboost being disabled... ;)

hanackin
25th May 2009, 02:01 AM
Excellent.

Are the framerates good? (I know there's no display of framerates, but does it feel smooth?)

it looks really awesome dude ! it is really fast and the display is smooth :cool:

MarcLandis
25th May 2009, 06:09 PM
Fast and smooth for me :)

Did you do it in C++ or Managed Code?

l3v5y
25th May 2009, 06:36 PM
Fast and smooth for me :)

Did you do it in C++ or Managed Code?

C++. Which is why I had trouble setting it up. Koush's managed API is easier to set up, but slower to run...

l3v5y
25th May 2009, 06:48 PM
Attached is a new version that utilises a wrapper for some OpenGL ES functions, and l3v5yExtendedFunctions for some window creation etc...

It should have comparable frame rates, memory usage etc.

It also utilises the accelerometer of HTC devices, tap the center button (or anything that sends VK_RETURN) do toggle it.

You need to copy both dlls and the exe to your device, then run the exe.

whiskeybro
25th May 2009, 06:53 PM
Fast and smooth on my diamond here :)


and the new version is flickering a bit by fast moves

torrentonly
25th May 2009, 07:22 PM
I don't know, if this has supposed to work on Iolite (different chipset), so i tried it :). App even didn't start. It shows usual error with "either it is not signed..."

l3v5y
25th May 2009, 07:24 PM
I don't know, if this has supposed to work on Iolite (different chipset), so i tried it :). App even didn't start. It shows usual error with "either it is not signed..."

That probably means your device doesn't have a libGLES_cm.dll file. Which means that by default there's no OpenGL ES support.

l3v5y
25th May 2009, 07:37 PM
Something that may be of interest to people here...

This (http://forum.xda-developers.com/showthread.php?p=3833586#post3833586) is a game built off the framework created earlier... Should work on the same devices :)

anikolop
25th May 2009, 09:24 PM
Tested all apps on HTC Jade and all run smoothly.. :)

shadowmike
25th May 2009, 10:55 PM
Tested on x1 Test1 in post1 works but freezes for a second here and there.

test2 run but displays hello! and then closes.

and in the coin thread i reported it worked flawlessly on my x1

l3v5y
25th May 2009, 10:59 PM
Tested on x1 Test1 in post1 works but freezes for a second here and there.

test2 run but displays hello! and then closes.

and in the coin thread i reported it worked flawlessly on my x1

Kinda odd...

But since the coin works, it may be because of the version of the dlls... No idea why... I'll have a look though!

shamus
25th May 2009, 11:16 PM
works ok with topaz

l3v5y
25th May 2009, 11:21 PM
works ok with topaz
Awesome...

I'll add that to the first post.

bronx
25th May 2009, 11:25 PM
ok, just gave it a go. You can edit Your first post - works on xperia. perfect.

umm... sorry. test 2 doesn't work. as above - just brief hello and exits.

Floxzie
25th May 2009, 11:39 PM
This is great. I tried the two tests and your coin app on a htc td - they were all perfectly smooth...

Do you think it's possible to add support for 3ds max model files? That would be completely fantastic!

Thank you for your work, I really appreciate it. Now I can show my iPhone friends that my device isn't just a lagging piece of crap.. :)

l3v5y
25th May 2009, 11:53 PM
ok, just gave it a go. You can edit Your first post - works on xperia. perfect.

umm... sorry. test 2 doesn't work. as above - just brief hello and exits.

It'll be because of the lack of accelerometer... My code didn't contain that much error checking... :S

Floxzie
27th May 2009, 10:31 PM
Do you think it's possible to add support for 3ds max model files? That would be completely fantastic!

:o did you find my question stupid? I'd really like to have an answer either case...

l3v5y
27th May 2009, 11:40 PM
:o did you find my question stupid? I'd really like to have an answer either case...

Sorry, I didn't see it!

I'll have to look into that format, and see if I can work out what it's doing... So, it's a maybe. :)

Floxzie
28th May 2009, 01:39 AM
Sorry, I didn't see it!

I'll have to look into that format, and see if I can work out what it's doing... So, it's a maybe. :)

thank you so much for your interest! :D

I've got another question though.. are you making your current models (like the 3d triangle) using code or a 3d modelling program?

I noticed the coin in your other app could be skinned, so that's most likely not something you've made in a 3d modelling program. probably something you've produced with code and then attached the skin? :P

if you're using code to produce the models, I don't see how there could be any formats supported at all? :rolleyes:

if this is just confusing I still hope you'll look into it. games would be extremely much easier to develop if it's possible to use 3ds max models. :)

regards

l3v5y
28th May 2009, 02:02 PM
thank you so much for your interest! :D

I've got another question though.. are you making your current models (like the 3d triangle) using code or a 3d modelling program?

I noticed the coin in your other app could be skinned, so that's most likely not something you've made in a 3d modelling program. probably something you've produced with code and then attached the skin? :P

if you're using code to produce the models, I don't see how there could be any formats supported at all? :rolleyes:

if this is just confusing I still hope you'll look into it. games would be extremely much easier to develop if it's possible to use 3ds max models. :)

regardsI'm currently producing the shapes in code only, but I think it may be possible to load a file and read the data in that and then create a 3d model from that in OpenGL...

heliosdev
28th May 2009, 10:36 PM
Excellent.

Are the framerates good? (I know there's no display of framerates, but does it feel smooth?)

Would be interesting to see the difference in native/managed code. If you find some time you could implement the 'torus light test' found in my test app (source included)! (even it's not optimized using triangle strips)

l3v5y
28th May 2009, 10:48 PM
Would be interesting to see the difference in native/managed code. If you find some time you could implement the 'torus light test' found in my test app (source included)! (even it's not optimized using triangle strips)

I'll give it a shot.

I have some C++ code for creating a torus already, but I guess that's cheating, since it's already been optimised?

heliosdev
28th May 2009, 11:00 PM
What I wanted to say is that in my code I don't use triangle lists. Just want to see a few thousands of lit triangles. (with or without triangle lists)

agent_47
30th May 2009, 06:28 AM
hey....great job here!!!!
i have been testing on my x1.....all is going gr8.....had a few problem with manila 2.1 & wm6.5 and openvg driver but this one really helped!!!! and no problems so far

thnx

xeirwn
30th May 2009, 02:18 PM
Managed to run both tests on my Samsung Omnia, very smooth,
using dll files from "Sensory Overload" game.

I see a white pyramid which I can move around, but no angles,
is that correct? :confused:

l3v5y
30th May 2009, 07:38 PM
Managed to run both tests on my Samsung Omnia, very smooth,
using dll files from "Sensory Overload" game.

I see a white pyramid which I can move around, but no angles,
is that correct? :confused:

It should be coloured... The angles may blend in to each other given the colours are the same either side of the angles...

maximus_1
25th November 2009, 05:31 PM
Hi, I am wondering what IDE you used to create this app and if you could please attach c++ code for this. I have been playing for some time with C# version but i want to try c++ version and can't figure out how to make c++ open gl |es project in vs2008 that would compile with no errors.

gamer-Kenny
9th December 2009, 09:00 PM
Can anyone help me? I always get the message, that it is either nor signed or one of its components was not found. Could it be, that OpenGL is notinstalled or integrated in my device? I have a Treo 750

bteljuice
10th December 2009, 12:12 AM
is this compatible with TP2?

I mean for TP2, we dont need openGL(its for older phones).

Is this the same as Driverpack 3, like neoS

DaveTheTytnIIGuy
10th December 2009, 03:27 AM
is this compatible with TP2?

I mean for TP2, we dont need openGL(its for older phones).

Is this the same as Driverpack 3, like neoS
Yeah, it's compatible, though I had to disable Manila before it would work. However, keep in mind that it's just a benchmark app and not GPU drivers.

bteljuice
10th December 2009, 03:42 AM
Oh your right dave. Its only a benchmark.

Thanks for having my back bro. I guess we Kaiser -> Rhodium peeps look out for each other ;)

Alex_w
23rd December 2009, 12:31 AM
Fails to start on my Acer m900. Standard not-signed / missing dll error.