• Advertisement
Sign in to follow this  

Line artifacts

This topic is 4648 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'm working on an Arc class that draws arcs by findinga set of points on an ellipse and connecting the dots. Initially I used a DrawPrimitives call and didn't have any issues, but I wanted to add thickness and antialiasing options so I switched to using Line.Draw(). It produces some artifacts: I can't figure out what causes the gaps. The one on the left is thick and antialiased, the one on the right is thin and isn't antialiased, but both have gaps. Throwing more lines at the problem doesn't help, nor does using fewer lines. Any ideas? Thanks, Max

Share this post


Link to post
Share on other sites
Advertisement
DirectX might not be the best methode to do what you try. GDI+ instead can do the same too, with alot less trouble.

Share this post


Link to post
Share on other sites
Quote:
Original post by LogicalError
Don't use GDI, -especially- not GDI plus if you're going to draw a lot of lines etc.
It's a million trillion times slower than directx or opengl


Million trillion times seems to be alot...

Share this post


Link to post
Share on other sites
This is part of a DirectX 2D graphics library based on transformations I'm working on. It would definitely not work with GDI+.

Edit: maybe not quite a million trillion times slower, but if you wanted to, say, draw bullet arcs in a game with hundreds of bullets flying around all the time, it would be debilitating.

[Edited by - _Flecko on May 29, 2005 8:39:18 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement