1 (edited by Nemix 2014-04-26 05:18:29)

Topic: How to add new character models? [Blender]

I'm new to Unity, still have to learn the basics, but I managed to get the game going with the helpful documentation.
I also have a bit of Blender Experience like modeling and rigging, I saw that the Demo Character is a .fbx model, that's Autodesks format, normally Blender should be able to open it, I thought I would then see the Model with the Skeleton and that it's rigged but Blender couldn't import the .fbx model and I got the following error:

ASCII FBX Files are not supported , I have even updated to the latest FBX Import Plugin for Blender

If anyone could help me add my own model ingame, that would be great.
Thank you in advance.

Share

Thumbs up Thumbs down

Re: How to add new character models? [Blender]

Hi Nemix,

I'm new to Unity myself, though it kind of controls like Maya so I didn't have much of a problem getting to grips with it. For my characters I tried various methods of exporting them from Maya as FBXs (baking the animations first etc) nothing seems to work right so I tried just copying my Maya .ma (MAYA ASCII) file into Unity and it works perfectly for me, I'm not longer losing body parts or any other errors.

I haven't tried Blender with this method but if Unity can recognise your constraints and such from .ma files I'm sure blender files shouldn't be a problem. Just make sure you bake all the animations to the skeleton and remove everything from the "character world"(and delete it) or whatever you named it but still have them grouped as they were. The reason for this is I found that Unity only searches one group down for components so if you have the characters group in the character world (treated as a group) your constraints wouldn't be recognized (or so i think, i might be very wrong here but it gave me problems til I deleted the world). Strangely enough it still recognized the geometry inside the group.

Not sure but I think Unity is a little sketchy when trying to read heavy FBXs so just try and import your model to it as is. The way I found out to use my Maya files was by making a poly cylinder, adding bones to it and doing some silly quick animations for idle, walking jumping and such to test different ways of exporting, might be worth it to do that before you start with your character so you know what works and save time.


If you aren't importing your model with animations and just wanted to bring it in to use mecanim I'm not too sure there but I think there are a few tutorials online for mecanim big_smile

DISCLAIMER: I'm still a Unity noob so someone might have a better solution but for now this works for me and I'll stick to it big_smile

Share

Thumbs up Thumbs down

Re: How to add new character models? [Blender]

My character was made in blender, and I just took the character.blend file and put it in the assets folder. Unity renders blend files fine, though I hear the axis are most times read incorrectly. However, it wasn't that hard to adjust using UFE's original tool set to rotate my character correctly.

Share

Thumbs up Thumbs down

Re: How to add new character models? [Blender]

Hi yes the blender .fbx  import is not working in blender. but the fbx export.The re are some python addons in the net but I never found one that  was working

Share

Thumbs up Thumbs down