News for hackers. Stuff that matters.
Re:A first-person engine in 265 lines of JS by tst on Tuesday June 03, 2014 @03:21PM (#7842205)
As someone with no experience in computer graphics it's always insane to see demos like this. Especially using just around 250 lines of javascript. Really impressive.

Also on the topic, the demo scene stuff is mind blowing, too. [0]

[0]: http://awards.scene.org/awards.php

Re:A first-person engine in 265 lines of JS by masterj on Tuesday June 03, 2014 @03:26PM (#7842226)
The nice thing about this implementation is that the code is very clear and easy to follow. You could easily make it much shorter if that were the goal.
Re:A first-person engine in 265 lines of JS by huskyr on Wednesday June 04, 2014 @05:07AM (#7844664)
Exactly. I think that's wonderful about this example, it's not just 250 lines of heavily compressed code, it's readable and clean.
Re:A first-person engine in 265 lines of JS by restlessmedia on Wednesday June 04, 2014 @05:33AM (#7844731)
Me three. It's covered the 're-read in 6 months time' criteria. I must confess I do change from reading to scanning as soon as the heavy math kicks in.
Re:A first-person engine in 265 lines of JS by DanBC on Wednesday June 04, 2014 @05:57AM (#7844786)
There's a niche for a website that does a bunch of sub-500 LOC javascript examples of tiny bits of computer graphics, to give a very brief introduction and demonstration of the math, and which then chains them together for some other software.
Re:A first-person engine in 265 lines of JS by devindotcom on Tuesday June 03, 2014 @04:37PM (#7842568)
Re:A first-person engine in 265 lines of JS by CmonDev on Wednesday June 04, 2014 @07:12AM (#7844924)
Scripting languages are good for achieving low line count results.