Docs:Creating character's model

From Mod Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:16, 6 June 2007 (edit)
Smile (Talk | contribs)

← Previous diff
Revision as of 16:09, 6 June 2007 (edit) (undo)
Smile (Talk | contribs)

Next diff →
Line 6: Line 6:
===Restrictions=== ===Restrictions===
*The character must be in the center of coordinate system (see example from SDK) *The character must be in the center of coordinate system (see example from SDK)
-*Character's height must be within <code>1.6 – 2 meters</code> (as in the real life)+*The character's model is created in the metric system of units, the sizes must correspond to the natural human sizes (height <code>1.6 – 2 meters</code>)
-[[image:Docs_maya_character_limitation.jpg|Character's 3D model limitations|center|frame|Character's 3D model limitations]]+[[image:Docs_maya_character_limitation.jpg|Character's 3D model restrictions|center|frame|Character's 3D model restrictions]]
-*There are no limitations for the number of triangles, but it's recommended to limit the number of triangles '''to 5000''' for the solid and stable game functioning.+*The game engine doesn't have a strict limitation as to the number of triangles, but in order to have a solid and stable FPS the models with '''3000-5000''' triangles have to be used; it's possible to use models with more triangles, if only this is reasonably required.
-*Character's 3D model mustn't contain bugs in geometry, texture stretches and long thin triangles (see [[Docs:Creating a scene in Maya#Exporting geometry from Maya|fixing bugs]] for more information). +*Character's 3D model mustn't contain bugs in geometry, texture stretches and long thin triangles (see [[Docs:Creating a scene in Maya#Exporting geometry from Maya|fixing bugs]] section).
-*The engine supports <code>texture's flip reverse</code>.+*The engine supports <code>texture's flip reversing</code>.
-[[image:Docs_maya_character_mirrortexture.jpg|Texture's reflection|center|frame|Texture's flip reversed]]+[[image:Docs_maya_character_mirrortexture.jpg|Texture's flip reversed|center|frame|Texture's flip reversed]]
*The model must have UV coordinates, <code>XRay Shader</code> and smoothing groups. *The model must have UV coordinates, <code>XRay Shader</code> and smoothing groups.
-*Nullify all model <code>transformations</code> and delete <code>history</code> before binding it to the skeleton.+*Before binding the model to the skeleton, nullify all model's <code>transformations</code> and delete <code>history</code>
-*The model must contain one or more XRay Shader with the parameters indicated below, it's permitted using transparency, gloss and self-lights. Please see the description of available shaders in [[Docs:Creating a scene in Maya|"Creating a scene in Maya"]] section.+*The model must contain one or more XRay Shader with the parameters specified below, using transparency, gloss and self-light is allowed. See the description of available shaders in [[Docs:Creating a scene in Maya|"Creating a scene in Maya"]] section
[[image:Docs_maya_character_shader.jpg|Basic XRay shader on character's 3D model|center|frame|Basic XRay shader on character's 3D model]] [[image:Docs_maya_character_shader.jpg|Basic XRay shader on character's 3D model|center|frame|Basic XRay shader on character's 3D model]]
==Creating and adjusting skeleton, skinning, restrictions== ==Creating and adjusting skeleton, skinning, restrictions==
-*In order to use animations from the game library, it's necessary to use the skeleton from SDK without changing anything+*Creating game character's skeleton is done in Maya package with the standard means of 3D package
-[[image:Docs_maya_character_jointoutliner.jpg|Character's skeleton used in the game|center|frame|Character's skeleton used in the game]]+*The scene must contain several different skeletons and models, the export is done by selecting the required model and exporting the selected.
-*Joints mustn't contain scale, rotate, transform before binding to 3D model+*To use the animations from the library, it's necessary to use the skeleton from SDK without changing it [[image:Docs_maya_character_jointoutliner.jpg|Character's skeleton used in the game|center|frame|Character's skeleton used in the game]]
-*3D model must be bound to the skeleton with the use of Smooth Bind+*Joints mustn't contain scale, rotate, transform before the final creation of the model. Please perform a cleaning of the mentioned transformations.
-*There must be not more that 4 joints per one vertex+*The 3D model must be bound to the skeleton using Smooth Bind
 +*There must be not more that 4 joints per one vertex. The total weight of summarized influence of joints on vertex on export is normalized to 1, please be careful while assigning weights on skinning.
 +*The game's engine doesn't have a strict limitation of the number of skeleton bones used per one model, but in order to obtain solid and high FPS, it's recommended to use as less bones as possible. For example the standard game character's model uses 54 bones.
==Animation== ==Animation==
-*There are no restrictions for the animation. +*The export plug-in supports all available tools of 3D package needed by the animator to create a high-quality animation: locators, inverse kinematics, restrictors, using physics during animation; all this and many other things are acceptable to create animations and is easily understood by the game's engine.
-*All animations can be stored in one file with character's model.+*There are no limitations on the method of storing model's animation, this can be either an external file or storing all animations in one model; it depends on the preferences of the animator.
-==Model export==+==Exporting a model==
-==Animation export==+*While exporting a model, please check the model beforehand and the created skeleton for bugs.
 +*It's important to assign a name similar to the one used in the game; this will simplify the work with this model, there will be no necessity to remember the name in the editor, and also this will make the work of people who adjust the configuration files and put the model into the game easier.
 + 
 +==Exporting an animation==
 + 
 +*Export plug-in uses current parameters of the 3D package timeline. If need be, the capacities of the scripting 3D package engine can be used, and almost completely render the exporting process automatic.
 +*Select the necessary timeline interval for export and perform animation export. Enter the name of the animation, this will make the work with the model in the editor easier in future.
==Import to ActorEditor== ==Import to ActorEditor==
Line 36: Line 44:
==Adjust character in ActorEditor== ==Adjust character in ActorEditor==
-[[Category:MOD SDK official help|{{PAGENAME}}]]+[[Category:Official MOD SKD help|{{PAGENAME}}]]
[[ru:Docs:Создание модели персонажа]] [[ru:Docs:Создание модели персонажа]]

Revision as of 16:09, 6 June 2007

Contents

Creating a model, restrictions

Creating character's 3D model and texture to it is not the subject of stated below.

There is enough information on the principles of creating a character in the Internet, we will get you acquainted with the restrictions and limitations of our engine.

Restrictions

  • The character must be in the center of coordinate system (see example from SDK)
  • The character's model is created in the metric system of units, the sizes must correspond to the natural human sizes (height 1.6 – 2 meters)
Character's 3D model restrictions
Character's 3D model restrictions
  • The game engine doesn't have a strict limitation as to the number of triangles, but in order to have a solid and stable FPS the models with 3000-5000 triangles have to be used; it's possible to use models with more triangles, if only this is reasonably required.
  • Character's 3D model mustn't contain bugs in geometry, texture stretches and long thin triangles (see fixing bugs section).
  • The engine supports texture's flip reversing.
Texture's flip reversed
Texture's flip reversed
  • The model must have UV coordinates, XRay Shader and smoothing groups.
  • Before binding the model to the skeleton, nullify all model's transformations and delete history
  • The model must contain one or more XRay Shader with the parameters specified below, using transparency, gloss and self-light is allowed. See the description of available shaders in "Creating a scene in Maya" section
Basic XRay shader on character's 3D model
Basic XRay shader on character's 3D model

Creating and adjusting skeleton, skinning, restrictions

  • Creating game character's skeleton is done in Maya package with the standard means of 3D package
  • The scene must contain several different skeletons and models, the export is done by selecting the required model and exporting the selected.
  • To use the animations from the library, it's necessary to use the skeleton from SDK without changing it
    Character's skeleton used in the game
    Character's skeleton used in the game
  • Joints mustn't contain scale, rotate, transform before the final creation of the model. Please perform a cleaning of the mentioned transformations.
  • The 3D model must be bound to the skeleton using Smooth Bind
  • There must be not more that 4 joints per one vertex. The total weight of summarized influence of joints on vertex on export is normalized to 1, please be careful while assigning weights on skinning.
  • The game's engine doesn't have a strict limitation of the number of skeleton bones used per one model, but in order to obtain solid and high FPS, it's recommended to use as less bones as possible. For example the standard game character's model uses 54 bones.

Animation

  • The export plug-in supports all available tools of 3D package needed by the animator to create a high-quality animation: locators, inverse kinematics, restrictors, using physics during animation; all this and many other things are acceptable to create animations and is easily understood by the game's engine.
  • There are no limitations on the method of storing model's animation, this can be either an external file or storing all animations in one model; it depends on the preferences of the animator.

Exporting a model

  • While exporting a model, please check the model beforehand and the created skeleton for bugs.
  • It's important to assign a name similar to the one used in the game; this will simplify the work with this model, there will be no necessity to remember the name in the editor, and also this will make the work of people who adjust the configuration files and put the model into the game easier.

Exporting an animation

  • Export plug-in uses current parameters of the 3D package timeline. If need be, the capacities of the scripting 3D package engine can be used, and almost completely render the exporting process automatic.
  • Select the necessary timeline interval for export and perform animation export. Enter the name of the animation, this will make the work with the model in the editor easier in future.

Import to ActorEditor

Adjust character in ActorEditor

Personal tools
In other languages