| 123456789101112131415161718192021 |
- <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="Asciidoctor 1.5.4"><title>MakeHuman Blender OgreXML toolchain for creating and importing animated human characters</title><link rel="stylesheet" href="./asciidoctor.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="./coderay-asciidoctor.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css"><link rel="stylesheet" href="/home/travis/build/jMonkeyEngine/wiki/build/asciidoc/html5/jme3/advanced/twemoji-awesome.css"></head><body class="article toc2 toc-left"><div id="header"><div id="toolbar"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/src/docs/asciidoc/jme3/advanced/makehuman_blender_ogrexml_toolchain.adoc"><i class="fa fa-pencil-square" aria-hidden="true"></i></a><a href="https://github.com/jMonkeyEngine/wiki/new/master/src/docs/asciidoc/jme3/advanced/"><i class="fa fa-plus-square" aria-hidden="true"></i></a><input dir="auto" style="position: relative; vertical-align: top;" spellcheck="false" autocomplete="off" class="searchbox__input aa-input" id="doc-search" name="search" placeholder="Search in the doc" required="required" type="search"></div><h1>MakeHuman Blender OgreXML toolchain for creating and importing animated human characters</h1><div class="details"><span class="author" id="author"></span><br><span id="revnumber">version ,</span> <span id="revdate">2016/03/17 20:48</span></div><div id="toc" class="toc2"><div id="toctitle">Table of Contents</div><ul class="sectlevel1"><li><a href="#tools">Tools</a></li><li><a href="#seed-project">Seed Project</a></li><li><a href="#preparation">Preparation</a></li><li><a href="#creating-character-model-with-makehuman">Creating Character Model with MakeHuman</a></li><li><a href="#animating-character-model-with-blender">Animating Character Model with Blender</a></li><li><a href="#exporting-character-model-from-blender-to-ogre-xml">Exporting Character Model from Blender to Ogre XML</a></li><li><a href="#importing-ogre-xml-to-jme3">Importing Ogre XML to JME3</a></li></ul></div></div><div id="content"><div id="preamble"><div class="sectionbody"><div class="paragraph"><p>This guide describes how to use MakeHuman Blender OgreXML toolchain.</p></div></div></div>
- <div class="sect1"><h2 id="tools">Tools</h2><div class="sectionbody"><div class="paragraph"><p>The latest versions at time of writing are:</p></div>
- <div class="ulist"><ul><li><p>MakeHuman: 1.0.2</p></li><li><p>Blender: 2.72</p></li><li><p>OgreXML exporter for Blender: 0.6.0</p></li></ul></div>
- <div class="paragraph"><p>The tools can be downloaded from the following URLs:</p></div>
- <div class="ulist"><ul><li><p>MakeHuman: [<a href="http://www.makehuman.org/]"><a class="bare" href="http://www.makehuman.org/">http://www.makehuman.org/</a></a>]</p></li><li><p>Blender: [<a href="http://www.blender.org/]"><a class="bare" href="http://www.blender.org/">http://www.blender.org/</a></a>]</p></li><li><p>OgreXML exporter for Blender: <a href="../../jme3/advanced/ogrecompatibility.html">Working Blender and OgreXML Versions</a></p></li></ul></div></div></div>
- <div class="sect1"><h2 id="seed-project">Seed Project</h2><div class="sectionbody"><div class="paragraph"><p>Public domain seed project with some preset characters and animations:</p></div>
- <div class="ulist"><ul><li><p>JME3 Open Asset Pack: [<a href="https://github.com/bubblecloud/jme3-open-asset-pack]"><a class="bare" href="https://github.com/bubblecloud/jme3-open-asset-pack">https://github.com/bubblecloud/jme3-open-asset-pack</a></a>]</p></li></ul></div></div></div>
- <div class="sect1"><h2 id="preparation">Preparation</h2><div class="sectionbody"><div class="olist arabic"><ol class="arabic"><li><p>Install MakeHuman and Blender.</p></li><li><p>Install MakeHuman Blender importer from MakeHuman installation to Blender scripts folder and enable the script from Blender File → User Preferences → Addons.</p></li><li><p>Install OgreXML exporter to Blender scripts folder and enable the script from Blender File → User Preferences → Addons.</p></li><li><p>Clone the seed project or create your own project.</p></li><li><p>Locate or create character model folder (src/main/resources/character/human/female)</p></li></ol></div></div></div>
- <div class="sect1"><h2 id="creating-character-model-with-makehuman">Creating Character Model with MakeHuman</h2><div class="sectionbody"><div class="olist arabic"><ol class="arabic"><li><p>Create character model with MakeHuman. ([<a href="http://www.makehuman.org/documentation]"><a class="bare" href="http://www.makehuman.org/documentation">http://www.makehuman.org/documentation</a></a>])</p><div class="ulist"><ul><li><p>NOTE: If you want to use JME3 Open Asset Pack animations without tweaking then use either male.mhm or female.mhm as preset and do not change the body proportions.</p></li></ul></div></li><li><p>Choose basic skeleton from Pose/Animate tab if you are not already using either of the presets.</p></li><li><p>Export to blender exchange format from Files → Export tab.</p><div class="ulist"><ul><li><p>Choose Mesh Format → Blender exchange.</p></li><li><p>Tick only Options → Feet on Ground and Scale Units → Meter</p></li></ul></div></li></ol></div></div></div>
- <div class="sect1"><h2 id="animating-character-model-with-blender">Animating Character Model with Blender</h2><div class="sectionbody"><div class="olist arabic"><ol class="arabic"><li><p>Import the character model in blender exchange format (MHX) to Blender or open preset blender file female.blend.</p></li><li><p>If you use your own character you can append animations from male.blend or female.blend preset files with Blender File → Append function. Animations are in the animation folder.</p></li><li><p>Tune the character model / materials and animate the character. ([<a href="http://www.blender.org/support/tutorials/]"><a class="bare" href="http://www.blender.org/support/tutorials/">http://www.blender.org/support/tutorials/</a></a>])</p></li></ol></div></div></div>
- <div class="sect1"><h2 id="exporting-character-model-from-blender-to-ogre-xml">Exporting Character Model from Blender to Ogre XML</h2><div class="sectionbody"><div class="olist arabic"><ol class="arabic"><li><p>Make sure that your scene objects in Blender do not have any spaces or special characters in their names. Rename them if they do.</p></li><li><p>Arrange all your animations in single NLA track after each other without overlaps or touching in the timeline.</p></li><li><p>Unlink any animations linked directly to your character armature or mesh.</p></li><li><p>Export using Blender → File → Export Ogre3D (scene and mesh) and tick the following options:</p><div class="ulist"><ul><li><p>copy shader programs</p></li><li><p>Export Scen</p></li><li><p>Export Meshes</p></li><li><p>Export Meshes (overwrite)</p></li><li><p>Armature Animation</p></li><li><p>Optimize Arrays</p></li><li><p>Export Materials</p></li><li><p>Tangents</p></li><li><p>Reorganize Buffers</p></li><li><p>Optimize Animations</p></li></ul></div></li></ol></div></div></div>
- <div class="sect1"><h2 id="importing-ogre-xml-to-jme3">Importing Ogre XML to JME3</h2><div class="sectionbody"><div class="paragraph"><p>You can load the ogre XML with asset manager or import them to SDK and hence convert them to JME3 asset format.</p></div>
- <div class="paragraph"><p>You can test the animations by making your own version of AnimationPreviewer:</p></div>
- <div class="paragraph"><p><a href="https://github.com/bubblecloud/jme3-open-asset-pack/blob/master/src/main/java/com/jme3/asset/AnimationPreview.java">https://github.com/bubblecloud/jme3-open-asset-pack/blob/master/src/main/java/com/jme3/asset/AnimationPreview.java</a></p></div></div></div></div><div id="footer"><div id="footer-text">Version <br>Last updated 2019-12-20 23:30:51 +00:00</div></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script><script>docsearch({
- apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
- indexName: 'jmonkeyengine',
- inputSelector: '#doc-search',
- debug: false // Set debug to true if you want to inspect the dropdown
- });</script></body></html>
|