Difference between revisions of "Editing scene"

From XStoryPlayer Wiki
Jump to: navigation, search
Line 5: Line 5:
 
<ol>
 
<ol>
 
<li>Open the spaceship scene in Maya. Add a few boxes (cubes) like this:<br>
 
<li>Open the spaceship scene in Maya. Add a few boxes (cubes) like this:<br>
[[file:maya_colliders1.jpg|600px]]
+
[[file:maya_colliders1.jpg|600px]]</li>
 +
<li>Now open the <code>scene.ini</code> file and add:
 +
rb "collShape1"
 +
{
 +
  physics
 +
  {
 +
    elem[0] {mesh = "collShape1";}
 +
    elem[1] {mesh = "collShape2";}
 +
    elem[2] {mesh = "collShape3";}
 +
    elem[3] {mesh = "collShape4";}
 +
  }
 +
}
 
</li>
 
</li>
 
 
</ol>
 
</ol>

Revision as of 10:53, 12 January 2015

In this tutorial we will change the 'Spaceship' scene so that: there are colliders, the door of the cell can open, there are some objects in the cell, there is background sound.

The final result can also be found in the 'Tutorial resource pack', but it would be best to create it using this tutorial yourself.

  1. Open the spaceship scene in Maya. Add a few boxes (cubes) like this:
    Maya colliders1.jpg
  2. Now open the scene.ini file and add: rb "collShape1" { physics { elem[0] {mesh = "collShape1";} elem[1] {mesh = "collShape2";} elem[2] {mesh = "collShape3";} elem[3] {mesh = "collShape4";} } }