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 Professional Discussion / Dynamic Models Via Cache?

Author
Message
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 13th Aug 2005 08:06
Im working on a project right now that would need the ability to have dynamic in-game models. Basically, so i could specify a folder online http://bla.com/models/ and then when you walk through this 3d app, instead of first loading models before rendering the scene, it would load the 3d models from the web as you look at them, then somehow store the information in a cache folder for faster loading later. Basically like many of those virtual worlds i see online do.

If you understood what im going for, is there anyway at all to accomplish this?

mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 13th Aug 2005 16:08
use ftp to download the files to a folder within the game's folder, that's you're "cache". ftp is fairly simple to use and if you don't like dbp's then use the execute file command or whatever it's called and just use ftp that way (or write a batch script or something like that to run).

http://www.larinar.tk
AMD athlon 64 3000+, 512mb ddr400, abit kv8, 160gb hdd, gigabit lan, ati radeon 9800se 128mb.
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 13th Aug 2005 20:28
ok, that's a good idea , is there anyway of "hiding" these models other than buring them deepin folders? Cause i don't want to fill a folder up with tons of visible models...

Xolatron old
21
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 13th Aug 2005 22:30 Edited at: 13th Aug 2005 22:30
Just delete them at the end of the program. Optionally, you could open them all with open file so that other programs can't access them while they exist. Also, I usually pack them into a pack file with the DBpro commands and unpack them on runtime.

Good luck,

-Xol

Login to post a reply

Server time is: 2025-06-05 11:10:13
Your offset time is: 2025-06-05 11:10:13