PDA

Click to See Complete Forum and Search --> : DirectX turning frame


Miksu
Jun 18th, 2002, 06:58 AM
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!

Caleb
Jun 18th, 2002, 09:02 AM
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...
:)

Miksu
Jun 19th, 2002, 02:00 PM
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?

Caleb
Jun 25th, 2002, 01:09 AM
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.

110359
Jun 25th, 2002, 01:13 AM
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