fix loadModel instructions

This commit is contained in:
David Rose 2004-06-06 01:55:07 +00:00
parent c9cce917fe
commit ea898cbb20

View File

@ -846,17 +846,18 @@ You should see a graphics window come up, very similar to the one you
saw when you ran pview. To load a particular model file into the saw when you ran pview. To load a particular model file into the
scene, try something like this: scene, try something like this:
>>> m = loader.loadModel('/c/Panda3d/models/teapot.egg') >>> m = loader.loadModel('/c/Panda3d/models/smiley.egg')
>>> m.reparentTo(render) >>> m.reparentTo(render)
>>> run()
Note that Panda expects a forward-slash convention for pathnames, with Note that Panda expects a forward-slash convention for pathnames, with
no leading drive letter, even on a Windows system. See the full no leading drive letter, even on a Windows system. See the full
description of how Panda maps these pathnames to Windows pathnames in description of how Panda maps these pathnames to Windows pathnames in
HOW TO BUILD PANDA ON A WINDOWS SYSTEM, USING CYGWIN, above. HOW TO BUILD PANDA ON A WINDOWS SYSTEM, USING CYGWIN, above.
You can now move the teapot around with the mouse, just as in pview You can now move the scene around with the mouse, just as in pview
(you may need to pull the camera back with the right mouse button in (you may need to pull the camera back by dragging upwards while
order to see the teapot). holding down the right mouse button in order to see the model).
Congratulations! Panda 3D is now successfully installed. See the Congratulations! Panda 3D is now successfully installed. See the
online documentation available at http://www.etc.cmu.edu/panda3d/ for online documentation available at http://www.etc.cmu.edu/panda3d/ for