Archived

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

hemp

Direct 3D

Recommended Posts

hemp    122
What would be better for me to do for my tetriz game:

have individual blocks,put them into an array and put the array on the screen.

or

make the blocks one picture and put the picture to the screen.

Share this post


Link to post
Share on other sites
steg    390
Have the blocks as seperate objects this will make it easier for movement of them, collision detection etc...

Reg''ds,
Steve

Share this post


Link to post
Share on other sites
steg    390
Yep, although it would be easier to keep it 2d and using direct draw from Dx7. Still, there are plenty of articles on gamedev that show you how to implement 2d using d3d. The shapes in 3d would need to have vectors set up for them, i.e.vertex''s (x,y,z) points within object space for the geometry of the shapes.

Reg''ds
Steve

Share this post


Link to post
Share on other sites
henryx    128
If your starting out with DirectX then don''t learn DX7 and DirectDraw since this is not used in DX8. DX8/Direct3D has sprite handling capabilities which I would suggest is the best way to go to keep your code up to date.

There are a few articles on this site which show how to do 2D work in Direct 3D and with the ID3DXSprite interface you don''t need any 3D matrices or vectors - its just as easy as using directDraw of old but links your code into the 3D capabilities of modern graphics cards.

henry

Share this post


Link to post
Share on other sites