[Win32+ MAXGUI Required] Cool dissolve effect.

BlitzMax Forums/BlitzMax Programming/[Win32+ MAXGUI Required] Cool dissolve effect.

Damien Sturdy(Posted 2007) [#1]
Hi all,

I'm getting mixed results with the below (rather messy) code.Errors cropping up on older systems.

Could you all give this code a try, let me know any findings? :) it works fine on my machine and I can't track the problem. I'm thinking its the clipboard code- (To the person who sent me this code: I lost your email, thanks for the code!)




WendellM(Posted 2007) [#2]
Won't even compile here (specs in sig). Is this more than one program stuck together or something? As currently written, there's an End on line 76 followed by what looks like another program beginning with SuperStrict on line 77 (which the compiler isn't happy about seeing there).


grable(Posted 2007) [#3]
It seems he pasted the source twice or something,
but other than that it looked nice =)


Damien Sturdy(Posted 2007) [#4]
Whoops! Yup, pasted the code twice!!

Sorry guys. I'd had a bit to drink last night and wasn't checking what i'd posted!

I fixed my post. :)


Grisu(Posted 2007) [#5]
Well done. Nice piece of work!


TartanTangerine (was Indiepath)(Posted 2007) [#6]
Doesn't the AnimateWindow API command do the same job? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/animatewindow.asp


Damien Sturdy(Posted 2007) [#7]
Cheers Grisu.

Indie, did you actually try it? :D this goes a little further than that api func.


WendellM(Posted 2007) [#8]
Your code runs fine (and is quite nice-looking) on my system under XP, Cygnus, but not under 98. You mentioned older system trouble: I don't get an error in 98; clicking on the exe just doesn't seem to do anything that I can see.

UPDATE: I tried a debug build (cleverly named "debug") and it crashed non-silently when run in 98, with the following:
DEBUG caused a general protection fault
in module <unknown> at 0000:00000003.
Registers:
EAX=00aa2b90 CS=018f EIP=00000003 EFLGS=00010283
EBX=00000000 SS=0197 ESP=00000004 EBP=00000000
ECX=00000000 DS=0197 ESI=00000000 FS=0e97
EDX=00ab5f30 ES=0197 EDI=00000000 GS=0000
Bytes at CS:EIP:
00 65 04 70 00 16 00 1f 05 65 04 70 00 65 04 70
Stack dump:
00700465 051f0016 00700465 00700465 f000ff54 f0007c68 f000e819 cd000000 051f0028 f000ef6f f000ef6f f000ef6f f000ef6f 051f009a 00700465 cd700007



popcade(Posted 2007) [#9]
What I can say is "amazing"!


TartanTangerine (was Indiepath)(Posted 2007) [#10]
No I did not try it :) I don't have MaxGUI.


SpaceAce(Posted 2007) [#11]
The effect looks pretty cool but acts funny on my dual-monitor setup. The secondary screen goes blank like it usually does when an application goes into full-screen mode then the main screen wipes and pieces of the main screen spread out onto the second monitor.

SpaceAce


Damien Sturdy(Posted 2007) [#12]

The effect looks pretty cool but acts funny on my dual-monitor setup. The secondary screen goes blank like it usually does when an application goes into full-screen mode then the main screen wipes and pieces of the main screen spread out onto the second monitor.



Coool!

I've updated the code at home, it seems more stable now and I fixed a few bugs. I'll repost later.

Wendel, Thanks. I think the screensnap code is failing on win98. The effect code however should still work- i'll post that seperately later.

Indiepath; The non-GUI version will be of use to you, and i'll post a compiled EXE for you to try to see what it's doing. It's the sort of effect that would come in handy in your games :)

@Yoko. Thanks. I'm glad you like.

This was meant to be a bug chasing post but it seems OK bar win98. No idea about that though!


popcade(Posted 2007) [#13]
Hi, Cygnus,

This is pretty cool to be the starty of a Screen Saver, and will be killer(sinece none was thinking of this yet), maybe it'll be a great start.


Damien Sturdy(Posted 2007) [#14]

This is pretty cool to be the starty of a Screen Saver, and will be killer(sinece none was thinking of this yet), maybe it'll be a great start.



I'm way ahead of you. I created a photo-viewer screensaver for my GF last night! :)


popcade(Posted 2007) [#15]
That's Cool indeed, please keep up updating.


WendellM(Posted 2007) [#16]
Cygnus: I installed BMax under 98 to better track it down (I was previously running an .exe compiled under XP in 98), and getpixmapfromwindow() indeed returned null, complete with farting in my general direction <g>. 'Course there's no real need to support 98 these days (I try to on general principle when it's not a big problem, but that's just me).