No terrain, No Sky, background picture.
by Edinson Mejia · in Torque Game Engine · 03/14/2010 (5:53 pm) · 6 replies
I was searching before open this topic but I was not able to find any relevant.
This is a simple question, I know that I can delete terrain and sky, this give to me an black background, the question is:
Can I specify a picture to render as background just like in GUI?
This is because in my game I don't need (terrain,sky) only one Shape on the scene and GUI Elements...
This is a picture to show the idea, in this case the blue shape will be my only 3D element, and I want to put the picture behind as a background (eliminating terrain and sky)

This is a simple question, I know that I can delete terrain and sky, this give to me an black background, the question is:
Can I specify a picture to render as background just like in GUI?
This is because in my game I don't need (terrain,sky) only one Shape on the scene and GUI Elements...
This is a picture to show the idea, in this case the blue shape will be my only 3D element, and I want to put the picture behind as a background (eliminating terrain and sky)

#2
03/14/2010 (7:10 pm)
I try but does not look flat as in the image I want a 2D flat background but using skybox you see a 3D effect and can't achieve the same look
#3
Actually, the best way to do this *is* through the GUI. Simply put a GuiBitmapCtrl in the background and let the GameTSCtrl render on top of it.
03/15/2010 (12:42 am)
Actually, the best way to do this *is* through the GUI. Simply put a GuiBitmapCtrl in the background and let the GameTSCtrl render on top of it.
#4
Put a background image on PlayGui and create a GameTSCtrl over it, however I can notice that the mission itself is still in background playing exactly the same that my GameTSCtrl object, this no generate performance problems?
Thanks =)
03/15/2010 (9:03 am)
Hey Rene thats exactly what I need, what I did was:Put a background image on PlayGui and create a GameTSCtrl over it, however I can notice that the mission itself is still in background playing exactly the same that my GameTSCtrl object, this no generate performance problems?
Thanks =)
#5
The default PlayGui *is* a GameTSCtrl so for the arrangement here, this would need to be changed. Simply turn PlayGui into a GuiBitmapCtrl (easily done by changing the class in script) and then place a new GameTSCtrl on the it.
Having a GameTSCtrl in the background will add another scene render and eat performance.
03/15/2010 (9:13 am)
The default PlayGui *is* a GameTSCtrl so for the arrangement here, this would need to be changed. Simply turn PlayGui into a GuiBitmapCtrl (easily done by changing the class in script) and then place a new GameTSCtrl on the it.
Having a GameTSCtrl in the background will add another scene render and eat performance.
#6
03/15/2010 (12:34 pm)
I get it, thanks Rene this is perfect =)
Associate Steve Acaster
[YorkshireRifles.com]