gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

News > 8Bit 3D Lighting Demo

#5938 - krom - Tue May 13, 2003 2:29 pm

[Images not permitted - Click here to view it]
Robert Parnell has released an 8Bit 3D Lighting Demo for the GBA:

Demonstration of 3D Lighting in 256 color mode 4, using a
256*32 entry color lookup table. Needs some serious optimization.


Check out the demo on the main site!

#5993 - niltsair - Wed May 14, 2003 8:53 pm

That's a really nice demo.

I'm still far from being able to create 3d stuff like that.
(Or any 3D stuff for that matter) :-)

#5995 - Roidy - Wed May 14, 2003 9:23 pm

Thanks niltsair,

Its mainly hacked together from old dos source code I wrote a few years ago. I was suprised the Gameboy could handle it. After I rewrite the inner loops in asm it should run alot faster. Due to its design it carn`t easily be turned into a proper game engine, not without some major rewriting but it should come in handy for some nice demos.

#5996 - Roidy - Wed May 14, 2003 9:32 pm

niltsair, forgot to ask what emulator are you running it in. I seem to get wildly different speeds depending which emulator I use.

PS anybody out there like to try it on hardware for me. I`m still saving for my linker.

#6003 - niltsair - Wed May 14, 2003 10:14 pm

I tried it on VBoyAdvance on Window 2000.

When i'll re-flash my Card, i'll give it a try on Hardware.

#6011 - Saikou - Thu May 15, 2003 1:03 am

I've tried it on hardware, and it seems to run about half as fast as VBA runs it, getting roughly 2 or 3 frames per second.

#6023 - Roidy - Thu May 15, 2003 4:24 pm

Thanks guys,

Anybody know which emulator has the closest speed match to real hardware, or is it a case of really needing to test it on hardware to be accurate.

#6030 - tepples - Thu May 15, 2003 6:15 pm

Roidy wrote:
Thanks guys,

Anybody know which emulator has the closest speed match to real hardware, or is it a case of really needing to test it on hardware to be accurate.

I don't use anything but VisualBoyAdvance (other emulators lose sound sync), so here are my guidelines:

VBA runs code in VRAM and IWRAM at the normal rate, but it does not emulate wait states. Therefore, code in EWRAM will run three times as fast as on hardware, and code in ROM will run two to four times as fast depending on REG_WAITCNT settings and how much the code branches.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#6043 - Roidy - Thu May 15, 2003 7:38 pm

Thanks tepples, now i really need to get a linker!!