On Tue, Jul 16, 2002 at 11:54:02AM -0400, Leif Delgass wrote: > On Wed, 10 Jul 2002, Allen Barnett wrote: > > > 2. clipping.c: In this program, a cube is drawn using a flat shaded quad > > strip with different colors for each pair of vertices. If a face of the cube > > is clipped by an edge of the X window, then the triangles which the quad is > > decomposed into are not drawn in the correct color. You can rotate the cube > > around with the left mouse button to see the effect on different faces. You > > can zoom in and out with the middle mouse button. Once the cube is entirely > > inside the window, it is drawn properly. I think this may be related to a > > problem mentioned on Leif's status page. (It works OK with Mesa, with > > indirect rendering and with the TDFX driver.) > > I fixed this by having Mesa copy the provoking-vertex color into all > vertices (by telling the template we don't have hardware flat-shading). > The mach64 uses a fixed vertex number for flatshading, and we implement > all primitives as triangles, reusing vertices where possible. Perhaps > there is a way to order the vertices to get flat-shading to work without > copying colors,
It's probably worth to check it out, to avoid all the copying restoring that happens with this. > but this fixes the problem. The driver still turns on > flat-shading in the hardware setup engine when applicable, but I'm not > sure if this makes any difference in performance. ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel