step1_blank_window.py 497 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # Author: Shao Zhang and Phil Saltzman
  3. # Last Updated: 2015-03-13
  4. #
  5. # This tutorial is intended as a initial panda scripting lesson going over
  6. # display initialization, loading models, placing objects, and the scene graph.
  7. #
  8. # Step 1: ShowBase contains the main Panda3D modules. Importing it
  9. # initializes Panda and creates the window. The run() command causes the
  10. # real-time simulation to begin
  11. from direct.showbase.ShowBase import ShowBase
  12. base = ShowBase()
  13. base.run()