PainElemental
Warming Up

Posts: 17
Registered: 11-00 |
Seeng it from that point of view, it's indeed an interesting challenge. If you succeed it'd be a real proof of concept, since nothing even close to the level of Doom graphics has been released yet using entirely JavaScript (AFAIK); most of the web graphics engines are written in Java or VRML :).
However, if I were you, I'd still consider converting the original shareware WAD to a more JS-friendly data structure (in that case, your program could even be considered a source port, so no worries about legal shit) instead of remapping every single Doom level from scratch.
Technically the floor/ceiling rendering is the most challenging path. Even if you only light-shade them, you'd still need a perspective divide. You could do it every 16 pixels (or so) only and linearly interpolate inbetween, but then again there's no way to precompute some scaling tables as in the case of the vertical wall lines, since you have varying floor/ceiling heights.
However, if you should master it, I'd be glad going to your site to play Doom, no matter where I am and what I'm doing. Hell, you could play it even on those street internet access points :)
Good luck!
|