glTF utilities for Panda3D
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install panda3d-gltfpanda3d-gltf
This project adds glTF loading capabilities to Panda3D. One long-term goal for this project is to be used as a reference for adding a builtin, C++ glTF loader to Panda3D. If and when Panda3D gets builtin support for glTF, this module will go into maintenance mode and be used to backport glTF support to older versions of Panda3D.
Features
- Adds support for native loading of glTF files
- Supports glTF 2.0
- Supports binary glTF
- Includes support for the following extensions:
- KHR_lights (deprecated in favor of KHR_lights_punctual)
- KHR_lights_punctual
- BLENDER_physics
- Ships with a
gltf2bamcli-tool for converting glTF files to BAM - Ships with
gltf-viewerfor viewing files (including glTF) with a simple PBR renderer
Installation
Use pip to install the panda3d-gltf package:
pip install panda3d-gltf
To grab the latest development build, use:
pip install git+https://github.com/Moguri/panda3d-gltf.git
Usage
Configuration
panda3d-gltf has the following configuration options.
See below for information on setting these options for the native loader and the CLI.
collision_shapes- the type of collision shapes to build. EitherbuiltinforColisionSolidsorbulletforBulletRigidBodyNodes. Defaults tobuiltin.flatten_nodes- attempt to flatten resulting scene graph, defaults toFalselegacy_materials- convert imported PBR materials to legacy materials, defaults toFalseno_srgb- do not load textures as sRGB textures, defaults toFalseskip_animations- do not convert animation data found in the glTF file, defaults toFalseskip_axis_conversion- do not perform axis-conversion (useful if glTF data is already non-standard and already Z-Up), defaults to