Porting Graphics from OpenGL Buffer
by Carpenter Software · in Torque Game Engine · 07/25/2006 (10:06 pm) · 7 replies
Curious - IS it possible to load a graphics from an openGL Buffer to the LoadingGUI instead of the background.png? In starterFPS I want to copy the buffer (the moment before loading a new mission) and use it as the background when loading a new mission.
Jesse
Jesse
#2
07/26/2006 (2:00 pm)
Could just have your script take a screenshot when the player ends the current mission and set the background bitmap's filepath to be that just generated screenshot. Shouldn't be too hard.
#3
Is the name of the command "screenshot"?
Ohh I found - screenshot.cs - I'll take a look at it.
07/26/2006 (2:34 pm)
Thanks ChrisIs the name of the command "screenshot"?
Ohh I found - screenshot.cs - I'll take a look at it.
#4
you might also look into storing the bitmap from the screenshot in memory or assigning it to the LoadingGUI directly instead of sending it out to disk and bringing it back in.
07/26/2006 (3:16 pm)
Jesse -you might also look into storing the bitmap from the screenshot in memory or assigning it to the LoadingGUI directly instead of sending it out to disk and bringing it back in.
#5
Thanks Orion
Jesse
07/26/2006 (5:47 pm)
Yes - you are correct in order to save time. There is a GBitmap * bitmap in the console function screenShot. I may have to use this if I cannot find any other method to use. Thanks Orion
Jesse
#6
I used screenShot to create a png file. The function rewrites over the old file which is by the way what I wanted. So each time as I cross the missionArea, the loadingGUI places the appropiate background while loading the next mission. I am happy because this is workable for me. Here comes "Adventure" game. The only problem is the initial loadingGUI is a white screen (blank background except the loading dialog is OK). Not sure what is happening there. Once I get this done I am finished playing with the missionArea and terrain.
I only wrote 3 routines and a couple of global variables to have a multi-mission game. TGE is OK.
Jesse.
07/27/2006 (10:30 pm)
@ChrisI used screenShot to create a png file. The function rewrites over the old file which is by the way what I wanted. So each time as I cross the missionArea, the loadingGUI places the appropiate background while loading the next mission. I am happy because this is workable for me. Here comes "Adventure" game. The only problem is the initial loadingGUI is a white screen (blank background except the loading dialog is OK). Not sure what is happening there. Once I get this done I am finished playing with the missionArea and terrain.
I only wrote 3 routines and a couple of global variables to have a multi-mission game. TGE is OK.
Jesse.
#7
If you include a screenshot in your directory the first time through, then it won't be white.
Of coz, I'm just guessing, but that's my thoughts on it.
07/28/2006 (11:14 am)
I'd think that it would only be a white screen the very first time the game was run, though... after that, it's be the last screenshot that was taken.If you include a screenshot in your directory the first time through, then it won't be white.
Of coz, I'm just guessing, but that's my thoughts on it.
Torque Owner Carpenter Software
Jesse.