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

Creating a sky sphere from a skybox made with Spacescape

To utilize our skybox images in Panda3D, we'll need to create a cubemap. A cubemap is a special kind of 3D texture in Panda3D that will take our six images, make them into a cube, and shrink wrap them onto an object. This process can create distortions on complex objects, but on a simple object like a sphere it works beautifully. Once we have the cubemap, we'll need to create 3D texture coordinates on the sphere so that we can use it. After that, we'll apply the cubemap to the sphere, set some render attributes on the NodePath, and then save it out into a bam file.

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