johanh
08-25-2005, 11:00 PM
I want to render the outline of a polygon that intersects a plane, and my implementation is using two parallell clipping planes very close to my intersection plane and render the polygon in GL_LINE mode.
This works just fine on my NVidia graphics card but some of my collegues has ATI cards and they can only see fragments of the lines.
I have written a test program to illustrate my problem using NeHe's tutorial. I have just added a clip plane and render in GL_LINE mode.
https://support.ati.com/ics/tt/getFile.asp?ticketID=822919&file=Clip%20plane%20problem.jpg&hash=DB83BAAC7C1C61C3710349A87D16931B
My problem seems to be the same as another topic (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=011300) in this forum, but I really need to render the edges of the clipped polygon so I guess I cannot use the zBuffer solution suggested there...
Do anyone have any suggestions on how to make the two chipset render like the NVidia one.
I have thought about using the Vertex Shader but I guess that won't be plausable because the Vertex Shader uses a per vertex approach...
This works just fine on my NVidia graphics card but some of my collegues has ATI cards and they can only see fragments of the lines.
I have written a test program to illustrate my problem using NeHe's tutorial. I have just added a clip plane and render in GL_LINE mode.
https://support.ati.com/ics/tt/getFile.asp?ticketID=822919&file=Clip%20plane%20problem.jpg&hash=DB83BAAC7C1C61C3710349A87D16931B
My problem seems to be the same as another topic (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=011300) in this forum, but I really need to render the edges of the clipped polygon so I guess I cannot use the zBuffer solution suggested there...
Do anyone have any suggestions on how to make the two chipset render like the NVidia one.
I have thought about using the Vertex Shader but I guess that won't be plausable because the Vertex Shader uses a per vertex approach...