Sign in to follow this  
_Flecko

Line artifacts

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this