Using Animated 3D Models
From RexWiki
Supported animation formats
At the moment only Ogre3D rendering engine's .skeleton format is supported.
How to use animated 3D model in a prim
- In the realXtend viewer, create a 3D model, see Using 3D Models for more information.
- Make sure you have a skeleton file compatible with the 3D model (f.ex. the skeleton file that was exported with the 3D model).
- Upload the .skeleton file from 'File' menu -> 'Upload 3D Model Animation'.
- The skeleton will appear to your inventory under 'Skeletal Animations' category.
- From object properties choose 'reX' -> 'Display'.
- Drag & drop the uploaded skeleton file from your inventory into the 'Animation Pack Name' combo-box. The first animation in the skeleton should automatically start playing.
How to select which animation is played
- Type in the name of the animation into the 'Anim Name' text box. Note: the name is case-sensitivive.
- Change the speed of the animation by changing the 'Rate' value. Value of 1 is the default, original speed of the animation.
- The animation is automatically played in a loop.
- Note that the animation is not currently synchronized over network.
- If no animation is selected, the (alphabetically) first animation is played automatically.
- To disable animation, the skeleton should contain an 'idle' animation that does nothing. This animation can be then selected as the animation that should be run.
Adjusting animation LOD distance
All animations are automatically LODed. This means that the animation is updated less frequently when the camera is farther away from the primitive.
- To adjust animation LOD, go to reX panel and adjust 'LOD Bias' parameter.
- For large objects, increase LOD Bias to make the animation look good at longer distances.
- For very small objects, decrease the LOD Bias to make sure the animated model doesn't slow the whole world down too much.
Launching animation from server
See Launching 3D model animation from server.
Troubleshooting
- Animation doesn't play
- Animation name is case-sensitive. Check carefully that it matches the name in the skeleton.
- Set animation rate to 1.
- Selected skeleton may not be compatible with the 3D model.
- Animation looks weird
- The selected skeleton is not compatible with the 3D model.
- Animation looks jerky when looking at distance
- Increase 'LOD Bias' parameter in reX panel.
|