Panda3D is a game engine, a framework for 3D rendering and game development for Python and C++ programs. Panda3D is open-source and free for any purpose, including commercial ventures, thanks to its liberal license. To learn more about Panda3D's capabilities, visit the gallery and the feature list. To learn how to use Panda3D, check the documentation resources. If you get stuck, ask for help from our active community.
Panda3D is licensed under the Modified BSD License. See the LICENSE file for more details.
You can build Panda3D with the Microsoft Visual C++ 2015 or 2017 compiler, which can be downloaded for free from the Visual Studio site. You will also need to install the Windows 10 SDK, and if you intend to target Windows XP, you will also need the Windows 7.1 SDK.
You will also need to have the third-party dependency libraries available for the build scripts to use. These are available from the third-party repository. Place the third-party directory into your Panda3D source directory.
After acquiring these dependencies, you may simply build Panda3D from the
command prompt using the following command. (Change 14.1
to 14
if you are
using Visual C++ 2015 instead of 2017. Add the --windows-sdk=10
option if
you don't need to support Windows XP and did not install the Windows 7.1 SDK.)
compile.bat
postbuild.bat
postbuild cleans up the built dir.
On Linux, you will need to obtain the relevant third-party dependencies for Nirai's Panda3D via means that your distro provides. You may visit this manual page for an overview of the various dependencies.
If you are on Ubuntu, this command should cover the third-party packages:
sudo apt-get install build-essential pkg-config fakeroot python-dev libpng-dev libjpeg-dev libtiff-dev zlib1g-dev libssl-dev libx11-dev libgl1-mesa-dev libxrandr-dev libxxf86dga-dev libxcursor-dev bison flex libfreetype6-dev libvorbis-dev libeigen3-dev libopenal-dev libode-dev libbullet-dev nvidia-cg-toolkit libgtk2.0-dev libassimp-dev libopenexr-dev
After acquiring the dependencies, you may simply build Panda3D from the terminal using the following command:
./compile.sh
./postbuild.sh
postbuild cleans up the built dir.
You will need to have the macOS third-party dependencies available for the build scripts to use. These are available from the third-party repository. Place the third-party directory into your Panda3D source directory.
After acquiring these dependencies, you may simply build Panda3D from the terminal using the following command:
./compile.sh
./postbuild.sh
postbuild cleans up the built dir.