Archived

This topic is now archived and is closed to further replies.

Cameron

Loading BSP

Recommended Posts

Can BSPs load in an out of memory dynamically? e.g. have a BSP building placed down on the terrain in real-time, destroy one having it removed from the level, etc. Thanks in advance

Share this post


Link to post
Share on other sites
Yes. You''ll probably want to load all of the bsp''s in memory first and then just add or destroy instances of them.



Author of Power Render (http:/www.powerrender.com)

Share this post


Link to post
Share on other sites
quote:
Original post by ChrisE
Yes. You''ll probably want to load all of the bsp''s in memory first and then just add or destroy instances of them.



Author of Power Render (http:/www.powerrender.com)


I wouldn''t be able to do that as there is way too many possible BSPs that could be used. It can not all be loaded on memory. I would need to load only those that the player wants to use and remove from memory anything not being used (all in real-time). Is that possible with BSP the same way it can be done with PRO files?

Thanks

Share this post


Link to post
Share on other sites
Yes, but there is the issue of cleaning up textures and materials used by previously loaded BSP''s.

The engine doesn''t delete these when you free a BSP object.
Some textures may be shared between BSP''s so if you blindly free them all it will mess up the BSP''s still loaded.

You can either search through all the objects and find which textures aren''t needed any more, or let DX8 swap out the textures from video ram over time (there will still be system RAM versions taking up memory!)


Author of Power Render (http:/www.powerrender.com)

Share this post


Link to post
Share on other sites