Archive 17/01/2023.

MDL File Not working

akilarandil

Hi all,

I Want t convert an FBX file to MDL to use it on my Urho app. I used two techniques.

  1. Used the plugin that is provided to be used on Blender
  2. Exported the file as SMD and created a QC file and compiled it to MDL using Crowbar.

When running the app,
the first one gave an error saying the model doesn’t have any bones.
the second one gave an error saying the mdl file is not supported.

I have a demo at the end of this week and I would really appreciate if anyone can help me with this.

1vanK
  1. show your export settings
  2. try AssetImporter instead Blender
hdunderscore

It’s important to point out that Urhos mdl format is not the well known mdl format from some other engine. There is a Urho3D blender export plugin, available here:

or as mentioned, you can use Urho3Ds AssetImporter (either directly by reading the following documentation or importing via the editor).

akilarandil

I used AssetImporter as well but it said that it doesn’t recognize the file format MDL to be converted

hdunderscore

Try converting your original fbx file instead.

akilarandil

assimp export: no output format specified and I failed to guess it

This is all i’m getting when using it

akilarandil

akilarandil

AssertImporter would give the following error.

assimp export: no output format specified and I failed to guess it

1vanK

the first one gave an error saying the model doesn’t have any bones.

enable skeletons in exports settings :cold_sweat:

akilarandil

What are the sub settings i should use?

  1. Derigify
  2. Only deform bones
  3. Only visible bones
  4. Use skinning for parent bones
1vanK

Obviously, depending on the scene

1vanK

Pls read help: https://github.com/reattiva/Urho3D-Blender/blob/master/guide.txt
Also you can move mouse to elements in Blender and read tooltips

akilarandil

After exporting I would get this

hdunderscore

That’s good progress. Check the overwrite option, and the file should export. Those warnings probably indicate an issue you may need to subsequently fix.

1vanK

Apply - Ctrl+A
Origin - button on left panel
Derigify found 0 bones - may be you do NOT USE rigify?
File already exists - enable file overwrite

akilarandil

Okay so It exported without any errors now. When accessing the bones in Visual Studio i get this error.

This is the converted MDL file
https://drive.google.com/file/d/0B6T_CCmOec0FTjVhbWN2Nmd1ZzQ/view?usp=sharing

This is the FBX file.
https://drive.google.com/file/d/0B6T_CCmOec0Fd216aFhUNzJLeVU/view?usp=sharing

akilarandil

This is the export settings for the conversion.

1vanK

bone not founded. It is all that can be said on the basis of the provided information

akilarandil

I fixed it. Had problems with the naming conventions.It’s working now, Sorry for the inconvenience caused. And thank you very much for the support. Urho3D FTW!