Game Development Community

Downloading shapes off of server?

by Neil Marshall · in Torque Game Engine · 07/24/2005 (1:16 pm) · 2 replies

I want to allow the user to place any number of shapes in the scene while the game is playing, but I don't want to have a huge download the first time they try to play the game. So what I need to do is check to see if the model exists locally and if not, connect to the remote server and download it/it's texturemaps.

I think it downloads the models when the mission starts, but I want it to happen while in game (I still have to test model downloads at the start of missions)

Has anyone else done this yet? Anyone know of any useful code snippits for doing this that may already exist? I haven't been much.

#1
07/25/2005 (1:04 pm)
Can be done, but the implications are kinda gross as it works by simply using the existing event/update streams - meaning a download can starve updates!

You'll have to examine the existing file streaming code and figure out how you want to extend it to get what you want. This probably a non trivial task, though most of the hard parts are non-Torque-specific.
#2
07/25/2005 (7:55 pm)
Sigh. Oh well, I've gotta do it.