elsewhat / meebits-blender-utils

1 stars 0 forks source link

VRM Export (beta) - Custom color palette not being persisted on blender re-pen #10

Open elsewhat opened 3 years ago

elsewhat commented 3 years ago

Meebit gets all dark on re-opening of the blender file.

Think the root cause may be that the base color reference meebit_16734_t_col is not persisted in the blender scene somehow image

elsewhat commented 3 years ago

Importing as Separate material fixes this. Plan to make this the default option

image image

elsewhat commented 3 years ago

This may hold the fix https://blender.stackexchange.com/questions/142888/how-to-pack-data-into-blend-with-bpy-data-libraries-write

elsewhat commented 3 years ago

Version 0.9.0 packs the two images into the blender scene automatically.

However, there are still some issues caused by the custom color space getting corrupted in the pack() image

Investigated if it could be because alpha channels not being included in packed image.

But as far as I can see the pack is done in TARGA format which has good support for this https://docs.blender.org/api/2.92/bpy.types.Image.html#bpy.types.Image.colorspace_settings