Panda3D Manual: Previewing 3D Models in Pview
  <<prev top next>>     

Pview or Panda Viewer is a model and animation viewer for egg and bam files. This allows users to see if their files have converted correctly without having to create a Panda3D program. Pview is accessed through a command prompt.

To view a model that has been converted to an egg or bam file, type the following:

pview modelFile.egg

To view a character model with animations, simply add the name of the file with the animation.

pview modelFile.egg animationFile.egg

Here's an example based on the panda model distributed with panda source.

pview panda

A new window should pop-up and here's what you should see -

Image:pviewsample.jpg

There are some controls and hotkeys available while using pview. To see the whole list press shift-question mark in the pview window. To turn this list off press shift-question mark again. For convenience here is the full list of as the time of writing:

Left-click and drag MouseMoves the model up, down, left, and right relative to the camera
Middle-click and drag MouseRotates the model around its pivot
Right-click and drag MouseMoves the model away and towards the camera
fReport framerate. The current framerate is output on the console window.
wToggle wireframe mode
tToggle texturing
bToggle back face (double-sided) rendering
iInvert (reverse) single-sided faces
lToggle lighting
cRecenter view on object
shift-cToggle collision surfaces
shift-bReport bounding volume
shift-lList hierarchy
hHighight node
arrow-upMove highlight to parent
arrown-downMove highlight to child
arrow-leftMove highlight to sibling
arrow-rightMove highlight to sibling
shift-sActivate PStats
f9Take screenshot
,Cycle through background colors
shift-wOpen new window
alt-enterToggle between full-screen and windowed mode
2Split the window
WToggle wireframe
escapeClose Window
qClose Window

As of this writing there is a small caveat in loading textures for models into pview. Textures are searched for relative to the directory that pview is called from, not the directory that the model is in. Either make sure that the texture path is set correctly in the Config.prc file or ensure the bam or egg file look for the textures correctly (relative to where you are calling pview). The easiest way to get around this is to call pview from the directory that the model is placed.

  <<prev top next>>