| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello,
I think it is hard to get right.
For a project that required nice lines, I drew each line segment separately as a quadrilateral. The quadrilateral was made as wide as the line thickness and extended in length by half the thickness at either end. Then in a shader, I compute the color as a function of distance to the line segment, i.e. distance to line unless the pixel is off the end of the line in which case it is distance to end point. This means that the line segment becomes rounded at either end. When several lines are drawn, the joints will be rounded and there are no gaps. You can very easily do antialiasing using this method. Andreas
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden This email sent to email@hidden
| References: | |
| >Drawing thick lines (From: "Nicolas Goy, Kuon" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.