Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File 1: Voxel Data
- Header: Voxel Image Size [Int, Int, Int] (6 Bytes)
- Palette Size (3 bits) [Value N of 2^(N+1)]
- Voxeloid type (3 bits)
- Body: Voxel Palette Assignment (1 to 8 bits each) [Value is a numerical index of which color assignment from the palette they are assigned (at 1 bit each, it's alpha and solid color object; at 1 byte each it's 255 colors/textures to the object + alpha)]
- File 2: Palette Data
- Header: Palette type (2 bits)
- If (type 00): -Multiple Material Types; Textured-
- Image Size (4 bits) [Value N of 2^(N+1)]
- Texture Size (4 bits) [Value N of 2^(N+1)]
- .PNG data to build textures
- Body: -Palette material data Blocks-
- Texture Type Index (1 byte)
- Offset(s) of Texture position in Master .PNG (2 Bytes, each)
- If (type 01): -Single Material; Textured-
- Image Size (4 bits) [Value N of 2^(N+1)]
- Texture Size (4 bits) [Value N of 2^(N+1)]
- .PNG data to build textures
- Texture Type Index (1 byte)
- Body: -Palette material data Blocks-
- Offset(s) of Texture position in Master .PNG (2 Bytes, each)
- If (type 10): -Multiple Material Types; Solid Color-
- Body: -Palette material data Blocks-
- Texture Type Index (1 byte)
- Color Value(s) (4 Bytes, each)
- If (type 11): -Single Material; Solid Color-
- Texture Type Index (1 byte)
- Body: Color Value(s) (4 Bytes, each)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement