This site is no longer active and is available for archival purposes only. Registration and login is disabled.

ANN: OpenGL port for PocketPC


ANN: OpenGL port for PocketPC

Postby Holger » Nov 10, 2002 @ 3:59pm

I have made an OpenGL port for the PocketPC based on the TinyGL source code. This is still a very early port so the performance is not the greatest, but the samples I have tried (from the TinyGL source code and various other OpenGL source code) worked alright on my iPaq 3630.
My OpenGL interface itself is closely based on the standard Windows implentation of OpenGL, so it should be possible use any OpenGL source code for Windows and try to compile it with eVC (making the appropriate changes to the window creation code etc.).
The source code for my OpenGL port can be downloaded from . There is also a precompiled version of the included GLSample application for ARM PocketPCs available at

I am releasing this as Open Source to the PocketPC developer community because I think it might be interesting and useful to others. I would be happy if any other interested people might join in the development of this port.
Holger
pm Member
 
Posts: 5
Joined: Nov 10, 2002 @ 2:28pm


Postby Dan East » Nov 10, 2002 @ 8:49pm

Finally! It's about time something like this was produced, and unfortunately it had to be done by a volunteer for free (as opposed to having MS, Intel, etc produce it as they should have).

Are you using the Intel Graphics Primitives for your rasterizers? How would this be used by a commercial application? As an external DLL?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Nov 10, 2002 @ 10:11pm

Well, job #1 is to get rid of the floating point math. That will improve performance dramatically.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby angedelamort » Nov 10, 2002 @ 11:03pm

Microsoft will soon release a "directX mobile edition". It will have a lot of interesting features. I'm eager to see the performance and if it will support video hardware. But for now, It's great that someone is porting openGL for ppc. Maybe, when I'll have time, I'll have a look at your code more deeply. But, as Dan said, use fixed point instead of floating point :) It should take you some time to do it :P
User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby Dan East » Nov 10, 2002 @ 11:13pm

Well, if MS releases anything substantial, then I would bet that it would only support the .NET devices when they come out. MS has been really good about abandoning older hardware / versions of Windows CE. Plus, the way things are going now, we are far better off with pure software (ie sourcecode) libraries. Ask any serious game developer that is trying to support SmartPhone, etc. The less hardware / binary library dependant we are, the better off we are in the world of Pocket PC. Especially when you've got devices like the Casio BE-300, which at $129 is easily the most powerful PDA you can buy for the money. You need full access to all sourcecode (maybe with the exception of FMod which seems to support everything already) to support diverse non-Pocket PC devices such as that Casio.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Nov 10, 2002 @ 11:28pm

As an example, take DirectPlay for CE. It only technically supports Pocket PC 2002, which means MIPS and SH3 is not supported. I have gotten it to work somewhat on my ARM PPC 2000 device, but one particular API call locks up the device, even with the precompiled demos. So after seeing that it is buggy on PPC 2000 hardware, of which there are well over a million devices out there, plus it doesn't support SmartPhone, or the BE 300, I decided it wasn't for me.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby R0B » Nov 11, 2002 @ 12:16am

"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender
User avatar
R0B
got muffins?
 
Posts: 1894
Joined: Jun 22, 2001 @ 12:04pm


OpenGL on PocketPC

Postby Conan » Nov 11, 2002 @ 1:21pm

If the performance is improved this could become a very useful tool. I use PocketGL at present which is not OGL compatible so a true clone of OGL would be very useful. PocketGL does use integer maths for speed so it's probably worth looking at for hints on going from floating point to fixed point maths.

I have converted quite a few OGL samples to PGL so when I get time I will try one of them on this port.

Well done so far.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby R0B » Nov 12, 2002 @ 4:00am

Not only would this library give ppc owners a more powerful graphics programming language and allow porters to port many windows based project more easily, it may also encurage pc developers to release ppc versions of their current, or slightly older games.
"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender
User avatar
R0B
got muffins?
 
Posts: 1894
Joined: Jun 22, 2001 @ 12:04pm


OpenGL, PocketPC

Postby Conan » Nov 13, 2002 @ 11:05am

I had a quick look through the source code. Very interesting to compare with PocketGL. Lots of similarities though PGL has it's own co-ordinates systema and is all integer maths.

I need to see how regular OGL programs load meshes & textures as the demo 'cogs' program creates them in code but otherwise it looks pretty good.

I'm useless at 3D coding so I can;t assist in making it work without floating poinbt but I very much hope that happens.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Open GL - Demo

Postby Quirk » Nov 16, 2002 @ 12:30pm

First of all its great news to see an OpenGL-port on the CE-horizon. So thanks for your efforts so far.

About the Demo:
It seems to drop every second line on my LOOX, but draws a number (3) of overlapping copies that are horizontaly shifted.

That is probably not how it should be?

Regards
Quirk
 


Postby Holger » Nov 16, 2002 @ 5:27pm

Sorry for joining the discussion again so late, but I'm only able to access the forums and my email on the weekend.
First to Dan's question: I think TinyGL (Fabrice Bellard's OpenGL implentation which I have used) is using its own rasterizer engine. BTW, I think I forgot to mention the TinyGL link in my first post:

I will work on the fixed point math first, but unfortunatly my development time is limited to weekends at the moment.
It might also be a good idea to use look-up tables for the trigonometric functions which should also increase the speed.
Concerning XScale and other device-specific optimizations: I've only got an iPaq 3630 at the moment, so I won't be able to do any work in this field yet. This also includes device-specific display problems like Quirk's. Maybe there are some volunteers who could see to this?
Look at the zbuffer.c file for the different display modes and rastering stuff.
Holger
pm Member
 
Posts: 5
Joined: Nov 10, 2002 @ 2:28pm


Postby gamefreaks » Nov 17, 2002 @ 3:10am

What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -Woody Allen
User avatar
gamefreaks
pm Insider
 
Posts: 466
Joined: Oct 20, 2001 @ 8:52pm
Location: Leicester, England


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron