5

I'd like to find out how the minecraft renderengine works and perhabs adapt it to other technologies. Is there an analysis of the seemingly quite simple render engine of minecraft?

Voxels, just orthogonal borders and some other constraints apply to this engine.

UllaDieTrulla
  • 573
  • 1
  • 5
  • 18

3 Answers3

2

I already tried this. I cannot recommend it. The Minecraft "Engine" is just poorly designed and sometimes I think Mojang has broken every single best practice I know.

Programming a new "Block-Engine" leads to much better results than guessing what Mojang tried to do in their obfuscated code.

electrodraco
  • 323
  • 2
  • 6
  • Thanks for information. I'm currently investigating to build up such an engine for Canvas / Javascript and hoped to get some information. But during some tests, I found out that the browser implemenentations for Canvas are at the moment too slow :-( – UllaDieTrulla Dec 04 '11 at 21:16
1

I think that you might want to use mcp62. There is absolutely no way that you're going to get anywhere with the obfuscated code, but mcp62 has done something to create a version of the minecraft source code with comments and the like. Here is a link to their wiki:MCP wiki

user858819
  • 71
  • 1
  • 1
  • 5
1

Have you considered using the Unity3d game engine. It is a game engine that can run in the browser, on IOS or Android so it could be a good option for you to investigate and will run faster than canvas/js. Either way the following source code and discussion links should give you some ideas.

There is a very active discussion thread over on the unity forums. A few people were making a Minecraft clone for learning purposes. Eventually one of them released the full source code and project files online here http://www.filefactory.com/file/b48a41e/n/MinePackage.unitypackage.

Here is a video of someone demoing a Minecraft clone they are making in Unity http://www.youtube.com/watch?v=ADnPbeg1aXk. So it is definitely possible.

If you are interested in using voxels you can look at the VoxelForm unitypackage here http://www.voxelform.com/. The cool thing about this is it can do a lot more than just blocks see this demo video http://www.youtube.com/watch?v=Fc-VQL8VyIY of it being used with infinite terrain.

P. Galbraith
  • 2,477
  • 21
  • 24