jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
375 stars 36 forks source link

ogt_vox: support loading magicavoxel 0.99.7 files #25

Closed mgerhardy closed 2 years ago

mgerhardy commented 2 years ago

the version is no longer 150 - but 200

looks like the main difference is the animation/keyframe support. The nTRN chunk no longer has a fixed frames value of 1. The current solution loads all frames - but only keeps the last one. This at least allows us to load files saved with 0.99.7

there should be keyframe support integrated somehow into the library

animation.zip

jpaver commented 2 years ago

Hi @mgerhardy -- thanks for the prompting on this, I have implemented initial v200 loading support and extended support for loading/merging and saving both model and transform keyframes via ogt_vox. Please feel free to open a new issue if anything comes up. Thanks!