PocketMatrix forums

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

3D LCD subpixel demo

Hey all,

I have uploaded a little tech demo of something I have been working on tonight: 3D combined with 'cleartype'. Basically I use LCD subpixels to smooth the jaggies of flatshaded polygons.

The technology can be read about everywhere on the internet, but a quick explanation won't hurt: The pixels on the iPaq and other devices consist of red, green and blue 'subpixels'. All on is white, all off is black. Just red on means red.

A white block is thus: red, green, blue, red, green, blue, all on. But, we can make this block 1/3rd pixel wider by turning one extra 'subpixel' on.

Take a look at the demo, you'll see it works quite well. :) The demo draws a cube, 100% subpixel accurate, using a very fast scanline renderer. Texturing will be added later. :)

http://overloaded.pocketmatrix.com/3D%20Subpixel%20Tech%20Demo.exe

Enjoy. :)
It is a great idea to use this subpixel idea for polygon rendering. I am wondering what kind of overhead it inccurs on the rendering? What about non-white/gray polygons?

Say you render a red triangle, and the edge of the triangle fills 1/3 of a pixel, you wouln't want to turn on the red subpixel unless it was on the "right" side of the next pixel.

I am also wondering if there is a list somewhere listing the PocketPC devices with the orientation of these subpixels? I wouln't assume they are all oriented the same way, not even with the screen orientation.

The demo draws a cube, 100% subpixel accurate.


Only a DDA can achieve 100% subpixel accuracy. A non-DDA should be able to achieve 99%, but 100% is simply impossible. However, considering your math is flawed (if you still use the same method as Austin3D did, and the fact that this demo only uses 10bit fractions (or is that only for the input itself)), I doubt this demo is even 99% accurate.

Sorry, couldn't resist to nitpick :) hehe.

Not that it matters, cause it looks very smooth and accurate, so I don't think we need more accuracy. Compliments for the demo (I am surprised), but I still need to see a prove of concept with more than 3 polygons, overlapping polygons, and different colors.

By the way, I enlarged a screendump of the application, and besides black, grey, red and blue pixels, I also noticed orange and light-blue pixels. Where did these come from?

Cheers,

Jape
Jacco,

I installed your demo on my iPaq 3670 and it doesn't run. Nothing happens. Ideas?
:/

works well on my 3760

may Jacco work with an overloadedARM.dll that does not match current versions (?) :p

<< also noticed a gx.dll >>

BTW: i'm lost with v0.99b ... strange breaks called by code under w2000/VC++6 in W32 debug mode... files missing under EVC++3... (where's that <string> !!)

to stick to latest release is a real job by itself :')
Sorry about that. Mostly my fault.

Try going to http://jaap.flipcode.com/temp and read the .doc file that is located there. In that document, you'll see an URL to a PocketPC version of STL. Just drop it in some directory on your computer, add it to the include-path of your compiler, and there's your <string>

Cheers,

Jape
Done :D

THX !!!
Phantom · 29 Jul 2002, 13:00 UTC — I don't believe this.
We just found out that the iPaq has it's LCD subcomponents ordered on top of each other, while the XDA has them next to eachother. Wich means that the cube demo doesn't look good at all on the iPaq. And no-one noticed. Incredible. :)

Anyway, I'll make sure next time the demo supports the iPaq too. ;) With the new landscape code from Reinier that should be a piece of cake.
I might have noticed if the app would run on my iPaq. ;)
I tested it on a 36xx device, and it works just fine (except for that little issue I mentioned ;) ). After installing the application, you can start it from the start menu. You probably went to \Program Files\3D Demo or whatever, wich is an empty dir (bug of our installer generator).

Can you verify that?
BurningSheep · 29 Jul 2002, 16:02 UTC
Yeah, works fine on my 3630, I noticed the jaggies... but I didn't say anything because I didn't want to hurt your feelings ;)
:) That's kind of you.

