DirectX to J3O Converter (28 posts)

Topic tags: DirectX
  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    I wrote a conversion application which is able to directly convert DirectX (.x) meshes to j3o format.

    It can be used as command – line tool to convert individual files or folders, or as library to read .x files. I wrote it when I had to port many X files to jMonkeyEngine. I hope it may also be of use to other developers.

    I uploaded the project on sourceforge: X2JME.

  • Profile picture of normen normen1271p said 1 year, 5 months ago:

    Cool! Is this a “normal” jme3 import plugin? Or do you create the j3o files “by hand”? If its an importer I’d put it into the jMP contributions depot as an import plugin.

  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    It can be used to convert files by hand. But I’ll take a look at turning it into an importer.

  • Profile picture of nehon nehon590p said 1 year, 5 months ago:

    Cool thanks for this contribution

  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    I noticed that the version I put online yesterday has a couple bugs which made it unusable. These are solved now, and the new version is online on the sourceforge project as beta 2.

    An importer is ready, too.

  • Profile picture of erlend_sh erlend_sh132p said 1 year, 5 months ago:

    stanhebben said:
    (…) An importer is ready, too.

    As a jMP plugin? Well, regardless, I went for a pre-emptive strike and added you as a committer to the jmonkeyplatform-contributions repo ;)

    http://code.google.com/p/jmonkeyplatform-contributions/

  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    Yup, it’s a jMP plugin. I was waiting for normen to add me, but it seems like you were faster :)

    The code is uploaded to the contributions repository.

  • Profile picture of normen normen1271p said 1 year, 5 months ago:

    Oh, cool, its all done already? Theres a new feature called AssetManagerConfigurator, did you create one of these (see the other importer plugins for an example)? Its used for some automagic in jMP lately.
    Cheers,
    Normen

  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    I based the importer off the Blender Support plugin, and needed only minor changes in my code to make it work. And yes, I did create an AssetManagerConfigurator.

  • Profile picture of normen normen1271p said 1 year, 5 months ago:

    Hey, I saw you committed the whole “suite” but actually you should only commit the module. The suite is already in svn, the whole contributions are one “suite”. You only create a suite locally so you can use the same project settings as in svn. I moved the plugin folder to a folder called “directx-support” now. I suggest you delete your local xjmp folder, remove all .svn folders from the module suite folders and check out this folder as the new “xjmp” folder to fix your local version.

    Cheers,
    Normen

  • Profile picture of stanhebben stanhebben6p said 1 year, 5 months ago:

    Ah, thanks for the clarification. I have my local version fixed as you said.

    Stan

  • Profile picture of atomr atomr said 7 months ago:

    How can I use this? I checked my plugins and I do have the DirectX Mesh File Support downloaded and installed but I can’t seem to find a way to use it. Also I tried downloading from stanhebben’s sourcepage and the zip is corrupted or something. I’d really like to be able to use my .x models. I can’t import them blender, Milkshape3d or even deep exploration. the only place I can use them is by installing my old copy of DarkBasic :S

    It’s really frustrating. Can anyone help?

  • Profile picture of normen normen1271p said 7 months ago:

    Just install the plugin and import a model as outlined in the manual.

  • Profile picture of atomr atomr said 7 months ago:

    I did.

    public void setupModel(){
    
            assetManager.registerLocator("Minos.zip", ZipLocator.class);
            Spatial model = assetManager.loadModel("minos.x");
        }
    

    I get this error.
    java.lang.IllegalStateException: No loader registered for type “x”

    PS: Thx for the quick reply.

  • Profile picture of normen normen1271p said 7 months ago:

    With the SDK, not via code.