Game Development Community

Showing a GUI on a 3D Object

by Brian Jansen · in Torque Game Engine · 06/29/2007 (10:55 am) · 7 replies

OK, I am working on a game and I need to have a video showing on a tv screen in the game. Is it possible to show a video or even a GUI on an in game object? I was thinking if there wasn't already a method of doing this it may be possible to edit something the GUI that shows the player names above players. Thanks in advance and any help would be....helpful.

#1
06/29/2007 (11:01 am)
Absolutely this is possible. There's an existing resource that will do this. I can't remember the exact name of it, but if you search for GUI on 3D object, or GUI on object you should be able to find it.
#2
06/29/2007 (11:19 am)
The resource Scott is thinking of will most likely be a TGEA only resource, if memory serves me correctly. However, this resource is based on the dynamic texture object capability already found in stock TGE. Let me do a quick search to find out. . .
#3
06/29/2007 (11:29 am)
Check here

This a good resource that shows the usage of a Dynamic Texture Object. Which is the TGE solution for your project.

Yup, I found the stock engine files which are: engine\dgl\gDynamicTexture.cc and engine\dgl\gDynamicTexture.h.

That's your starting point =)
#4
06/29/2007 (11:41 am)
Thanks, will this allow GUI's also like this resource does?
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10899
#5
06/29/2007 (11:47 am)
You might have to make some code changes to get the guiTextureControl behavior found in the TGEA resource. Just depends on how much interaction you need.
#6
06/29/2007 (11:58 am)
I don't have TGEA but thanks for finding that resource for me.
#7
07/13/2007 (12:11 am)
If your players don't need to interact with the TV you could use IFL animation on the television.