Thread: Best way to do Win32 animation

  1. #1
    george7378
    Guest

    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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
    george7378
    Guest
    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, 06: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-15-2002, 12:33 AM
  5. Animation
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 01-01-2002, 09:29 AM