Best way to do Win32 animation

This is a discussion on Best way to do Win32 animation within the Windows Programming forums, part of the Platform Specific Boards category; I've made a program which simulates an orbit, and generates coordinates for two objects relative to eachother. Now, I am ...

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    128

    Best way to do Win32 animation

    I've made a program which simulates an orbit, and generates coordinates for two objects relative to eachother. Now, I am interested in displaying these two objects (via the sets of coordinates) in some kind of animation, which shows the two objects orbiting eachother. I have no experience at all with animation, so I wouldn't know where to start. I would imagine that this is a fairly simple animation case (plotting points based on variables from the program) so can anyone direct me to the right starting point?

    Thanks a lot.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    You can do a transform to 'animate' the objects although I would not call this an animation.

    You can use frames or frames of reference and perform a heirarchichal transform.

    Transform = Child * Parent * ... * Parent * Root
    M(F) = M(x) * M(x - 1) * ... * M(1) * M(0)

    The easiest way to do this is to write a simple 4x4 matrix class that support concatenation and use the results to orient your objects.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    128
    That sounds interesting - although all I have is the output values at the moment, and I have no experience in placing or animating objects. Could I use OpenGL or Windows Forms (I also have no experience in these!)?

    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with an animation
    By stephencalderon in forum C++ Programming
    Replies: 11
    Last Post: 09-23-2010, 01:02 AM
  2. U,V animation or not?
    By VirtualAce in forum Game Programming
    Replies: 3
    Last Post: 11-21-2006, 05:01 AM
  3. Animation in SDL
    By cboard_member in forum Game Programming
    Replies: 23
    Last Post: 06-06-2006, 05:32 AM
  4. Animation
    By SuperNewbie in forum Windows Programming
    Replies: 6
    Last Post: 03-14-2002, 11:33 PM
  5. Animation
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 01-01-2002, 08:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21