3 ms·
I wrote this "Wii Emulator" in HTML5, do you like it?
I am posting this as a video, as the MP3 sound probably wouldn't stream fast enough to sync with the demo. This uses the <canvas> tag for everything.
Postmortem:
- Javascript is just as suitable for 3D coding as any other language (at least as far as structuring code goes, speed is another thing).
- However <canvas> still is very limited, as there is no hardware acceleration. Opera 3D canvas probably would help. Doing texture mapping required a bit of a hack. I used <canvas> transforms and .clip() to accomplish it, perhaps there is a better way?
- I can draw about 50-100 non-texturemapped polygons or a few texture mapped ones and remain at interactive speeds with my technique.
- Releasing anything is hard. This took me over two weeks to write, even though it looks simple. A big timesink was trying to get the Doom3 animation format working. Couldn't get the animation system working in time for the deadline (I participated in a demo competition with this).