V2.0a6, OPENGL and QUAD_STRIP
in
Core Library Questions
•
1 year ago
I have been working on updating the Shapes3D library for V2 of Processing as the loss of P3D meant that the current version of the library did not perform 3D shape picking.
So I modified the library and tested it with V2.0a5 with success. Fortunately I had not released this new version due to other commitments at the time. I have just got round to checking this library against V2.0a6 with some interesting results.
This image shows the ouput from one of the library examples using V2.0a5 (left) and V2.0a6 (right)
The problem appears to be the way that OPENGL renders QUAD_STRIP(s) because if I change to TRIANGLE_STRIP then the shape is correctly draw in V2.0a6
BTW the reason for using QUAD_STRIP was the simplest way to avoid the diagonal when rendering in wire frame.
So what has happened to QUAD_STRIP?
So I modified the library and tested it with V2.0a5 with success. Fortunately I had not released this new version due to other commitments at the time. I have just got round to checking this library against V2.0a6 with some interesting results.
This image shows the ouput from one of the library examples using V2.0a5 (left) and V2.0a6 (right)
The problem appears to be the way that OPENGL renders QUAD_STRIP(s) because if I change to TRIANGLE_STRIP then the shape is correctly draw in V2.0a6
BTW the reason for using QUAD_STRIP was the simplest way to avoid the diagonal when rendering in wire frame.
So what has happened to QUAD_STRIP?
1