Can TGE download a texture from a web server?
by Nmuta Jones · in Torque Game Engine · 04/11/2008 (4:22 am) · 5 replies
I'm sure it could if I modify the head, but is there anything I can do scripting wise to allow the game to download a few new textures from a web server once the game has started?
For example, I have a billboard on a highway. I want to allow the billboard to download a its texture from a web server and deposit in in a dedicated folder on the user's system (pending their approval, of course). This will allow the texture to change as I see fit without people having to download a new version of the game in order for that to happen.
Can I accomplish this with scripting?
For example, I have a billboard on a highway. I want to allow the billboard to download a its texture from a web server and deposit in in a dedicated folder on the user's system (pending their approval, of course). This will allow the texture to change as I see fit without people having to download a new version of the game in order for that to happen.
Can I accomplish this with scripting?
About the author
Lead Developer for MediaBreeze Multimedia
#2
We are using a heavily modified version of the http updater that came with the torque in a browser plugin -- I've been meaning to turn it into a resource, but just haven't had time to do so. If you want I'll be happy to email you what I've got in the meantime, just let me know.
04/11/2008 (6:32 am)
There are actually some resources here that build on the TCP object in torque to do simple http transfer. lib curl is great if you need to deal with SSL, automatic redirects, proxies, or any of those things, but it's overkill for just downloading a file from a web server.We are using a heavily modified version of the http updater that came with the torque in a browser plugin -- I've been meaning to turn it into a resource, but just haven't had time to do so. If you want I'll be happy to email you what I've got in the meantime, just let me know.
#3
ED.....YES....I am very interested. you can email me at nmuta1@gmail.com
04/11/2008 (7:25 am)
Dave, thanks.... looking into libcurlED.....YES....I am very interested. you can email me at nmuta1@gmail.com
#4
04/11/2008 (8:12 am)
I helped write one of those resources so am familiar with it and other transfer means. I even wrote an svn client based updater. The downside to me was the transfer speed and the performance. Since I've gone with libcurl many more opportunities have opened up, the big upside for me being it runs in a non-blocking way allowinf speedy transfers while anything else is going on, including mission loading, etc. I haven't seen the transfer method used with the browser plugin though!
#5
04/11/2008 (12:00 pm)
Dave, then yes, libcurl sounds good. What do you mean by non -blocking...are you saying it throws up fewer red flags to the user that a file transfer needs to be authorized? All I need to transfer are some low res textures....maybe a low poly model... but not much.
Torque 3D Owner Dave Young
Dave Young Games