FbtBlend Header Only Save

a header-only C++ .blend file parser

Project README

fbtBlend-Header-Only

fbtBlend is a C++ .blend file parser from https://github.com/gamekit-developers/gamekit (available in the repository subfolder: ./Tools/FileTools/FileFormats/Blend).

Here there's a version updated to Blender 2.79 and amalgamated into two header files: fbtBlend.h and Blender.h.

Demos

Two demos are available: testConsole.cpp and testGlut.cpp (they contain build instructions for Linux and Windows).

A third demo is present in the subfolder test_skeletal_animation (build instructions are at the top of test_skeletal_animation/main.cpp).

  • zlib (for Blender versions < 3.0)
  • libzstd (for Blender versions >= 3.0)

testGlut.cpp and test_skeletal_animation need:

  • glut (or freeglut)
  • glew (Windows only)

Blender versions from 2.80 to 4.1

In the 280, ..., 401 repository folders there are versions of fbtBlend.h and Blender.h updated for Blender 2.80, ..., 4.1. In the 280/tests, .../tests, 401/tests subfolders there are some test programs that should compile correctly with these versions.

Please note that:

  • the files: XXX/tests/testGlut.cpp, when XXX>=280, are the same as the 2.79 version, except that all materials have been stripped, because Blender>=2.80 doesn't support "Blender Internal" materials anymore.
  • the files: 3xx/tests/testGlut.cpp, when 3xx>=301, are missing, because Blender 3.1 (or newer) has removed normals from the struct MVert, and I don't know how to retrieve them.

Of course I'll NEVER make a testGlut.cpp that can display physics-based materials... be warned!

Screenshots

testGlut

test_skeletal_animation_header

test_skeletal_animation

Gamekit Github Page

Open Source Agenda is not affiliated with "FbtBlend Header Only" Project. README Source: Flix01/fbtBlend-Header-Only
Stars
64
Open Issues
0
Last Commit
3 days ago

Open Source Agenda Badge

Open Source Agenda Rating