Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: Help with a visual effect

  1. #21
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help with a visual effect

    In honor of jacek, look what I have achieved using his code I've noticed some strange issues:
    1) In my computer it goes very slow. I think that's some issue with QPainter....
    2) The movement in the right side is not simetric with the left side . The matrix should work "equally" with both sides, isn't it?


    PD: copy the images where the exe file is
    PD2: tune the speed with the value passed to QTimer::start
    Attached Files Attached Files
    Last edited by SkripT; 5th May 2006 at 16:01.

  2. #22
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help with a visual effect

    Quote Originally Posted by SkripT
    1) In my computer it goes very slow. I think that's some issue with QPainter....
    You scale a big image very often --- it must cost. You could try OpenGL or you can record that animation and just replay it.

    The movement in the right side is not simetric with the left side . The matrix should work "equally" with both sides, isn't it?
    No it shouldn't, it's because of a simple projection that I used here. If you use a bit more complex one it might look better.

  3. The following user says thank you to jacek for this useful post:

    SkripT (5th May 2006)

  4. #23
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Cool Re: Help with a visual effect

    Well SkripT, i have been reading this discussion right from the start...i have a suggestion though, have you tried using OpenGL for achieving the effect you want? it doesn't require much extensive GL knowledge...infact you can use the inbuilt rotate function, put it in a for loop and rotate the image by say 2 degs per loop execution to give you the effect of the moving page!! you as it is know the co-ordinates, just pass them...and opengl will take care of the rest! and ya, it won't slow your system....It'll move as a breeeeeeeeze!!!



    Nupul

  5. #24
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help with a visual effect

    Thanks for the suggestion Nupul. In the beggining, I thought that QPainter was enough to achieve the effect but seems that it's a bit slow . Next step: OpenGL but that's a new story...
    Last edited by SkripT; 7th May 2006 at 18:10.

  6. #25
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Talking Re: Help with a visual effect

    Quote Originally Posted by SkripT
    Thanks for the suggestion Nupul. In the beggining, I thought that QPainter was enough to achieve the effect but seems that it's a bit slow . Next step: OpenGL but that's a new story...
    Let's say a new chapter to your story....so you can keep 'flipping the pages' to see your progress

  7. #26
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help with a visual effect

    Quote Originally Posted by nupul
    Let's say a new chapter to your story....so you can keep 'flipping the pages' to see your progress
    good joke Nupul

Similar Threads

  1. Help for 3D like Visual Effect.
    By AmolShinde_8 in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2008, 15:25
  2. Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1
    By BrainB0ne in forum Installation and Deployment
    Replies: 3
    Last Post: 19th August 2008, 15:49
  3. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  4. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 15:43
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.