Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LordKaT

2D in Direct3D . . . animation

This topic is 5589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I''ve got some very basic code down for a 2D engine under Direct3D (dx8) by using textured quads . . . I just have one problem . . . You see, back in directDraw, all I had to do was move a RECT around in Surface memory in order to animate something; however, I have no clue how to do this form of animation using the textured quad''s method . . . can anyone point me in the right direction? --LordKaT

Share this post


Link to post
Share on other sites
Advertisement
There are many ways to do this but I think the most common is to alternate texture coordinates. In other words, put multiple images on a texture and cycle the texture coordinates of the images each frame.

----
AIDS

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!