Documentation about Blender import using the MHX format can be found here and in the documents below it.
Answers to some frequently asked questions can be found here
Don't hesitate to ask questions - your feedback improves the program and the documentation. But please check the FAQ first; the answer may already be there. Also keep in mind that MakeHuman is evolving; some documentation does not apply to the alpha 4 release, but to the version presently in svn. The FAQ explains how to update you program.
There are two hurdles that may prevent you from getting started:
The import script does not exist
By mistake, the mhx files where located in a subfolder of a utility directory, which was not included in the alpha 4 release. The files have now been moved to the importers/mhx/blender249 directory, which will be included in the next release. In the meantime, download the most recent files from svn trunk as described in the FAQ.
The character does not render on Linux, but only results in a blank blue screen
This appears to be a Blender bug on Linux, at least in some distributions. Apparently Blender can not read tif files (at least not the MH textures) under Linux. MakeHuman, Gimp and Linux' image editor all understand these files, as does Blender under Windows.
Workaround:
1. Convert the textures in makehuman/data/textures from .tif to .png.
2. Copy the PNG versions of the three textures (texture.png, texture-ref.png, texture-opacity,png) to the default MakeHuman export directory (~/makehuman/exports in the current version, makehuman/data/textures in alpha4). The mxh import script will look for PNG files first and TIF files later, and thus the PNG textures will be loaded.
Alternatively, you can load the textures in Blender after the character has been loaded.
For now, wouldn't it be a quick fix to commit PNG versions of the tiff files to subversion, so they can reside alongside the tiff files?
ReplyDeleteOk, redundant possibly, but also resulting in less bug reports.
Another alternative would be automatically doing this conversion as a part of the nightly build script.
Because in future the textures will increase in number and size (we must have female and male textures, various face features, fantasy variations, etc..), and because we have limited space in svn, I'm thinking to use, for textures only, the semplified revision sistem here: http://sites.google.com/site/makehumanartists/files
ReplyDeleteand leave in svn only basic textures...
Hello Thomas...
ReplyDeleteMany thanks for all your hard work. I've installed the January 19 2009 build on three Ubuntu 9.04 machines, made the change from .tif to .png through GIMP, and all three have worked flawlessly. You can see for yourself at http://www.geekopolis.ca/images/anushka6.jpg Also, the Windows Alpha 4 you built runs like a bunny in WINE. I have it doing backflips on a Kubuntu 7.10 unit.
hey thomas.
ReplyDeletewhen i try to import the (.mhx) file, blender says, (python script error: check console). do you know why?
What is the error message in the console?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteIndentationError: unexpected indent
ReplyDeletePerhaps you have inadvertedly introduced a space somewhere in some python file. Python is picky about spaces. Try downloading mhx_import.py and pydrivers.py again.
ReplyDeleteyeah, i know how picky it is about spaces. ok i think i will try that. 1 thing though. does the pydrivers.py go into with the same file with mhx_import.py?
ReplyDeletewell, u were right. i had added a couple of spaces at the end of the script. THANKS THOMAS!
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI feel a bit lame asking this, but how do you download stuff from the trunk? I could copy/paste and then save the python stuff, but I'm not sure how to download the .mhx file?
ReplyDeleteOk, I got that right, eventually. The texture loading didn't work for me no matter how much I tried, so I ended up doing it "manually." I've found that whenever I try to undo in blender 2.49b the program crashes, but when I open the file in 2.5 I can undo to my hearts content.
ReplyDeleteI'm not sure what to make of that, but I can pose my character and make him pull funny faces now, so that's progress.
Would it not be possible to make the .py and .mhx files available for download as part of a zip file? I think that'd make things easier for newbies.
No, I think it would be a bad idea to put the files in a zip file. Another version to keep track of, and it cannot be stored with the other files for space reasons. Anyway, access to mhx-related files is a temporary problem. They will be included in the next release, and they are already included in Joel's nightly builds for Linux.
ReplyDeletehey thomas.
ReplyDeleteis it possible to have more than 1 person in the same scene and still be able to move the face bones on both of the people?