Game Development Community

Screen gone black, shaders?

by PuG · in Torque Game Engine Advanced · 12/02/2007 (2:44 am) · 6 replies

Hi, for some reason with the following enabled the screen goes pitch black:

useBloom
useDynamicRange

I assume this is shader or lighting related - it was working, and im not sure when it stopped as I can't remeber when I last checked it. I could roll back on SVN but was wondering if any of you might know where I could track it down from? or any suggestions on the cause.

Regards!

#1
12/02/2007 (6:39 am)
Driver update that borked it?
#2
12/02/2007 (8:23 am)
Ive tested the original demo build and it works... ive not adjusted anything directly todo with the shaders lighting over the last month, so why its suddenly gone ive got no idea :(
#3
12/02/2007 (10:09 am)
There is a lot that might play in. Unless your card is an 8800GTX your resources GPU wise are restricted.
What exactly did you modify/work on?
#4
12/02/2007 (2:11 pm)
Ive not worked on anything related to scripts, accept swapped out some terrain files. I think what im going to have to do is back date on SVN :( pretty strange though. X800 Rad.

Regards,
#5
12/02/2007 (11:33 pm)
As mentioned above, I would assume that it is more of a driver issue as I assume that you upgraded from your old catalyst to a newer one.

depending on the settings this might break the stuff.
#6
12/04/2007 (8:14 am)
Pug,
ensure you have "Dinamic Range Lighting" enabled and change this file shaders\lightingSystem\DRLShaderP.hlsl :

find this line : float4 framecol = tex2D(frame, IN.TEX0);
and change it to this : float4 framecol = tex2D(frame, IN.TEX0)*0.3;

you will get the darkness you want :)