PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

mixing 2d and 3d

Hi!

I'm trying to start a new project and I'm considering using EDGELIB for it, the reason is that it will use 3d, and I'd like my x50v (and other devices, of course) to use hardware acceleration and I don't feel like fighting against this kind of things by myself :)

The question is, can I mix 2D and 3D with edgelib?
Most of the terrain will be 2D, probably with no scalation but might have while zooming in/out in certain parts, and will have (often) some 3d objects on the screen.

To put an example, the view should be something like Death Rally or GTA1.

I have no concerns about hw accelerated devices, as you can probably turn your 2D floor sprites into openGLES quads and make them render quite fast, but more concerned about using the software rasterizer, as it's supposed to be a lot faster rendering an scaled 2d bitmap than the polygonal equivalent of it, and framerate is crucial :)


Another little thing, I'm a bit lost with the 'view3d' sample and the edge builder. Is there a way to say it where EVC is located? It's being searched at C:\Program Files\Microsoft eMbedded Tools\ but I'm using an spanish XP and c:\Program Files directory doesn't exist.


TIA! :)
Kak
btw, the

# Embedded Visual tools 3.0 + Windows Mobile 2002 SDK's

link in the documentation is broken :(
Hi,

Yes, it's possible to combine 2D and 3D. However, you might want to write separate code for the 2D part. In OpenGL you can draw them using textured quads (don't forget to disable depth-sorting), and in software you use the regular EDGELIB blitters. The 3D models can be stored in 3D surfaces for both OpenGL and the internal renderer.

Regarding performance: it is faster if the 2D pictures aren't rotated, but only scaled (this is due to how the cache works). Also, it's faster when the textures are small.

To fix the EDGELIB Builder you can go to the installation folder of the tool (usually in C:\projects\edge\tools\edgebuilder) and open the 'platforms' folder. Then edit your winmobile-ppc_2002.ini file with notepad and change the paths at the top of the file. Unfortunately we can't update the broken link on our website, as it seems that Microsoft has stopped support for the product.
Hi "edgeguy", thanks for the info :)

Yes, I've been searching for eVC3 for the whole week and the only place I've been able to find it is in a p2p program. So sad... I'll be doing a big backup with all the evc3 and evc4 (just in case they try to remove it too), and service packs.


I have another question regarding openGL, which is something I don't understand very well in pocket PCs...

It is supposed that openGLES works exactly like it works in windows systems, isn't it? There's a DLL supplied by the device builder in the windows system directory.

In example, the animation3D example is linked with edgelib library which uses the preinstalled openGL
DLL. It must be using the common-lite profile one if I'm not wrong.

However, I install the powerVR racer demo and runs at a really great framerate and showing more polygons per second, but with the tortoise demo I only get about 20FPS. Is it possible that I have the wrong drivers installed in my pocket PC?

btw, I have an x50v upgraded to WM5 (which was an error, but I can't afford another WM5 device right now)

Thanks again! :)
Kak


EDIT:
I found this which explains more or less the situation I suppose, however I don't quite understand it yet.
http://www.edgelib.com/index.php?node=1 ... rd=powervr

Also the 2700g link seems to be broken too :( Internet is a mess! :)

EDIT2: No, internet is not a mess (well, it is :) ) It seems that Intel sold all the 2700g stuff to some guys called "Marvell". So right now, there's no easy way to get the SDK because Marvell is not very responsive...

Just to know it, I would only need the libGLES_CM.lib from 2700g's sdk, isn't it?
Hi,

It's too bad some companies either sell or stop support for their products. I've seen it happening with Rasteroid, and now the Embedded Visual tools program and intel 2700g SDK are hard to get. I will add a notice to the tutorial pages.

I think you need to copy a libGLES_CL.lib library, because the Axim device is using a commonlite profile. If it's not available, you can also try the libGLES_CM.lib library.

An explanation about OpenGL ES on Windows Mobile:
OpenGL ES on Windows Mobile is different than what is used on Windows Desktop. On Windows Desktop you have a general set of OpenGL libraries you can use in your program, and it will run on every machine (it's using a software or hardware driver, depending on the graphics hardware).

On Windows Mobile not every device has an OpenGL driver installed, only the devices with a hardware accelerator. There are even hardware accelerated devices with no OpenGL driver, they only have a Direct3D driver. Another difference is that you must build against different SDK's to support several devices, one for NVidia, one for PowerVR and possibly more in the future. If you want to use a software OpenGL driver, you need to manually copy the DLL to the device, or include it in the installation file.

Finally, there is the difference between the common and commonlite profiles. Right now, more devices are using the common profile. A good thing is that the common profile also include the functionality from the commonlite profile. The commonlite profile only enables fixed point OpenGL functions, such as glClearColorx. EDGELIB uses only commonlite functions for mobile devices.

I hope this clears it all up :D
I see, it seems really caothic to me... but I still prefer that to symbian :) Lots of thanks for the response!

One last question, as the 2700g sdk probably only has an export library to the dll present in the device, should the library present here work with edgelib and get hw acceleration?

http://www.pocketmatrix.com/forums/view ... =libglescl

it's just an export library to lib to libGLES_CL.dll
Hi,

It's funny that Symbian has actually done it right with OpenGL ES (at least their latest devices). All devices contain either a software or hardware OpenGL driver, and don't require seperate builds. Also, the OpenGL ES headers are included in the SDK, making it even better.

Please try the library you've mentioned. I think it could work (the only problem that may occur are linker errors). You might have to duplicate the gl_xxx functions, in case they are not provided by the library.