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 / Fading a picture (it`s so damn slow)

Author
Message
firestarter
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: Norway
Posted: 31st Dec 2002 06:46
I want to fade a picture, but it`s slow. Anyone know an
effective way to do this so the fading gets smooth?

I tried this code but it`s just to slow.

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 31st Dec 2002 13:15
It is very slow - If you want to fade the screen, the easiest way is to get the screen as a sprite and fade that. Why, I've got just a routine on my web site.

If you just want to fade a bitmap, then you'll have to wait to see if they can speed it up.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 16:04
Coudn't u just reduce the gamma color in a for next loop?

I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 31st Dec 2002 16:10
Doesn't work on all machines, although that would be the prefered solution.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 16:21


I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 17:29
how about making lots of frames of the same pic with diferents colors and draw them to the front buffer in sequence creating a fake hard coded fade

I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 31st Dec 2002 17:31
i'd make a DLL and use that instead ... infact if you download 1.13 Extras for DB then there is one in there for use

Anata aru kowagaru no watashi!
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 17:34
Raven U back to UK

I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 31st Dec 2002 18:29
for a while... unfortunately for the most part cause of the reasons - but kinda happy cause i've missed not being here

Anata aru kowagaru no watashi!
Raven Vegeta
21
Years of Service
User Offline
Joined: 14th Dec 2002
Location: United Kingdom
Posted: 31st Dec 2002 18:50
That's cool Now we can set a match on Street Fighter or Jedi Knight without lag
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 31st Dec 2002 19:57
nani?

Anata aru kowagaru no watashi!
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 19:58
I think I've played Jedi Knight once with Raven He posted a server here long ago. Street Fighter... lol...

I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 31st Dec 2002 19:59
nani?

hahahah I think u have an old girlfriend following u raven...

I don't suffer from insanity, I enjoy every minute of it!"
-- Rogue
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 31st Dec 2002 20:05
ya know... funnily enough the bitter attitude kinda makes me wonder
most peoples have played against me on JK and JK2 ... just as many have beaten me, on 300ping and strikes upto pure chance lol isn't that hard, specially since Marcus bloody altered AdminMod AGAIN ho hum, my current stats are like one match every 20 ack which is aweful

should practise more, eh - got the free time now i suppose lol

Anata aru kowagaru no watashi!
firestarter
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: Norway
Posted: 1st Jan 2003 02:11
Rogue: Gamma is a solution, but i have to know what cards it works on. It worked on my Geforce 2 mx.
But i also wanna have the possibility to have effects above the picture that should not be faded when the picture fades.

Raven Vegeta: Where can i download 1.13 Extras for DB?


Happy new year folks!

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 2nd Jan 2003 12:43
I can't remember which

Anata aru kowagaru no watashi!
Hubdule
21
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 2nd Jan 2003 16:03
create the image as sprite ...
then use set sprite alpha !
worked for me in my little christmas demo

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Jan 2003 16:38
Thats what I said to start with...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 2nd Jan 2003 18:54
he'll use whichever he prefers ... best to give a choice

Anata aru kowagaru no watashi!
firestarter
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: Norway
Posted: 2nd Jan 2003 21:33
MrTatoad: Ok, from now on i will listen to you, thanks

I`m so sluggish..

Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 3rd Jan 2003 01:53
Hi guys just a lil piece of related info for you, sorry I'm late the set gamma commands worked well full screen in DB1 so long as it was in full screen. It didn't work in windowed mode which I attributed to being to do with not changing the gamma of the entire windows desktop. Thats probably also why it only works in DBPro under Full screen exclusive mode NOT full screen windowed. Unfortunately most people I think use the full screen windowed version as it is far more efficient, so therefore the easiest way to do it without an external plugin is to capture the screen, make a sprite, and fade that out as has been explained above

* If the apocalypse comes, email me *
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 04:41
Would be good if we could set the refresh rate for full screen exclusive mode - that way it would be as fast as the windowed mode.

Unfortunately, I think its a DX9 only..

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 3rd Jan 2003 11:54
i don't understand why people use that Fullscreen Desktop mode, it looks horrible on my puter cause like i run at 1280x960 and the default render mode is 640x480
which doesn't come up pretty at all

Hey i reckon i could make a nice simple TPF for ya'll to achieve this - just setup a fade to the BackBuffer based on a time given, i dunno.
If anyone wants it i'll make it but lemme know how you'd want to control it.

Anata aru kowagaru no watashi!
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 4th Jan 2003 02:46
Yeah mentioned it before but graphics look kinda rank on my a DBP App. if I use a resolution different to my standard desktop one.

* If the apocalypse comes, email me *

Login to post a reply

Server time is: 2024-05-17 02:48:01
Your offset time is: 2024-05-17 02:48:01