Sign in to follow this  
Vincent_M

Loading DOOM 3 Levels

Recommended Posts

Vincent_M    969
I'm writing some code that compiles OBJ files into octrees or BSP trees that my engine can use in frustum culling. I'd like to develop my octree using a DOOM 3 map as a test map. Is there any way I can convert a DOOM 3 map into an OBJ model file?

If not, does anyone know of any other games I could do this with?

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='Vincent_M' timestamp='1310630965' post='4835160']
I'm writing some code that compiles OBJ files into octrees or BSP trees that my engine can use in frustum culling. I'd like to develop my octree using a DOOM 3 map as a test map. Is there any way I can convert a DOOM 3 map into an OBJ model file?

If not, does anyone know of any other games I could do this with?
[/quote]

You can export Half Life 2 maps to obj files pretty easy with [url="http://nemesis.thewavelength.net/index.php?p=45"]crafty[/url]. However, you will probably have to manually remove the hit boxes from the levels as they are exported along side the mesh data for whatever reason...

Share this post


Link to post
Share on other sites
Vincent_M    969
Crafty pulled up the maps! Unfortunately, the textures aren't coming up, and so, they aren't included with the OBJ file's material library. Any ideas on how to fix that?

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='Vincent_M' timestamp='1310638307' post='4835194']
Crafty pulled up the maps! Unfortunately, the textures aren't coming up, and so, they aren't included with the OBJ file's material library. Any ideas on how to fix that?
[/quote]

It appears to be a small bug in the object viewer but it's easily remedied. Just select the Half life 2 profile in Setup->Profiles menu and then close the object viewer. Start the object viewer back up and it will work.

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='Vincent_M' timestamp='1310686480' post='4835480']
I selected Half-Life 2, but it's still not working. I'll reinstall it
[/quote]

You need to exit the object viewer after selecting half life 2 then when you start it back up and reload the map it will work.

Share this post


Link to post
Share on other sites
Vincent_M    969
I was able to solve the problem. I found a wiki article online that explains how to setup Crafty's file manager by mounting the root folder.

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='Vincent_M' timestamp='1310806631' post='4835928']
I was able to solve the problem. I found a wiki article online that explains how to setup Crafty's file manager by mounting the root folder.
[/quote]

Bsp files have the textures packed into them. I'm pretty sure mounting the root folder was not what resolved the issue since I can load the bsp files in a completely separate location without any problems.

Share this post


Link to post
Share on other sites
Vincent_M    969
I thought the textures in the BSP were just references to textures outside of the file. It would make sense though since it'd be faster loading all from one file stream though. Especially if the textures weren't shared between maps.

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='Vincent_M' timestamp='1310876798' post='4836250']
I thought the textures in the BSP were just references to textures outside of the file. It would make sense though since it'd be faster loading all from one file stream though. Especially if the textures weren't shared between maps.
[/quote]

Mount a bsp file and you will see it's structure. The textures are included in each bsp file. Your problem was likely resolved when you selected the half life 2 profile but you didn't restart the object browser which is the reason after you came back and mounted the root folder it worked.

Share this post


Link to post
Share on other sites
WiredCat    1452
doom 3 level files are map files - you can open them by gtk radiant 1.5.0? just select all data and copy to windows clipboard:]

then open gtkk radniat for different kind of game and paste the world data - change textures etc compile to bsp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this