Loading Quake 3 Map Files
Hi I have looked at the offical Quake 3 map spec and it says that all 4-byte integer''s are little-endian. I don''t no what this means.
I cannot understand the BSP file. I know that the first three bytes is the identifier(IBSP) and that the 2E byte represents the version number so we have:
49 42 53 50 2E (00 00 00 CB) (53 23 00 C4)
I am not sure about the parts in the brackets!! I think that the first four bytes in brackets represent the first offset of the lump to jump to and the next four bytes represent the size of the lump. The only problem is when you travel 203 bytes into the BSP file you don''t get the correct data for the first lump which is suppose to be the entity lump. Also 53 23 00 C4 in decimal is: 1394802884 this is suppose to be the length of the lump and that is ovbiously way too large. Am I readinng the 4-byte little endian integer ok from the file??
Any help would be aprreciated, Has anyone else read these damn files. Is it possible to just read the vertacie data for the level without having to compile there BSP structure and code PVS?. I have tried coding a .MAP compiler and was told that it''s much simpler to use the verticie data included in the BSP file
Thanks for your help
~Steve~
July 09, 2001 12:54 PM
Try these two URLs :
http://nate.scuzzy.net/programming/tools/bspconv/
http://jratcliff.flipcode.com/ (Near the bottom of the page)
http://nate.scuzzy.net/programming/tools/bspconv/
http://jratcliff.flipcode.com/ (Near the bottom of the page)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement