Tutorial: Creating models in 3dsMa and Render via JPCT-Bones

原创 2015年11月16日 12:44:13


The JPCT-Bones can be used forrendering Skeleton Model and the workflow can be described as follow:

 


So, for this tutorial, thewhole pipeline ofModel Creation, Exportand Render via 3ds Max & Bones  will be described and i will teach you step bystep to :

·        create a simple Skeleton Model;

·        export to specified file whichBones knows;

·        rendering in Android Projectof Bones;

 

 

Ok , here we go ~

 

Platform you need:

·        Engine: Bones

·        Model Creation: 3ds Max 2013

·        Plugin: OgreMax(http://www.ogremax.com/downloads)

 

Create Model and Bones

 

Createa new file;
Select the “Create” tab > “Geometry”> “Cylinder”;

Drawa cylinder, lets say with 6 height segments Also check “Generate Mapping Coords”;


 


Click“Create” tab > “Systems” > “Bones”;

Addsome bones in the center of the cylinder;



Selectthe cylinder, right click it and click “Convert To:” > “Convert to EditableMesh” to prevent issues with OgreMax;




Click the “Modify” tab > “ModifierList” and add the “Skin” modifier

Beneath“Bones:” click “Add” and select all of your bones(You may also edit the envelopes, but for a small test the default settings are ok);




Create the animation

 

Selectthe cylinder, and click “Display” tab > “Freeze Selected” so it is easier to select thebones during animation;
enable the “Auto Key” mode;

Thefirst key frame will be created automatically. Move the animation track sliderto frame 5;
Move the selected bones a bit. Thecylinder mesh will be deformed. Because you are in the “Auto Key” mode, a keyframe will be created;

Createsome additional key frames. You may also select more bones and move or rotatethem. I’ve created 25 frames ;

After creating the animation,disable the “Auto Key” mode;




OgreMax settings and export

Openthe “OgreMax” > “Scene Settings” dialog from the menu;

Inthe “Meshes” tab, enable “Export XML Files” and disable “Export Binary Files” and“Export Vertex Colors” as well;

Clickthe “Environment” tab and uncheck “Export Environment Settings”;

Otherwisethe JME importer will throw a NullPointerException;

 


 

Whilehaving the cylinder selected, open the “OgreMax”> “Object Settings” dialogfrom the menu;

Openthe “Mesh Animations” tab and select type “Skeleton”, “Export Skeleton” : “Yes”;
Below “Mesh Animations” hit the “Add…”button;
Assign a name to the track, maybe “Cylinder”.The track type must be “Skin. Set the right “Start/End Frames” for youranimation;

Hitok and you will see the animation in the table. ( You may add additionalanimations by selecting other frame ranges, if desired );




Whilehaving the cylinder selected, open theOgreMax”> “GlobalSettings” dialog from the menu;

Haveto check the Up Axis to Z , (this will avoidthe model lie down on the Markfor AugmentedReality Application.);




Finishing all setting above, click “OgreMax”  > “Export” >”Export Scene” to exportxxxxxx.scene;

And then , You'll get a xxxxxx.mesh.xmland xxxxxx.skelten.xml file, pass them to “./Bones/script/”;

Usage the command line to runthe function to transfer this two file to the file that the bones knows :

 



Usage(or you can refer the cut pic as follow):

jmeOgreImporter-outxxxxxx.bones-inxxxxxx.mesh.xml

 

 

 

 

Rendering

You can test your model( xxxxxx.bones) with the LoadBonesFormatSample program in Bones's examples.

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

Creating PDF with Java and iText - Tutorial

http://www.vogella.com/articles/JavaPDF/article.html Lars Vogel Version 0.5 ...
  • ait2008
  • ait2008
  • 2012年08月17日 20:35
  • 527

python_Django_2:Models and the admin site

一、创建一个Projectdjango-admin startproject longgb246产生目录longgb246/ manage.py mysite/ __i...

Tutorial 2: Creating a Framework and Window

Before starting to code with DirectX 11 I recommend building a simple code framework. This framework...

Creating a Static Library in iOS Tutorial

iOS创建静态库,这是转载的英文原版《Creating a Static Library in iOS Tutorial》,但也容易看懂,Apple文档不都是英文的嘛。...

Creating Configurable Environments with Hierarchical and Global Options (vmm_opts) in VMM

Verification environments need to accommodate changing specifications and at  the same time cater t...

Dropping and creating tables in read only tablespaces?!

You probably already know that it’s possible to drop tables in Oracle read only tablespaces… (You di...
  • loryliu
  • loryliu
  • 2015年12月14日 22:03
  • 290

creating-skeletal-animation-in-blender-and-exporting-it-to-three-js

CREATING SKELETAL ANIMATION IN BLENDER AND EXPORTING IT TO THREE.JS. UPDATE: Originally this tu...

Creating and Using Your Own Delegates in Objective-C

I've been doing iPhone development for about a year now and have used the delegation pattern many ti...
  • gdmmhym
  • gdmmhym
  • 2011年09月01日 10:50
  • 251

Creating Web Applications in JavaScript with Express.js and ejs

用node.js + express.js + ejs显示网页文章来源:http://www.daniweb.com/web-development/javascript-dhtml-ajax/rev...
  • macyang
  • macyang
  • 2011年04月11日 19:56
  • 1292
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Tutorial: Creating models in 3dsMa and Render via JPCT-Bones
举报原因:
原因补充:

(最多只允许输入30个字)