BPLX (Betnix Project Language X) is a custom binary file format for 3D models with materials, skeletons, and animation data. This repository contains the reference implementation (encoder and decoder scripts) written in Python.
The BPLX format is designed to be compact and efficient. A detailed specification can be found in the BPLX_Specification.md file.
create_advanced_bplx.py: A Python script to encode a hard-coded animated cube model into theanimated_cube.bplxbinary file.read_bplx_binary.py: A Python script to decode and print the contents of a BPLX binary file.
- Ensure you have Python 3 and the
structmodule installed. - Run the encoder to create the file:
python3 create_advanced_bplx.py - Run the decoder to read the file:
python3 read_bplx_binary.py
The obj_to_bplx_converter.py script is a tool to convert standard .obj files into the BPLX format.
- Place your
.objfile in the same directory as the script. - Run the script from your terminal:
python3 obj_to_bplx_converter.py - A new
.bplxfile will be created with the converted model data.