I’m using blender to create the graphics for a mobile game.
I tried using the m3g export, but quickly found the limitations.
It doesn’t support textures, doesn’t support multiple materials for a mesh and it gets the lights and colours wrong, so it doesn’t look the same on the mobile.
I could fix up the java code generated, but the work cycle is horrible (change code, emulate, see what it looks like, change code again, emulate, see what it looks like).
Does anyone else there use blender to export to java? What tools do you recommend.
Unfortunately I need tool that outputs java code, so I can modify it and use it in my Mobile 3D app (Mobile 3D API is similiar to Java3D)
Most of these tools are java programs that load a file and create a Object3d - not code.
ObjView by Sun does create code, but it needs an .obj file. The Blender .obj export exports in a format that it can’t read properly (the materials and textures aren’t read properly)
Blender doesn’t output java code. i know what your talking about. As far as I know Blender doesn’t have a script or exporter to do this. It does DirectX but not Java3D. Too bad really.
I’m looking for the same thing. I was considering porting the necessary code from Blender, but I’m not that advanced yet. I need rotation of the model. It would have to be like the ‘rubik unleashed’ applet, if you’re familiar.
If you can post a (short!) example of the code snippet you want it to produce (like a cube or something) then someone can write an export script for it…
But “A piece of java code that contains the object” doesn’t really say much… there’s many ways it could be done depending on what you want to do with it later in the code.
Reciently I emailed to the guy who wrote the m3g exporter and he said they are working on extending it to support textures (which is really the most important thing that’s missing)