Jump to content
  • Advertisement

Archived

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

StarHawk

2d with dx8

This topic is 6297 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

umm i should probably use dx7 with 2d right? ____________________________ mr. gates, linux just moved up 5%. "no problem, ill just steal their features. it worked with netscape... and we''''re still alive!"

Share this post


Link to post
Share on other sites
Advertisement
Well , it depends.
If you want to do 2D using 3d hardware acceleration you will be better of with dx8. But if you like all the 2d blitting and stuff then ddraw is the answer and dx8 doesn''t have ddraw so you have to use dx7. Pretty simple

Share this post


Link to post
Share on other sites
Alright i know it is possible to use 3D hardware to do 2D. But how? How can i render a 2D image on the screen using DX8? I know there is a function called CopyRects() but that is just like doing a blit with DirectDraw so i wouldnt call that using 3D hardware.

-Thanks

Share this post


Link to post
Share on other sites
To do 2d in D3D, you draw 2 triangles on the screen so that they make a square. They you use texture mapping to draw a tile or character or whatever onto your square. The advantage to using D3D is that you can have isometric tiles, and D3D supports alpha blending.


- Bong, James Bong

Share this post


Link to post
Share on other sites
god , copyrects , no way!
copyrects are evil anyway you simple draw triangles with textures where textures are your images , i will point you to a tutorial , wait a sec...
http://www15.brinkster.com/furby100/index.htm
tutorials/d3d section , found it today , seems to be a nice tutorial , didn''t read it yet thru. Hope it helps

Share this post


Link to post
Share on other sites
where is 7 available at? as usuall, microsft throws their old stuff in the trash. im on a new comp, so i dont have it

____________________________
mr. gates, linux just moved up 5%. "no problem, ill just steal their features. it worked with netscape... and we''''re still alive!"

Share this post


Link to post
Share on other sites
nevermind my above question. i found the libraries. but jonatan, ddraw isnt included in dx8. itll never be updated again

____________________________
mr. gates, linux just moved up 5%. "no problem, ill just steal their features. it worked with netscape... and we''''re still alive!"

Share this post


Link to post
Share on other sites
directx is backward compatible , but in dx8 docs (from dx8sdk) you won''t find information about dx7/ddraw (which are in dx7sdk) , therefore you need dx7sdk it''s not anymore on m$ site i think , but you can still grab it from some other sites , eventually i can put it onto my ftp (i live in poland therefore connection might be slow) , it''s like 150mb or so
(email me if you want it)

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!