Window flip animation

Started by Eros Olmi, January 10, 2015, 07:25:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eros Olmi

I need to add window flip animation to any window (or some windows) like the following: https://www.youtube.com/watch?v=pjHPiyEHs0Y
I suppose I can use 2 images re sizing and sthretching the first and when in the middle swap the first image with the second and re size and sthret again the other way round.

Does someone knows some PB code where to start?

Thanks in advance
Eros
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB
  •  

Patrice Terrier

#1
Eros--

To do this.

I would use OpenGL to perform the image rotation, using first WM_PRINT to perform a capture of the window, then turning it into a texture, and render the result into a transparent LAYERED window.

To start with, you could see the code i posted in Pix3D, and try it with a screen shot of your window, Pix3D will turn it into a texture on the fly.

Of course the best solution would be to write a specific {effect} DLL for that purpose.
Then all kind of effects could be done, like these
https://www.youtube.com/watch?v=letiC2dF1gA

You can see an example of 3D animation of a popup window at startup, in my WinDev project BassBox Radio
http://www.jose.it-berater.org/smfforum/index.php?topic=4394.0

Added:
And what about a curling effect, that would be nice too.

...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
  •  

Patrice Terrier

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
  •  

Eros Olmi

Thanks a lot Patrice!
I will study it
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB
  •