Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Getting rid of the terrain

Author
Message
Christian B
18
Years of Service
User Offline
Joined: 12th Jan 2006
Location: Montreal, Canada
Posted: 25th Jan 2006 03:00
Ok before I got in too deep in game development I wanted to create classes that would be tidy and memory efficient. The plan calls for some streaming during game time, so some objects will load mid-mission, some will be deleted etc. Same goes for terrain. But I can't seem to be able to get rid of and reload a terrain meash. Here's a bit of code that crashes(lifted from the terrain sample, but with added deletion and re-building)

Any idea if there's a proper way to flush the terrain from memory and eventually re-use it?

---
http://christianboutin.com
Smithy
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 25th Jan 2006 09:37
Sorry Christian B...
The "SOURCE"-button functions seems broken,
please use the "code"-tag.
(When I press the button I only see a page telling me
"Error obtaining Source Code, invalid ID. Sorry but I've given up.", this is broken for quite some time I think so nevermind, just post the source within "code" tag.

//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled";VC++7.net;Delphi6;ADSL512;
Christian B
18
Years of Service
User Offline
Joined: 12th Jan 2006
Location: Montreal, Canada
Posted: 25th Jan 2006 13:43
Here it is :



---
http://christianboutin.com
Christian B
18
Years of Service
User Offline
Joined: 12th Jan 2006
Location: Montreal, Canada
Posted: 29th Jan 2006 16:27
Anyone? Is the code I posted supposed to work? Am I not freeing the terrain correctly? Any help would be appreciated.

---
http://christianboutin.com

Login to post a reply

Server time is: 2024-11-19 04:24:22
Your offset time is: 2024-11-19 04:24:22