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 - populating the sky with stars

Before we start writing some Panda3D code to make all this happen, we have to change the names on our skybox image files. Panda3D and Spacescape use different naming conventions and we have to switch over to the Panda3D naming methods in order to use the images.

  1. Navigate Windows Explorer to BGP3D/Images and locate the skybox images we saved. All of their names will start with Purple_.
  2. Remove the top, bottom, left, right, front, and back words from the filenames so the files are named Purple_1.png, Purple_2.png, and so on.
  3. Reduce all the numbers in the filenames by 1. 1 becomes 0, 2 becomes 1, and so on. We should have Purple_0.png through Purple_5.png when finished.
  4. Rename Purple_2.png to Purple_3temp.png ...

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