Forum archive
Voxel Level File Format
- Ken,
I was wondering... do you have any documents on the .vxl file format I could download? It'd be interesting to toy around with the files to see what happens but it acted really strange last time I tried that since I don't know that overall format.
It wouldn't happen to just by an array of size 1024 * 1024 * 256 copied directly to a file would it? :wink: - I just posted a new document here. Look for VXLFORM.TXT.
- Ok that pseudo code is just plain confusing. I managed to figure out from it though what the first 110 bytes do. The part that gets me is the data for the voxels.
How is voxel data actually stored? Are they stored in the form of:
red 8bits - green 8bits - blue 8bits - something that appears to be solidity 8bits - I can see this conversation going on for a long time. Sorry, but I don't have time to explain the algorithm from scratch. If you know C, then you can plug that code (between the hyphens) directly into your application. If you are using another language, then my apologies - just be happy that the code snippet is short!
- Thank you for posting your code, Ken. I'll try to load your Voxlap Maps with my slow-as-hell DirectX Voxel Engine. :)
@Frobozz: The Maps aren't stored in a Raw format cause a Map of 1024*1024*256 would be like 270MB big (if each voxel is saved in 1 Byte). I'll try to use this with .Net, mabe i could help you with it after i figured out how it works exactly. - hey man thank you soo much!