×

Discussion Board

Results 1 to 4 of 4

Thread: Animations...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    18

    Animations...

    Is it possible to use several pictures to create an animated picture in pys60?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Animations...

    Quote Originally Posted by nadym89 View Post
    Is it possible to use several pictures to create an animated picture in pys60?
    Yes. Of course. That's how movies work, several pictures in a row at fixed time intervals.

    Was there a question somewhere?

    Wondering,

    --jouni

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    18

    Re: Animations...

    Yeap. Can you give a sample code

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Animations...

    Quote Originally Posted by nadym89 View Post
    Yeap. Can you give a sample code
    I could give you code, which crashes in 5 different ways. Just can't figure out timers and without them animation is... pretty fast

    In the meanwhile:

    Description: you have canvas, but you never draw on it directly in order to avoid flickering. Instead you create an off-screen image and use it as a temporary canvas to prepare screen. When it's ready, you blit it as fast as possible on canvas. This method is called double buffering.

    When you get good at that, there's triple buffering. It's a bit more difficult, but gives good results in certain cases.

    Between blitting you should have a small pause to let user see what's going on. Eye is slow, that's why movies has 24 frames a second. That's why you don't need to update screen 100 times a second. Also that might be so fast that everything looks like a blur, not good at all.

    Btw you want to control that delay between pictures, since you want to have similar results regardless of used device. Your animation should look same in both fast and slow phones.

    Canvas is easy, off-screen is easy, blitting is easy. Just can't figure a way to make the pause. Could use a busy-loop, but that would kill battery.

    --jouni wondering "TypeError: callable expected for 2nd argument" crash after animation was completed successfully and everything SHOULD be ok...

Similar Threads

  1. Downloading GIF animations on 6230
    By LimpingFish in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-12-01, 18:08
  2. Nokia 6233 fade out stops animations
    By aldebaran2 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2006-11-20, 14:58
  3. startup and shutdown animations in theme studio 2.1 (s40 phones)
    By raozuzu03 in forum Streaming and Video
    Replies: 3
    Last Post: 2006-10-30, 11:25
  4. how to play flash animations on nokia 6230
    By sherwinreyes10 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-07-02, 15:10
  5. MMS and framerate in Gif animations
    By Popfugl in forum General Messaging
    Replies: 1
    Last Post: 2002-08-01, 11:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×