Skip to main content

glTF utilities for Panda3D

Project description

Pipeline Panda3D Versions License

panda3d-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 gltf2bam cli-tool for converting glTF files to BAM
  • Ships with gltf-viewer for 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

Native loading

panda3d-gltf ships with a Python file loader (requires Panda3D 1.10.4+), which seamlessly adds glTF support to Panda3D's Loader classes. This does not add support to pview, which is a C++ application that does not support loading Python file loaders. Instead of pview, use the gltf-viewer that ships with panda3d-gltf.

Command Line

To convert glTF files to BAM via the command line, use the supplied gltf2bam tool:

gltf2bam source.gltf output.bam

Viewer

panda3d-gltf ships with gltf-viewer. This is a simple viewer (like pview) to view glTF (or any other file format support by Panda3D) with a simple, PBR renderer.

API Stability

Since panda3d-gltf has not reached a 1.0 release, its API should not be considered "stable." However, this mostly applies to internals, and effort will be put into keeping the gltf2bam API from breaking.

Running Tests

First install blend2bam in editable mode along with test extras:

pip install -e .[test]

Then run the test suite with pytest:

pytest

Building Wheels

Install build:

pip install --upgrade build

and run:

python -m build

## License
[B3D 3-Clause](https://choosealicense.com/licenses/bsd-3-clause/)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panda3d-gltf-0.14.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

panda3d_gltf-0.14-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file panda3d-gltf-0.14.tar.gz.

File metadata

  • Download URL: panda3d-gltf-0.14.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for panda3d-gltf-0.14.tar.gz
Algorithm Hash digest
SHA256 bcc38d8e34b3b3702ae1ed6ffadbd205fec30dda61b36650e47fcf299d165557
MD5 397012bdcd24265b26d068a5dda8ee67
BLAKE2b-256 a519a48d7c7ce1c86bf8c7134bd0258eefd22094b02986fd5cd68f91d9b64576

See more details on using hashes here.

Provenance

File details

Details for the file panda3d_gltf-0.14-py3-none-any.whl.

File metadata

  • Download URL: panda3d_gltf-0.14-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for panda3d_gltf-0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 c33ad47f21808b62cb9b34045ca0cf30e677362c8e1278aeece50d444da62d7c
MD5 6c08615c3c03cc24f7f67036cdc23ad5
BLAKE2b-256 bb2c3337ef674a9628418d303247443e4bfeb123f503345758b913f84faf5ead

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page