Advertisement
Bcadren

Save format?

Jan 21st, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. File 1: Voxel Data
  2. Header: Voxel Image Size [Int, Int, Int] (6 Bytes)
  3. Palette Size (3 bits) [Value N of 2^(N+1)]
  4. Voxeloid type (3 bits)
  5. 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)]
  6.  
  7. File 2: Palette Data
  8. Header: Palette type (2 bits)
  9.  
  10. If (type 00): -Multiple Material Types; Textured-
  11. Image Size (4 bits) [Value N of 2^(N+1)]
  12. Texture Size (4 bits) [Value N of 2^(N+1)]
  13. .PNG data to build textures
  14. Body: -Palette material data Blocks-
  15. Texture Type Index (1 byte)
  16. Offset(s) of Texture position in Master .PNG (2 Bytes, each)
  17.  
  18. If (type 01): -Single Material; Textured-
  19. Image Size (4 bits) [Value N of 2^(N+1)]
  20. Texture Size (4 bits) [Value N of 2^(N+1)]
  21. .PNG data to build textures
  22. Texture Type Index (1 byte)
  23. Body: -Palette material data Blocks-
  24. Offset(s) of Texture position in Master .PNG (2 Bytes, each)
  25.  
  26. If (type 10): -Multiple Material Types; Solid Color-
  27. Body: -Palette material data Blocks-
  28. Texture Type Index (1 byte)
  29. Color Value(s) (4 Bytes, each)
  30.  
  31. If (type 11): -Single Material; Solid Color-
  32. Texture Type Index (1 byte)
  33. Body: Color Value(s) (4 Bytes, each)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement