02-09-2014, 05:42 AM
(This post was last modified: 02-09-2014, 05:42 AM by daniel0916.)
The currently biggest problem is the encoding from x,y,z to Position.
Current Code:
Current Code:
void WritePosition(int x, int y, int z)
{
Int64 encoded_x = (x & 0x3FFFFFF) << 38;
Int64 encoded_y = (y & 0xFFF) << 26;
Int64 encoded_z = (z & 0x3FFFFFF);
Int64 value = encoded_x | encoded_y | encoded_z;
m_Out.WriteBEInt64(value);
}