I want to do some more subpixel demos: How about this; I put a nice image on the screen and scroll it 1/3rd pixel per frame. That should look good. :) BTW, the trick also works on my laptop, it has the components next to eachother, and in RGB order (instead of BGR on the XDA). Pretty good looking, over 3000 pixels horizontally. :) But the laptop screen seems to have some sort of filter that makes it slightly harder to trick.
Maybe I didn't make myself clear before. I've tried running the app by clicking on the .exe. I've tried clicking on the shortcut in the Start Menu. I've tried running the app under the debugger.

The app loads and exits immediately. There is no change on the screen. There is no error message (onscreen or in the debugger).

I'll try freeing up some memory on my device to see if that makes a difference. I'll let you know how it goes.
I downloaded it and it doesn't work.


I'll upload a techdemo of the game we are doing here at Activison. We have subpixel rendering working on all pocketPC's.
I put a nice image on the screen and scroll it 1/3rd pixel per frame


I'll upload a techdemo of the game we are doing here at Activison. We have subpixel rendering working on all pocketPC's.


:roll:
Freggle? From the freggle cave? :) That's a long time ago.

Anyway, I'm looking forward to that tech demo!
Unfortunately, they were the Fraggles :) (in the UK at least).

Dance your cares away,
Worry's for another day.
Let the music play,
Down at Fraggle Rock.

Work your cares away,
Dancing's for another day.
Let the Fraggles play,
We're Gobo, Mokey, Wembley, Boober, Red.
In my country, they where called 'de freggels'. Hence the confusion.

"Snuif je zorgen weg
je hebt niet altijd pech
We zuipen ons kapot
in de Freggelgrot!"

Or something more child friendly. :)
No dice. I've got 30.52MB/27.01MB free and it still won't run on my iPaq. Running \Program Files\Overloaded\3D\MinimalARM.exe under the debugger, I see coredll.dll, aygshell.dll, and gx.dll get loaded. Stepping a bit further the app exits.

I have a PPC 2000 device. Does this app require PPC 2002?

Do I need an Overloaded account to run this?

Do I need to be connected to the Internet so that your app can connect to http://217.115.193.58/libs/olgprs.dll?

The game.ini file contains file paths and names that do not exist on my machine after the installation. Could that be the problem?

Have you tried to install and run this application on an iPaq that has been hard-reset? I'm wondering if there is something that was installed by running a previous Overloaded game that would allow this sample application to run?

Any help appreciated. Thanks!
Digby,

The demo is not supposed to connect. The PPC2002 thingy might be a problem though: I compile everything using the PPC2002 SDK. I suppose I should stick to the 2000 SDK? We do use some functions from the 2002 version though...

- Jacco.
Conan · 31 Jul 2002, 13:48 UTC — works on h3650 pocketpc 2002
Just to confirm that it runs fine on my iPaq 3650 with almost no free ram but with PocketPC 2002 upgrade.

So would a similar 3D cube drawn without the sub-pixel trickery look rougher? I have a 3 cube PocketGL demo at home so I will have a look
Nah, I made a little mistake. On the XDA, pixels consist of 3 vertical 'subpixels' (blue, green, red, in that order), while the iPaq has them horizontally aligned.

So, on the XDA, the horizontal resolution effectively becomes 720, while on the iPaq, I could go for a vertical resolution of 960 (but not both, and this requires modifications to the demo).

On my XDA, it definitely looks much sharper than without the trick. Jaggies virtually disappear on the left and right side of the cube.
Ah so it must be that my iPaq is running the PPC 2000 OS.

One more question, is it just your subpixel 3D sample that requires PPC 2002, or is it something in the Overloaded libs? That is, is it not possible to write a game for the million or so PPC 2000 devices using the Overloaded SDK?
*bump*

I'm really curious about my question regarding the Overloaded library's support Pocket PC 2000 devices. Anyone?
Digby,

Right now, our libs must be compiled using the 2002 SDK, as we use 2002 specific features. Using GPRS emulation mode (as used for the PM ditribution) 2002 is not neccessary. However, the final games will be 'connected' and will thus require PPC2002. Unless we distribute two separate versions. And that is not our intention.

Jacco
Got it. Thanks!
what the "*" is an XDA?
thanks