Live data from Hacker News

1k minecraft

js1k.com

21–30 of 34 posts

Re: 1k minecraft

#21
post #16
post #7

If I remember correctly the lava is the hardest thing to efficiently render, correct? Cool regardless.

Why would it be any more difficult than rendering the water?

Light comes off of it. So it moves, flows and such like the water but it also has to render the lighting effects relative to all that. I could be wrong though, I know the water is difficult to render as well.

Re: 1k minecraft

#25
I wonder if a few bytes could be saved by encoding the source in 7bit ascii, decoding and running through eval. Not sure if that makes sense.

Re: 1k minecraft

#26

Very nice! The texturing and lighting are what really makes this demo. Unfortunately, it only displays correctly for me in Firefox Developer Edition, not FF 33.0, in which the picture is skewed: http://i.imgur.com/7i74m36.jpg . If you're into tiny cube-based 3D engines also have a look at this demo for the Lobster programming language ( http://strlen.com/lobster ): http://i.imgur.com/ZZWFkXn.jpg . Its entire source c…

"tiny cube-based" -- is that the same as "voxel based"?

Re: 1k minecraft

#27

Very nice! The texturing and lighting are what really makes this demo. Unfortunately, it only displays correctly for me in Firefox Developer Edition, not FF 33.0, in which the picture is skewed: http://i.imgur.com/7i74m36.jpg . If you're into tiny cube-based 3D engines also have a look at this demo for the Lobster programming language ( http://strlen.com/lobster ): http://i.imgur.com/ZZWFkXn.jpg . Its entire source c…

"tiny cube-based" -- is that the same as "voxel based"?

I'd say it depends on context. Historically, voxels have been analogous to pixels. This has been somewhat blurred by Minecraft, and the widespread reporting on and discussion of it.

At first, the cubes in Minecraft are analogous to tiles (as in the tiled backgrounds or maps of 2D games), but when you use them to build models and things, then they become like large voxels.

Re: 1k minecraft

#29

This one in Lobster, roughly the same amount of code, no textures, but is interactive (you can actually mine & build): http://i.imgur.com/ZZWFkXn.jpg

What are the sizes of `vec.lobster` and `3dhelpers.lobster` though...
Post reply on HN