News for hackers. Stuff that matters.

BruuD

Re:N64js: an N64 emulator in JavaScript on Thursday August 16, 2012 @07:37AM (#4390773)
You're awesome dude. Hope you get to finish this project!
Re:Raycaster in HTML5 / JavaScript (new version) on Tuesday October 11, 2011 @02:59PM (#3099848)
I have posted a JavaScript raycaster last week (disussed here: http://news.ycombinator.com/item?id=3070500) and have since updated it to a new render engine.

Instead of the grid-based level that supports only orthogonal walls, the level now consists of vector-based walls which requires a different method of raycasting.

Re:Raycaster in HTML5 / JavaScript on Tuesday October 04, 2011 @04:30PM (#3072769)
There is not really a justified reason for building a 3D engine this way, except for just being bored and wanting to practice my JavaScript a little :)

The canvas supports hardware accelerated 3D graphics so there is no reason to draw a 3D world in a 2D context, like i did.

There are many examples out there of 3D games who are written entirely in JavaScript and rendered on a canvas, that perform very well (even complete Quake ports with networking capabilities).

Re:Raycaster in HTML5 / JavaScript on Tuesday October 04, 2011 @11:56AM (#3071482)
Just did a quick modification so that the screen is only redrawn if the actor has moved.
Re:Raycaster in HTML5 / JavaScript on Tuesday October 04, 2011 @10:19AM (#3070974)
If I get bored again, I will make a version without canvas using only <div> elements :)

Code was written from scratch, so any similarities with the code you are referring to are coincidental, although the technique I used is exactly the same.