Q3 Entity Extractor
Q3 Entity Extractor
Hi Irrlichters
I needed to extract the entities from a Quake 3 BSP file. I heard of a project from plummi, but it had not been updated for a whole year. This is why I built my own extractor instead of sleeping last night .
What this utility does is fetching every entities from a BSP/MAP file and give them to a parser. Each parser implements the same interface. This way you can easily add your own parser to the project in a matter of minutes. I wrote a standard BSP, a CSV and an XML parser in less than half an hour!
This project is written in C# so you will need the .NET platform to run it. All comments will be greatly appreciated. If you have a question don't hesitate.
The project binaries and source code are located there :
http://www.istop.com/~alexandre/
I needed to extract the entities from a Quake 3 BSP file. I heard of a project from plummi, but it had not been updated for a whole year. This is why I built my own extractor instead of sleeping last night .
What this utility does is fetching every entities from a BSP/MAP file and give them to a parser. Each parser implements the same interface. This way you can easily add your own parser to the project in a matter of minutes. I wrote a standard BSP, a CSV and an XML parser in less than half an hour!
This project is written in C# so you will need the .NET platform to run it. All comments will be greatly appreciated. If you have a question don't hesitate.
The project binaries and source code are located there :
http://www.istop.com/~alexandre/
Last edited by eXodus on Sat Jan 15, 2005 8:54 am, edited 3 times in total.
yeah thats really great... I've waited for such a usefull programm very long... really thanks alot !!
Arena of Honor: http://aoh.arturh.com
Might I know what bsp compiler you're using for your maps? Because there shouldn't be any difference between entities.
So far, I'm sure that it works with Radiant and Quark files. I also tested it with irrq3.bsp from your VT and it worked fine.
Give a look to your bsp file and check what entities are in there.
So far, I'm sure that it works with Radiant and Quark files. I also tested it with irrq3.bsp from your VT and it worked fine.
Give a look to your bsp file and check what entities are in there.
Unfortunately, "light" entities aren't present in BSP files. The reason I created this extractor was to place my custom entities (like particle systems) while mapping and create them at runtime with Irrlicht.
I looked at MAP files and they DO contain the "light" entities. Perhaps it would come in handy to rewrite my utility to read from MAP files instead! I think I'll do that right now and repost once updated.
Thanks for the feedback!
I looked at MAP files and they DO contain the "light" entities. Perhaps it would come in handy to rewrite my utility to read from MAP files instead! I think I'll do that right now and repost once updated.
Thanks for the feedback!
As requested I included support to read from MAP files.
The loaders should be more robust now. The formatting of the entities isn't as strict as in the first version.
You can find the latest release on this page :
http://www.istop.com/~alexandre/
The loaders should be more robust now. The formatting of the entities isn't as strict as in the first version.
You can find the latest release on this page :
http://www.istop.com/~alexandre/