vertex clipping behavior

Help
Anonymous
2004-07-08
2004-07-08

  • Anonymous
    2004-07-08

    I'm seeing some odd behavior and hoping you can shed some light. When I render a shape (say a GL_LINE_LOOP) and one or more of the vertices falls outside the viewport, those vertices are removed from the loop instead of being clipped to the viewport boundary. So for example, if I render a square and one vertex falls outside the viewport, I will see a triangle instead of a clipped square.

    It is not consistent either, it only happens about 50% of the time. Any ideas? Is there a setting to control this? thanks.

     
    • I think it's  bug in the line clipper:

      When I clip one end of the line, I am modifying that vertex instead of storing the values into a temporary structure (like the triangle clipper is doing).

      - HM

       
    • Tracked as bug #987381   

      - HM