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.

3 Dimensional Chat / Ideas how to load/unload objects with distance?

Author
Message
Genesis Rage
22
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 22nd Mar 2004 11:19
trying to make a way that a player will only see a loading screen when they first load the game... then all the objects of the world will load/unload when they get to be a certain distace...

like a sphere around the character... objects in the sphere are loaded... objects outside are not loaded...

have a start i think... but really dont have any idea how this could be done... or even if it could... any comments would be appreciated


P4 3.5 GHz HT, 1 GHz FSB, 1 GB PC4000, ATI Radeon 9800XT
Bangla
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Sweden
Posted: 22nd Mar 2004 11:44
You could try to get all the object-ID's into an array and from time to time go through it and measure distance from the player to the object and unload them when appropriate. But then you require to have some sort of dummys to exchange for the object when the objects should appear again. If you build your own map-structure it could be done without too much hassle.

This thread is a little missplaced, you might get more responces in the others.

2,4 Ghz, 1 Gig, gForce FX 5200 - and then some...
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Mar 2004 12:12
its sort of the wrong forum area to ask the question.

you can use a distance function





or a within visible screen command

OBJECT IN SCREEN
This command will return a value of one if the specified 3D object is wholly or partly visible within the screen
borders, otherwise zero is returned. Even if the object is behind the camera, its overall size may partially clip
the screen area. The parameter should be specified using an integer value.

SYNTAX
Return Integer=OBJECT IN SCREEN(Object Number)


Login to post a reply

Server time is: 2026-07-06 12:45:26
Your offset time is: 2026-07-06 12:45:26