Game Development Community

Adding a rug "decal"?

by Steve Howson · in Torque Game Engine · 05/18/2006 (12:15 pm) · 2 replies

Hi all.
I searched in the forums for this, but don't really know the terminology for it, so I wasn't able to find anything.

I'm using Hammer to create the levels for a small game I'm making. I know about the license agreement, but this game is for learning purposes and if I release it it'll be for free.

Anyway, I created a room and want to add a rug to it.
I have a jpg of a rug I'd like to use, but just not sure how to add it.

I added the jpg to the WAD I used in Hammer and saw the decal option in Hammer, but am having trouble figuring out how to do it.
Is it better, or is there a way, to do this within Torque itself? If so how would I go about doing that?

I basically just want to drop the jpg in the middle of the floor so it looks like an area rug.

Hope that makes sense..
Thanks for any info!

#1
05/18/2006 (12:32 pm)
It might be easier to make a thin brush with the rug texture on it than to try and make a decal, AFAIK TGE does not have built-in support for projecting decals onto the surfaces of interior objects. Either way, good luck to you =)
#2
05/18/2006 (1:20 pm)
Thanks a lot.
I had actually tried the thin brush method after I posted this.. made about a 1 unit brush the size of the rug and then scaled and shifted the rug texture.. turned out pretty well.