vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.05k stars 87 forks source link

CUBZH: add support for b64 files transforms and references #366

Open mgerhardy opened 6 months ago

mgerhardy commented 6 months ago

b64 files are base64 encoded maps for cubzh - they are basically a scene description for 3zh files

the transforms are not applied correctly.

if a 3zh files is already loaded, we should only create a reference, and not load it another time.

See https://github.com/vengi-voxel/vengi/blob/master/src/modules/voxelformat/private/cubzh/CubzhB64Format.cpp

mgerhardy commented 6 months ago

it could also be related to the merging of the nodes in the 3zh file - it looks like the pivot is not handled correctly here.

scenegraph::SceneGraph::MergedVolumePalette merged = modelScene.merge();

SceneGraph::merge()

Screenshot 2023-12-30 at 22 45 33