Live data from Hacker News

Notch trying jsFiddle

jsfiddle.net

1–10 of 143 posts

Re: Notch trying jsFiddle

#6
Awesome implementation, actually no advanced feature is used, this code could easily ported even to assembler in any device where you can set pixels in RGB format.

And indeed it is pretty impressive how fast the rendering happens given that the code operates at such lower level... Even selecting the color of every pixel requires non trivial work in the inner loop.

AWESOME code.

Re: Notch trying jsFiddle

#7

Can anyone explain how this works? I never have got to grips with 3D.

Looks like he's ray casting it, no 3D code implemented, just the illusion itself.

Well... actually the code contains a minimal 3D engine, it is not an illusion, you have the observer variable and could use it to navigate inside the map created in the initialization function. What is more 3D than that? :-)

Re: Notch trying jsFiddle

#8
Correct me if I'm wrong but does this procedurally generate the textures for each block. I can't see any code for loading assets and the init function, has some quite complicated color code. If so that is awesome!

Re: Notch trying jsFiddle

#9
post #6

Awesome implementation, actually no advanced feature is used, this code could easily ported even to assembler in any device where you can set pixels in RGB format. And indeed it is pretty impressive how fast the rendering happens given that the code operates at such lower level... Even selecting the color of every pixel requires non trivial work in the inner loop. AWESOME code.

If the creator of Redis approves this, it's definitely awesome! =)

Re: Notch trying jsFiddle

#10

Can anyone explain how this works? I never have got to grips with 3D.

Update: Thanks for the repliers. You are absolutely right: this is a 3D rendering.

What I meant to say is that it is using Canvas 2D, instead of Canvas 3D, also known as WebGl. Antirez gave a wonderful explanation above[1]:

And indeed it is pretty impressive how fast the rendering happens given that the code operates at such lower level... Even selecting the color of every pixel requires non trivial work in the inner loop

[1] http://news.ycombinator.com/item?id=4862910

Post reply on HN