User Tools

Site Tools


general_information

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
general_information [2017/10/02 15:29]
gobrosse
general_information [2018/01/24 14:02]
gobrosse [Voxel cell data setup]
Line 37: Line 37:
 As you can see, the Y axis is height, X is east-west and Z north-south. As you can see, the Y axis is height, X is east-west and Z north-south.
  
-==== Voxel cell data setup ====+==== Voxel Data Storage ​====
  
 The engine stores all voxels in 32-bit signed ( Java won't allow unsigned :c ) ints, packed in 32x32x32 cubical chunks, packed themselves in 8x8x8 regions.\\ The engine stores all voxels in 32-bit signed ( Java won't allow unsigned :c ) ints, packed in 32x32x32 cubical chunks, packed themselves in 8x8x8 regions.\\
-\\+ 
 +{{ ::​voxel_bits.png?​nolink |}} 
 These ints are composed as : 0xMMBSIIII\\ These ints are composed as : 0xMMBSIIII\\
-\\+
 0->​15 ​ 16-bit I block**I**D,​ allowing for 65536 different blocks types\\ 0->​15 ​ 16-bit I block**I**D,​ allowing for 65536 different blocks types\\
 16->19 4-bit  S Sun light from the sun\\ 16->19 4-bit  S Sun light from the sun\\
 20->23 4-bit  B Block light, "​yellowish"​ light from torches etc\\ 20->23 4-bit  B Block light, "​yellowish"​ light from torches etc\\
 24->31 8-bit  M 8-bit metadata, extended from 4 bits in previous file formats revisions 24->31 8-bit  M 8-bit metadata, extended from 4 bits in previous file formats revisions
general_information.txt · Last modified: 2018/01/25 11:43 by gobrosse