O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating a bam writer

Instead of loading and applying textures to our models in the game, we're going to create a new Panda3D application that we'll call a bam writer. This application will load up our models and texture them, then save out a bam file that will retain all the work we've done. Then, we'll just need to load the bams into the game. While we're at it, we'll set up the bam writer to give us a good preview of the models to make sure they look nice.

  1. Open a blank document in Notepad++. Save the file as BamWriter_01.py.
  2. Our first step is to import all the components we'll need for this application. Add this code to the new file:
    import direct.directbase.DirectStart from pandac.PandaModules import * from InputManagerClass_00 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required