Making new scene

From XStoryPlayer Wiki
Revision as of 11:34, 11 January 2015 by Xwikip (Talk | contribs)

Jump to: navigation, search

In this tutorial we be creating a new scene that is the interior of a spaceship in which you are held captive.

It is assume you have Maya. If not, you can follow this tutorial but cannot edit the scene in Maya.

Scenes from Maya are converted to in-game format using the filemaker. We will replace the test scene with the spaceship scene.

Steps

  1. Get the sources directory from the 'Tutorial Resource Pack' and place it in the ./pack/pack_abducted directory.
    The sources pack contains the Maya scene with the spaceship interior. It is a very simple scene sufficient for our short story.
  2. Open the ./pack/pack_abducted/sources/scenes/spaceship/scene.ma In Maya. Also open the ./pack/pack_abducted/sources/scenes/spaceship/scene.ini file in a text editor.
    Every .ma scene need to be accompanied by an .ini file. This .ini file describes how the objects in the maya scene are being used in XStoryPlayer.
  3. Before diving into the details of the Maya scene and the ini file first lets convert the scene.
    Open the start.ini in the filemaker directory and replace the code as follows:
    //////////////////////////////////////////////////////
    // Defines
    //////////////////////////////////////////////////////
     
    #define SOURCES  "../pack/pack_abducted/sources/"
    #define RUNTIME  "../pack/pack_abducted/"
     
    //////////////////////////////////////////////////////
    // Convert settings
    //////////////////////////////////////////////////////
     
    // Copy textures to runtime directory and create directory if it not exists
    maya_auto_copy = COPY_DIR;
     
    // Use compressed color textures
    maya_auto_compress = COLOR;
     
    //////////////////////////////////////////////////////
    // Convert maya scene
    //////////////////////////////////////////////////////
     
    Maya scene
    {
      src_path = "[SOURCES]";
      run_path = "[RUNTIME]";
     
      in_file  = "[SOURCES]scenes/spaceship/scene.ma";
    }
     
    //////////////////////////////////////////////////////
    // Compress textures
    //////////////////////////////////////////////////////
     
    Compgen compress0
    {
      // Comment if you don't want to compress files everytime again
      compress = true;
    }