goxel icon indicating copy to clipboard operation
goxel copied to clipboard

Keeping model matrix structure after import/export of .QB format

Open YarlBoro opened this issue 7 years ago • 8 comments

I hope that at some point in the future Goxel can import each Qubicle matrix as separate layer and the other way around, export each layer to separate matrix while saving to QB format.

Thanks in advance!

YarlBoro avatar Apr 25 '17 20:04 YarlBoro

This. This is extremely important in modding certain games such as Staxel. In some ways Goxel is already superior to Qubicle, but this is required as layers/matrices have meaning for Staxel so they need to be preserved.

darkhog avatar Jan 29 '18 16:01 darkhog

Agreed. This is important. I think I will make it so that the qubicle matrices are imported as separated layers, and saved the same way.

guillaumechereau avatar Jan 29 '18 17:01 guillaumechereau

OK I just pushed some changes to qubicle import/export, so that now we keep the matrices as layers. I haven't tested much yet.

guillaumechereau avatar Jan 30 '18 13:01 guillaumechereau

I've done some tests with files that have 12-18 matrices. Loading and saving .qb files, while keeping layers/matrixes, works! :) Colors, structure and orientation seem to be fine so far. I will report if I will encounter any bugs.

Thank You, this one is a huge time saver!

YarlBoro avatar Jan 31 '18 12:01 YarlBoro

How about size of the bounding box in case of matrices that have oversized bounding boxes with lots of empty space around? In case of certain items for Staxel (clothes/accessories), it matters for the size of the bounding boxes to be preserved even if actual voxel thing is just few voxels in size.

darkhog avatar Feb 02 '18 01:02 darkhog

Yes that should be taken into account in the import/export, I'll add this. Actually, I am almost considering forcing all layers to have a bounding box, even a very large one, to avoid confusion.

guillaumechereau avatar Feb 03 '18 08:02 guillaumechereau

Yes, that would be a good thing. I mean, Qubicle does that for matrices and no one is complaining. BTW. Does Goxel compress exported QBs? Some voxel programs I know of don't do that so I want to know.

darkhog avatar Feb 03 '18 09:02 darkhog

For the moment goxel doesn't use compression in the QB export. Would be nice to have this as an option.

guillaumechereau avatar Feb 03 '18 10:02 guillaumechereau