项目作者: blueburn-cz

项目描述 :
3D model format for GameMaker Studio 2
高级语言: C++
项目地址: git://github.com/blueburn-cz/BBMOD.git
创建时间: 2020-02-15T12:15:15Z
项目社区:https://github.com/blueburn-cz/BBMOD

开源协议:MIT License

下载



Logo

Make 3D games in GameMaker!

License
Discord

Table of Contents

About

BBMOD is a library that makes creating 3D games in GameMaker easier! Whether you just need to draw 3D models in 2D games
or you are building fully immersive 3D worlds, BBMOD helps you bring your vision to life! For more info, please see its
homepage https://blueburn.cz/bbmod/.

[!TIP]
BBMOD 4 is currently in development! See the design document here
and its branch here.

Screenshots

Sponza
Sponza

Vehice demo
Vehicle demo

Zombie demo
Zombie demo

Documentation, tutorials, samples and help

An online documentation for the latest release of BBMOD is always available at https://blueburn.cz/bbmod/docs/3. Tutorials for BBMOD can be found on its homepage at https://blueburn.cz/bbmod/tutorials. There are also some sample projects available in the showcase section https://blueburn.cz/bbmod/showcase. If you need any additional help, you can join our Discord server.

Building BBMOD CLI and DLL

Requires CMake version 3.23 or newer!

1. Build Assimp

Normally this can be omitted, since Assimp binaries are included in this repo, but in case of need, here’s how to build them from scratch:

  1. git clone https://github.com/assimp/assimp.git
  2. cd assimp
  3. git checkout v5.4.3
  4. cmake -S . -B build # Use -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" on macOS!
  5. cmake --build build --config=Release

When finished, copy

  • assimp-vc143-mt.dll into /BBMOD_CLI/bin/ on Windows,
  • assimp-vc143-mt.lib into /BBMOD_CLI/lib/
  • and libassimp.5.4.3.dylib into /BBMOD_CLI/lib/libassimp.5.dylib on macOS.

Up-to-date license text of Assimp (from its LICENSE file) should be kept in /BBMOD_CLI/bin/LICENSE-Assimp‼️

2. Build BBMOD CLI and DLL

  1. cd BBMOD_CLI
  2. cmake -S . -B build
  3. cmake --build build --config=Release

This builds both BBMOD CLI and DLL into /BBMOD_CLI/build/. Do not forget to copy the files to /BBMOD_GML/datafiles/Data/BBMOD/ on release! On Windows, these are BBMOD.exe, assimp-vc143-mt.dll and LICENSE-Assimp. On macOS it’s BBMOD, libassimp.5.dylib, libBBMOD.dylib and LICENSE-Assimp.

3. Fix rpaths and codesign (for macOS)

  • Check rpaths:
  1. otool -l libBBMOD.dylib | grep -B 1 -A 2 LC_RPATH
  • Remove bad rpaths:
  1. install_name_tool -delete_rpath "/Volumes/KINGSTON/Git/BBMOD/BBMOD_CLI/lib" libBBMOD.dylib # Replace with the path you got from the previous command
  • Add rpaths:
  1. install_name_tool -add_rpath "@executable_path/data/bbmod" libBBMOD.dylib
  2. install_name_tool -add_rpath "@loader_path/" libBBMOD.dylib
  3. install_name_tool -add_rpath "@executable_path/../Resources/Data/BBMOD" libBBMOD.dylib
  4. install_name_tool -add_rpath "@executable_path/data/bbmod" libassimp.5.dylib
  5. install_name_tool -add_rpath "@loader_path/" libassimp.5.dylib
  6. install_name_tool -add_rpath "@executable_path/../Resources/Data/BBMOD" libassimp.5.dylib
  • Codesign:
  1. codesign --force --timestamp --sign "Developer ID Application: Your Name (Y0URT3AM1D)" BBMOD
  2. codesign --force --timestamp --sign "Developer ID Application: Your Name (Y0URT3AM1D)" libBBMOD.dylib
  3. codesign --force --timestamp --sign "Developer ID Application: Your Name (Y0URT3AM1D)" libassimp.5.dylib

License

BBMOD is available under the MIT license. Full text is available here.

Logo terms of use

BBMOD logo is property of BlueBurn and you’re not allowed to do any modifications to it! Only uniform scaling is allowed, to change the logo size as required.

Special thanks