View Full Version : Coplanar line and polygon

Alberto Jrr.
11-24-2008, 04:26 AM
I need draw a line in a polygon (a rectangle for example), but it must be continuously on one side and dashed the other. But there is a problem because they are coplanar.
Has anyone had any similar problem?

PS: I resolve a similar problem and with two polygons, using offset and cull face, but that solution is not feasible for lines.

Thank you all!

11-24-2008, 06:46 AM
Be sure to check the wiki for commonly asked questions...


Hope it helps.

Alberto Jrr.
12-01-2008, 12:42 PM
Thanks for the answer, but it does not helped me completely.
I did what I wanted using stencil buffer, but now I have other problem: poor performance.
Someone had another solution?