Results 1 to 5 of 5

Thread: DirectX turning frame

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Location
    Finland
    Posts
    2

    Question DirectX turning frame

    I have think, how frames be turned by DirectX. You know, if you press left arrow key, the frame will be turned and a texture turns. For example if I have a building and the texture on it is some car and camera looking it on top, the car turns, like real car do. If you understand, please, help me!

  2. #2
    Junior Member Caleb's Avatar
    Join Date
    Jan 2001
    Posts
    24
    If what you meant was rotating the car sprite, then the only way you can do is to pre rotate the sprite into a series of frames and run through them...

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Location
    Finland
    Posts
    2
    Originally posted by Caleb
    If what you meant was rotating the car sprite, then the only way you can do is to pre rotate the sprite into a series of frames and run through them...
    Oh... Yeah. But if I pre-rotate it... How?!? How I rotate it, pre-rotate, or rotate! How I get the car to rotating? Do I make the textures, what have rotate? I suppose that by DirectX I can do it also something else, but I don't have idea, how... Hmm... I'm thinking... Someone else can be help me?

  4. #4
    Junior Member Caleb's Avatar
    Join Date
    Jan 2001
    Posts
    24

    When I said pre-rotate

    I mean rotate with your paint program. Slowly rotating them by some thing like 10 degrees each frame will do. DirectX cant do anything about rotating... at least not that I know of any...

    So.. you can say that you actually have multiple texture rather than 1.

    Have you learnt how animation works? If you have'nt, I suggest you go look for some tutorials on it... There are alot in the net.

  5. #5
    Member 110359's Avatar
    Join Date
    Jun 2002
    Location
    Melbourne, Australia
    Posts
    43
    I agree the easiest way to do it is to use paint to rotate the pictures the run them through with a timer, a keypress event or something. I've done it before and it works.

    110359
    Why is it that when you kill one man people call you a murderer and when you kill one thousand you are a conqueror?

Posting Permissions

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



Click Here to Expand Forum to Full Width