• Advertisement

Archived

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

2D in DirectGraphics

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

I was wondering if, from a 2D standpoint, I should use transformed or un-transformed co-ordinates. Are their any real differences between the two for 2D games?

Share this post


Link to post
Share on other sites
Advertisement
hmm., with transformed vertices, you don't have to care about the various transformation, ie, world/view/proj,

with untransformed vertices, you'll need to make a ortho proj. matrix, this make all objects appear in equal size regardless of distance from the camera

i also would like to know which method is more efficient or better?

[edited by - mickey on July 26, 2002 12:16:56 AM]

Share this post


Link to post
Share on other sites
with transformed vertices you can''t use the benefits of scaling, rotations.

Share this post


Link to post
Share on other sites
You should have a look at the ID3DXSprite-Interface. It was designed to close the gap, that DirectDraw left. You don''t have to worry about transformations and stuff, and you have all the features like clipping/rotation/... (If you don''t need these features anyway and just want to blit rectangles to the screen, i would recommend ImageSurfaces)

Hope this helped.
CU
Andreas

Share this post


Link to post
Share on other sites
Vampir: I have a small app that I made working with transformed coords and it loads a textureonto a quad and rotates it and scales.

I want to be able to use rotation, scaling and alpha-blending in the app.

I''m pretty sure I heard that the ID3DX-Sprites were considered slow in directX 8.0. I''m not sure if it has been fixed in 8.1, or am I totally wrong?

Share this post


Link to post
Share on other sites
Well I am still searching for the best method to combine 2D isometric graphics with alpha blending an real time lighting.

Im Anfang war die Tat...
Faust

Share this post


Link to post
Share on other sites

  • Advertisement