Game Development Community

SgGuiFullScreenFilter

by Howard Dortch · in Torque Game Engine · 06/28/2007 (8:03 am) · 4 replies

In version 1.4 I used this for a fade. I have upgraded to 1.5 and added the bonus files. This is no longer available for 1.5 what do I replace it with?

VERSION 1.4 in Playgui.gui

new sgGuiFullScreenFilter(filter) {
Profile = "GuiDefaultProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
Visible = "0";
sgExposure = "0.5 0.5 0.5 1";
};

I tried to use sgMissionLightingFilter but says it failed to instanciate. Is this the proper replacement?

#1
06/28/2007 (8:08 am)
I don't own 1.5 however I believe the fullscreen filter was taken out. The lighting filter is not the same thing and won't do what you're after.

You could either re-add the fullscreen filter or use the setBlackout method:
// Fade in from black
   serverConnection.setBlackout(true, 0);
   serverConnection.schedule(1000, setBlackout, false, 1000);
Season to taste.
#2
06/29/2007 (6:51 am)
I dont want a fade to or from black, the design fades to 50% alpha
I can't believe he took out the function but perhappes renamed it?
#3
06/29/2007 (7:11 am)
No he took it out; I read it on these forums somewhere.
#4
06/30/2007 (8:04 pm)
That code was remove during the cleanup between TLK 1.4.x and TGE 1.5. I think it was even commented out in TLK 1.4.x, a sort of hidden feature. :)

I'm guessing you can copy the code over to TGE 1.5 with minor changes to any code referencing the light manager.