Author Topic: Window flip animation  (Read 4101 times)

0 Members and 1 Guest are viewing this topic.

Offline Eros Olmi

  • Full Member
  • ***
  • Posts: 243
  • User-Rate: +18/-7
  • Gender: Male
    • thinBasic
Window flip animation
« on: January 10, 2015, 07:25:22 AM »
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

Offline Patrice Terrier

  • Hero Member
  • *****
  • Posts: 934
  • User-Rate: +62/-1
  • Gender: Male
    • www.zapsolution.com
Re: Window flip animation
« Reply #1 on: January 10, 2015, 11:29:07 AM »
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.

...

« Last Edit: January 10, 2015, 11:33:44 AM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Hero Member
  • *****
  • Posts: 934
  • User-Rate: +62/-1
  • Gender: Male
    • www.zapsolution.com
« Last Edit: January 10, 2015, 02:57:28 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Eros Olmi

  • Full Member
  • ***
  • Posts: 243
  • User-Rate: +18/-7
  • Gender: Male
    • thinBasic
Re: Window flip animation
« Reply #3 on: January 10, 2015, 04:03:16 PM »
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