Skip to main content
GameDev.net gamedev.net
🔒 Locked

Loading BSP

Started by Cameron Oct 23, 2001 at 10:10 AM 2 replies 400+ views
Original Post
Cameron
Cameron
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
ChrisE
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)
Author of Power Render (http:/www.powerrender.com)
Cameron
Cameron
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

ChrisE
ChrisE
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)
Author of Power Render (http:/www.powerrender.com)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.