Blender 3D and Xith

Hi,

Does anyone have some experience with Blender 3d export formats and Xith? I tried the AC3D and OBJ loader, but both don’t seem to work properly (or maybe i’m doing something wrong).

Any hints or advices about how to load objects into Xith that were built with Blender are much appreciated…

Johannes

Have you tried the newdawn loader? I have used it successfully to load obj files saved from art of illusion.

Let me know if you would like a sample file to try.

Here’s my loader:

        BranchGroup bgasteroid = null;
    try {
          bgasteroid = new OBJLoader().load("./asteroid.obj");
          solarSystem.getRootGroup().addChild(bgasteroid);
    } catch (Exception e) {
        e.printStackTrace();
        System.exit(0);
    }

Replace solarSystem.getRootGroup() by your root node…

Cheers
Andy Stratton

Blender has bad plugins for import/export.

In fact there is two python scripts to import/export Wavefront OBJ.
One of them add Import and Export menu items, but it doesn’t work well.
The other just add the “OBJ…” item in the import menu but you you can export with it ( there is a dialog box ).

Hi,

Thanks for your help!

I tried both: the OBJ loader and the AC3D loader and even and ASE exporter which is originally intended for Unreal custom models. I got the AC3D loader working as far as I can tell now. But I’m still wondering, why the textures (and other stuff) are loaded from some kind of classpath related resource pool. E.g.:

URL url = new String().getClass().getClassLoader().getSystemResource(modelFilename);

After replacing them with a static (new File (modelFilename)).toURL() command, it worked in my environment. But I guess I contaminated the code by that… :slight_smile:

Johannes