http://www.elephantsneverforget.co.u...editor/gme.asp (probably I.E only. There's nothing that should stop it from running in Moz and NS, but it's quite demanding so I imagine they'd choke..)
Right, anyone have any ideas of how to make it faster?? I fudged it together really quickly so theres probably lots of room for improvement.
Also, the the actual raycasting code is crap because I can't get Math.tan() to work properly.. (96 + (224-191)/tan(60)) should return about 115, but it's waaaaay off. Am I doing something wrong or is tan() broken (I.E 5.5).
Anyways tell me what you think.. Is this the first real time 3D engine in javascript?
Right, anyone have any ideas of how to make it faster?? I fudged it together really quickly so theres probably lots of room for improvement.
Also, the the actual raycasting code is crap because I can't get Math.tan() to work properly.. (96 + (224-191)/tan(60)) should return about 115, but it's waaaaay off. Am I doing something wrong or is tan() broken (I.E 5.5).
Anyways tell me what you think.. Is this the first real time 3D engine in javascript?
Comment