I'm looking for an example that uses the core OpenGL support. I started trying to use the LowLevelGL example on the code.google site (link at the bottom), but it seems to have some issues with 2.0b7. (all user issues?).
When I try to run the sketch as-is, I get the error
Cannot find anything named "PShader.FLAT"
which is thrown by line 25:
shader = pg.getShader(PShader.FLAT);
I tried changing that call to loadShader(), but that produces the same error. Just to keep going, I grabbed a blur shader and loaded that shader,
That gets me by that error, but then throws the error:
The mehod allocateDirectFloatBuffer(int) from the type PGL is not visible
which comes from line 28:
vertData = PGL.allocateDirectFloatBuffer(12);
I assume the example and the implementation in 2.0b7 have drifted?? I couldn't find an updated example. Could someone help me out here with either 1) pointers to fix these specific issues or 2) a pointer to a low level example?
I'm porting a Sketch that used Andres' OpenGL implementation in Processing 1.5. This sketch used the GLModel() call (cut/paste below) using TRIANGLE_FAN mode and DYNAMIC usage. Is there core support for this now? Any suggestions on porting this to 2.0b7?
//GLModel(processing.core.PApplet parent, int numVert, int mode, int usage)
//This class holds a 3D model composed of vertices, normals, colors (per vertex)
//and texture coordinates (also per vertex). All this data is stored in
//Vertex Buffer Objects (VBO) for fast access.
//
//Creates an instance of GLModel with the specified parameters:
// number of vertices,
// mode to draw the vertices (as points, sprites, lines, etc) and
// usage (dynamic if they will change frequently or stream if they will change at every frame).