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.

DarkBASIC Discussion / Level Loading

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 8th Oct 2005 23:07
Ok I'm making a city level for my game. Will be a pretty big city, and the buildings that are important to the game's story line I plan on putting a lot of detail in, the less important buildings that will be in it just for visual purposes like misc skyscrapers and what not will not have as much detail. My question is what will make the game run fastest.

Saving the whole level as one big model and loading it into the game?
or Loading in each building separate into the game?

I know that one thing I can do from what I understand is to only have the buildings within view drawn on the screen. i donno If i can do that if it is one big model or not?

any ideas that may help me and an answer to my question would be greatly appreciated.

Thanks

Gowmars
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 9th Oct 2005 04:20
Gowmars,

If you make the city a single model or not, you will be able to hide each object(limb) seperate from the other. If the city is a single model, then use HIDE LIMB Object Number, Limb Number to hide each object. As seperate models, then use HIDE OBJECT Object Number.

As far as speed goes, I am not too sure. But, I belive there would be no noticable difference either way.



+NanoBrain+
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 9th Oct 2005 04:39
if u made each one a .x, you could just hide the object and not mess with limbs

verydevastating.com
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 9th Oct 2005 21:24 Edited at: 9th Oct 2005 21:24
Thanks for the input. If it doesn't make a noticeable difference, ill just load them sperate so I can hide object. of course that means that insead of just putting

load object "city.x",1

im going to have to load every building, and put coodinace for every building. But it would be out side of the main loop, so I guess that means it shouldn't add any extra work to the processor during the game play right?
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 9th Oct 2005 21:36
Gowmars,

No, it will not be extra work for the processor. However, using seperate models, you have to load each object, creating extra work for you.



+NanoBrain+
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 9th Oct 2005 23:45
it'd probly be worth it tho. and it's not that bad. to make all the different buildings all in the right place, just make your whole city, then save it as a diff name (like city1,city2,city3) for each building. then delete everythign but one component of your city for each one. you'll have to write a loading script the size of the latest harry potter book unless u can use strings for parts of filenames, but it could be worse.

and this way, everythings exactly where it would be if u loaded the whole city as one object.

good luck

verydevastating.com
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 10th Oct 2005 08:07
Thanks for the help guys ^^

Login to post a reply

Server time is: 2025-05-22 17:14:19
Your offset time is: 2025-05-22 17:14:19