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

VOXFORMAT: Colors of a red/green Qubicle model become darker as the voxel resolution increases #409

Closed hkunz closed 3 months ago

hkunz commented 3 months ago

There is a certain Qubicle file (.qb) here that loads with incorrect colors. It should have mostly green and red colors but shows up as brown and brown-green colors. Here's the sample when converting this .qb to .obj using voxconvert:

image

The colors seem to get darker as the voxel resolution increases

image

out.zip

mgerhardy commented 3 months ago

This model has more than 256 colors and vengi is trying to reduce the colors from 1115 to 256 - therefore the color quant algorithm can be changed for this particular model to -set core_colorreduction KMeans to produce a result like this

Bildschirmfoto vom 2024-03-06 12-06-30

there are other options in vengi to reduce the colors - like the cvar for flattening the rgb values. Qubicle QB is a RGB format and can have more than 256 different colors that might have to be reduced - see the configuration section in the documentation regarding the cvars

mgerhardy commented 3 months ago

7e162323da2f9bcdc85e863fab524010f61bfc80 this is a quite recent commit that unified the way the rgb colors for QB are loaded.