Game Development Community

What's the best way to do this...

by Thomas Shaw · in Torque Game Engine · 07/22/2007 (12:40 pm) · 0 replies

Hi everyone.

I need to come up with a method to replace certain textures in the level, through a GUI.

Here's the deal:
I have signed an NDA, so i have to be cryptic about certain things. I have a level in TGE1.5, that has places for potential "sponsors" to place their logos etc. Typically these are roadside billboards or signs on fences etc.

I need to create an easy-to-use system for easily swapping out the textures of those signs with new ones. For example, a company would provide a logo (hopefully already designed with the "power of 2" in mind) and a person not familiar with torque, scripting, coding, or 3d, will be able to open a window in the GUI, select the new logo and pop it onto a specific billboard or level area.

So, I'm at the phase where I can't decide where to begin -
Do I attempt to modify the "swappable textures for players" resource? It's language is so player oriented that It is a little hard to sort through what's relevant and what's not.

At, first, I was thinking that just overwriting the texture in the objects folder would be easiest, but it also has the potential for confusion, since the texture would always have to have the same name. You wouldn't be able to tell from just looking at files whether you had a coke logo or a pepsi logo on something. Plus, overwriting files is prone to the possibility of deleting something you might need later.

So, if you are willing, I need some ideas on how to implement something like this. Plus, you might make me realize some consideration I hadn't thought of before.

Thanks, in advance, for your help.