object_viewer - ryzom/ryzomcore GitHub Wiki


title: Basic operation of Object Viewer description: published: true date: 2023-03-01T05:20:34.022Z tags: editor: markdown dateCreated: 2022-03-12T06:26:23.045Z

Object Viewer is the tool used to display NeL shapes, animations, particle systems and other NeL data. It is also the tool to make all particle systems and put sounds in the animations. In this section, we get some graphic data from Snowballs game that you can get here.

For now, the Object Viewer can only be used in Windows, similar to a number of other tools.

Configuring Object Viewer

All the configuration variables are available in the file object_viewer.cfg.

The option recursive_search_pathes contains a set of paths that will be use to find dependencies files (for example, textures and shapes).

This is an example of what recursive_search_pathes should look like (note that all path are between "" and separated by ,) :

recursive_search_pathes = {  
    "C:\code\mtp-target\Client\nel_data",  
    "C:\code\snowballs2\client\data",  
};

Option search_pathes also contains some paths but they are not recursively parsed. Only the content of the path itself is added, not inner directories.

Now you can launch the exectuable, a windows should happen with yellow axis.

Moving

Key Description
<ALT> + <LEFT MOUSE BUTTON> + <MOUSE MOVE> do rotations
<CTRL> + <LEFT MOUSE BUTTON> + <MOUSE MOVE> do translations
<MOUSE WHEEL> do zooms
<SHIFT> + <LEFT MOUSE BUTTON> + <MOUSE UP/DOWN> do also translations

Playing with shapes

  • Load a shape using menu "Files" -> "Open"
  • Select for example gnu.shape that is in shapes/ directory then click "Open" button. Another selector will appear to select the skeleton of this mesh. If there's no skeleton, just press "Cancel" button. In our case, select gnu.skel in the anims/ directory.
  • Then press "Open" button.

You should now see the gnu:

ov_2.jpg

Playing with animations

  • Open the animations set window in the menu "Window" -> "Animation set"
  • Click on the "Add anim" button, then select all .anim in the anims/ directory.
  • Select "lancelaboule" tree then click on "Insert" button.
  • Click on "Set anim length" button.
  • Open the animations window in the menu "Window" -> "Animation"
  • Click on the "Play" button. The gnu should move

Playing with particle systems

Read the particle system page.

⚠️ **GitHub.com Fallback** ⚠️