again with the BSP

Posted By: sheefo

again with the BSP - 07/14/11 13:25

I still cannot figure out the BSP data stored in the compiled WMB file format. I could really do with a documentation on the structs stored in the file format.

I'll level with you, help me out here and I will upgrade to A8... deal?

DISCLAMER: This is not a bribe.
Posted By: jcl

Re: again with the BSP - 07/15/11 08:14

I'm lazy, but bribable. I've put the BSP docs on my todo list for the next future.
Posted By: Myrkling

Re: again with the BSP - 07/15/11 09:45

I have a related question: To what extent is the information about the Gamestudio file formats in the Wiki still relevant? Some of them are already dealt with in the manual apparently.
I'm asking because I would like to know if it was better to keep the whole information in the wiki or just refer to the manual instead (where applicable).
Posted By: jcl

Re: again with the BSP - 07/15/11 10:17

The Wiki descriptions are posted by users, so their relevance is not guaranteed - like all information posted on the Wiki. Only the descriptions in the manual are kept up to date.
Posted By: sheefo

Re: again with the BSP - 07/15/11 17:56

Originally Posted By: jcl
I'm lazy, but bribable. I've put the BSP docs on my todo list for the next future.

Thanks! Looks like I'll be upgrading to A8 soon wink
Posted By: sheefo

Re: again with the BSP - 08/05/11 19:53

I will be upgrading to A8 this weekend laugh
Sorry to be a pain, but Please, please, please could you help with with reading the BSP data from the WMP file.

These are the structures I need to know about:
Quote:

bsp_leafs
bsp_nodes
aabb_hulls
bsp_blocks


I have spent lots of time hacking it to find out the structure but I cannot make sense of some things. The code you gave me last time did not work since it contained pointers (which cannot be serialized) and did not match the size of the structures written to the file.

For example:
Code:
// Each leaf is 36 bytes
sizeof(BSP_LEAF) == 36;

// I THINK each node is 40 bytes
sizeof(BSP_NODE) == 40;

// Also each data in bsp_blocks is an unsigned integer
uint32_t bsp_blocks[header.bsp_blocks.length];

// NO IDEA ON aabb_hulls AT ALL!


Posted By: jcl

Re: again with the BSP - 08/08/11 09:55

aabb_hulls is not used in A8, but the 3 other lists are documented now - I've uploaded it here:

http://www.conitec.net/beta/prog_mdlhmp.htm#bsp
© 2024 lite-C Forums