How to Create New Gestures Animation in Open Wonderland
written by: taranjeet singh bhatia

Prerequisites: #
A recent version of Netbeans (or other editor of your choice)
Latest source versions of wonderland and wonderland-avatar

  1. Information to download and build trunk source is located here:http://code.google.com/p/openwonderland/wiki/DownloadBuildSource05
  2. Information to download wonderland-avatars is located here:http://code.google.com/p/openwonderland-avatars/
Steps to Create Gestures
  • Step 1: Create new gesture animation in Maya
    1. Requirement:
    2. Learn Maya (Specially how to make simple animation and adding key frames)
    3. Downlaod file “Male_ShakeHands.mb” from here https://sites.google.com/site/openwonderland/source
    4. Open File in Maya 2008
    5. Remove older animation keyframes and Create New Animation
    6. Go to File> Save Scene As. Save File with new Name as Male_newAnimationName
      E.g. Male_Kick (we are making modification in Male skeleton file, so file name also start with Male keyword)
    7. Go to File> Export >options
      1. Under General Options Box, Select file type as “COLLADA exporter”
      2. Under General Export Options, Select Check Box of “Bake Transform”
      3. Then press Export All button
      4. Provide file name in Export Dialog box as “Male_Anim_newAnimationName”. Ex. Male_Anim_Kick
      5. Press Export
    8. Copy File you just created which saved as “Male_Anim_Kick.dae” and paste file in wonderland-avatar directory at this location
      {\wonderland-avatar\assets\models\collada\Animations\MaleBodyAnimations}
  • Step 2: Create binary skeleton File in Open Wonderland-Avatar
    1. Open AvatarContext.java from {\wonderland-avatar\src\imi\character\avatar\}
      find “configureDefaultActionStateInfo” method and add generic animation command as shown below:

      Save AvatarContext.java
    2. Open Class named SkeletonOven.java in Netbeans from Wonderland-Avatar directory from location {\wonderland-avatar\src\imi\utils\preprocess\SkeletonOven.java}
    3. Add the path of new animation file in the variable named “MaleAnimationLocations” just like already present files in the variable
      Ex. "assets/models/collada/Animations/MaleBodyAnimations/Male_Anim_kick.dae"

    4. Make changes in program as follows in lines 193-194:
      boolean bLoadMale = true;
      boolean bLoadFemale = true;
    5. Save File and Run Program. This will create Binary files known as Male.bs and Female.bs in {wonderland-avatar/src/imi/character/data} directory.
    6. Or run program from Command prompt as: (TBD by Johnathan)
    7. Build wonderland-avatar using "ant jar" and copy avatar.jar from {wonderland-avatar/dist/avatars.jar} to {wonderland/modules/world/avatarbase/lib}
  • Step 3: Create new gesture control in Wonderland
    1. Open Bundle.properties file from {\wonderland\modules\world\avatarbase\src\classes\org\jdesktop\wonderland\modules\avatarbase\client\resources} in any text editor and add new string in file in new line
      E.g. Kick=Kick
    2. Open GestureHUD class from {\wonderland\modules\world\avatarbase\src\classes\org\jdesktop\wonderland\modules\avatarbase\client\jme\cellrenderer\GestureHUD.java} in Netbean
    3. Add new value in Variable name “gestures” as shown below:

      This will be animation name in Gesture panel
    4. Built and deploy Wonderland repository again
    5. Open gesture panel and you will see new animation button..

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
jpg
wikipage1.jpg 89.1 kB 1 09-May-2011 20:18 taranjeet singh
jpg
wikipage2.jpg 82.5 kB 1 09-May-2011 20:18 taranjeet singh
jpg
wikipage3.jpg 33.7 kB 1 09-May-2011 20:19 taranjeet singh
« This page (revision-17) was last changed on 15-Sep-2015 15:11 by Abhishek Upadhyay