Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / SET GAMMA problems

Author
Message
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Mar 2003 18:13
Simply put, I cannot get the SET GAMMA command to work at all!

There must be some condition (ie. SET GAMMA only works at certain times)

In THE LAB demo for example, the SET GAMMA fade to black (which is what I am trying to do) works fine when it happens after the demo has been run - however it does not work if you click the EXIT button on the launch screen, and it is supposed to fade out when you click EXIT on the launch screen. Any ideas?
NOBODY has a forum name as stupid as Darth Shader. I do.
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 1st Mar 2003 19:41
It doesn't work if you click exit because at that point the demo is still running in a Window.

It needs to be in full-screen to operate (you cannot control the gamma of the whole video card if you're running in a Window! that's just not cricket)

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st Mar 2003 20:00
Well, I find it works fine in the Lab demo but never in my projects!

I've yet to get it to work!

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 1st Mar 2003 20:02
Your project needs to be running in full-screen exclusive. Anything else and it doesn't work for reasons just explained.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 2nd Mar 2003 03:01
Doh! - That was really stupid of me! - Any suggestions on how I can get it to work well in Windowed mode? I tried both the FADE BITMAP (too slow) and DB2DWIPES dll methods (doesn't work on many PCs) but haven't been able to get any really good results.

NOBODY has a forum name as stupid as Darth Shader. I do.
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Mar 2003 14:26
You can't change the gamma in window mode so as you've recognised you'll need to try a different approach. I can think of a few - fade bitmap would work if pre-calculated (might not be possible), the best one would be to grab the screen to a memblock, lower each pixel colour value and write it out again (loop until black) - this will work and is faster than it first appears. Finally you can place an object directly infront of the camera that is black and set its alpha channel so it fades out nicely.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 2nd Mar 2003 17:10
"Finally you can place an object directly infront of the camera that is black and set its alpha channel so it fades out nicely."

But of course we can't control the alpha properly on objects yet, Lee aparently hasn't discovered that byte of the diffuse colour

NOBODY has a forum name as stupid as Darth Shader. I do.

Login to post a reply

Server time is: 2025-05-18 16:07:25
Your offset time is: 2025-05-18 16:07:25