Closed acs closed 4 years ago
Time to review the VOX format: #99
Reading the original and extended format definition in the current version the material is defined in the MATL chunk
(4) Material Chunk : "MATL"
int32 : material id
DICT : material properties
(_type : str) _diffuse, _metal, _glass, _emit
(_weight : float) range 0 ~ 1
(_rough : float)
(_spec : float)
(_ior : float)
(_att : float)
(_flux : float)
(_plastic)
Probably we have a "material id" for each voxel, like XYZI and colors, but I need to review the format!
It seems that for each color in the palette we have its material:
[export]$ strings vxs.vox | grep MATL | wc -l
256
To check it, just change the MATL for a color, save it, and diff it with the previous version.
Time to explore. For doing it I will use the model with the voxel logo inside a crystal (glass) ball.
Simple, we have two colors:
So we need to read the materials palette and use it in order to select the block to be used in Minecraft.
Without supporting materials it looks like:
Interesting result, close to the model version in MV, but pretty far from the rendered one.
All done:
Glass and metal are mapped to glass and iron in MC. And this opens the door to use other blocks in MC.
For example, the glass ball must be of glass :)