/Blender-BAM-Exporter

Blender 3.0+ addon for exporting Panda3D "BAM" files

Primary LanguagePythonMIT LicenseMIT

Blender BAM Exporter

Addon for Blender (3.x+) for exporting Panda3D "BAM" files. Uses the blend2bam tool as the backend. Not related to the older addon for Blender 2.7x.

image

Installation

To install the addon into Blender, press the green "Code" button above and choose Download ZIP. The resulting ZIP file can be installed via the Install button in the Blender addon preferences.

Setup

  1. Before making your first export, you must first open the Blender addon preferences and add the full absolute path to the Panda3D Python executable. See the screenshot below.
    • image
    • If you installed Python via the Panda3D SDK, the path will likely be somewhere in C:\Panda3D-x.xx.xx-x64\python (at least on Windows)
    • If using the Anaconda distribution of Python, look in your C:\ProgramData\anaconda folder (on Windows)
  2. This addon requires the "blend2bam" CLI tool to be installed. If you already have blend2bam installed, then you're set. If you don't have blend2bam installed, the Blender addon will attempt to install blend2bam for you automatically when you first try to export a scene, as long as you've set the correct Python path first.

Known Issues

  • blend2bam currently requires occlusion, roughness, and metallic textures to be combined into one single "ORM" map. If you export to .BAM without an ORM map (and instead use separate O, R, and M maps in your material nodes), there will be missing texture maps in the resulting .BAM file. See issue here.