Difference between revisions of "Add character to scene"

From XStoryPlayer Wiki
Jump to: navigation, search
Line 20: Line 20:
 
[[file:maya_waypoint1.jpg|600px]]
 
[[file:maya_waypoint1.jpg|600px]]
 
</li>
 
</li>
 +
<li>Open the <code>/init/story/alien/init.dat</code> file.<br>
 +
In the pose settings you see that the <code>scene_id = SPACESHIP1</code> and <code>waypoint = "waypoint2"</code>.<br>
 +
The pose contains all pose settings for this character. The character is derived from the object <code>CHAR_BASE</code>, you can find more pose settings in the file:<br>
 +
<code>/init/std/base/char/char_base.dat</code>. You see that the scene_id and waypoint are overridden.</li>
 
</ol>
 
</ol>

Revision as of 11:43, 13 January 2015

In this tutorial we will add a female alien character to the scene. We will let her walk by the cell once in a while.
If you try to talk with her, she gets angry and says you should be quiet.

Alien abduc1.jpg

Steps

  1. Copy the files from the 'Tutorial resource pack' for this tutorial to the appropriate directories.
    We will describe these files here briefly:
    • /init/story/alien: This is the brain for the alien character. Just like the player each character has a brain.
    • /scenes/capture: These are the motion capture files used for the alien character.
    • /scenes/character6: These are the character and cloth meshes.
    • /scenes/charobj: These meshes are used for collision detection for characters in general.
    • /scenes/sounds: These files are the sound files used for the character.
    • /scene/textures: These files are the texture files used for the character.
  2. Now we need a location that is the starting point for this character.
    Open the spaceship scene scene.ma and create a duplicate instance of the waypoint object.
    A duplicate instance copies only the instance of the object not the mesh itself. Name the copy waypoint2 and place it outside the cell like this:
    Maya waypoint1.jpg
  3. Open the /init/story/alien/init.dat file.
    In the pose settings you see that the scene_id = SPACESHIP1 and waypoint = "waypoint2".
    The pose contains all pose settings for this character. The character is derived from the object CHAR_BASE, you can find more pose settings in the file:
    /init/std/base/char/char_base.dat. You see that the scene_id and waypoint are overridden.