PocketMatrix forums

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

Something I've been toying with in GapiDraw

InexorableTash · 12 Jan 2003, 03:51 UTC
This is something I've been toying with in GapiDraw. Download the ARM executable from the following address - you'll need to have GD104.DLL in the same directory.

http://www.calormen.com/tmp/demo.exe

You should see a spinning, texture mapped, Gouraud shaded sphere, an unlit texture-mapped cube with color-key transparency, and a lit, flat-shaded solid color cube for comparison. There are two lights - a magenta one to the left and a white light above - and a 16-bit z-buffer showing off object intersections.

This is done in a layer written on top of GapiDraw; my layer is to GapiDraw as Direct3D is to DirectDraw, and it has a very similar API. It is nowhere near complete and I'm not sure if it's performant enough to do anything with. It is a straight ARM executable written in C++; there's no use of ARM or XScale assembly, so it compiles for desktop PCs as well.

It's also my first attempt at writing a 3D rendering engine, so it's primarily a learning experience. And I just wanted to share - comments welcome. I'm especially interested in perf comparisons to other 3D engines for PocketPC (Diesel3D, PocketGL, etc); I don't know how badly this sucks yet.

Joshua
Nifty demo. I'm getting 48ms draw time at 20.8 fps on an iPAQ 3635.

--GR
InexorableTash · 12 Jan 2003, 05:11 UTC
That's the ARM system I have handy to test on, and I'm getting identical numbers. Without lighting but texturing both cubes the perf jumps to 36ms/27fps.
I got 67ms/14.9fps on Toshiba e310.