Secondary Menu

Using Blender to Create Java3D Models

Introduction: Using Blender to Create Java3D Models

If you're a Java programmer you probably have wanted to program in 3D at some point. But how? Well you could use Java3D and slowly type in each point in a 3D polygon (tried it trust me its a bad idea), or you could use Blender (http://blender.org) a free and open source 3D modeling program along with a script called Blend2Java (http://sourceforge.net/projects/blend2java/). However the documentation on Blend2Java is almost nonexistant so thats why I sit here writing this.

Step 2: Export Your Model to XML

Once you have a model you would like to use in Blender open Edit Mode and hit the "a" key to select all points. In the bottom panel select text editor.

Open a new file in the text editor. Open the blend2java.py file that you downloaded. Run.Ok your object should now be in .XML wherever you saved it (if you have and error message make shure you only have 1 material for the object). Rename the object (it will have a weird name).

1.Get Minecraft, if you haven't done so already.2.Get MCP (Minecraft Coder Pack)3.Get ModLoader4.Look up on YouTube how to set it up, as well as various tutorials on how to mod certain aspects of the game.5.Make a mod.