To better clarify what I’m looking for…
Let’s say you’ve got a few separate pentagons you want to make - each with a central point in the middle. We’ll use the central points as the start point for each fan. So the first would go (0,1,2,3,4,5). Then the next pentagon has a central point index of 6, so it’s index array would be (6,7,8,9,10,11). If these were two separate meshes, no problem. But it’s one mesh, so all the indexes get lumped into one array which would be (0,1,2,3,4,5,6,7,8,9,10,11) - how is opengl supposed to know when to start a new fan?
Normally, you define glPrimitiveRestartIndex to something ridiculously high - 65535 or something, and insert that into your array. opengl sees this and starts a new fan. So now we’d have (0,1,2,3,4,5,65535,6,7,8,9,10,11). I can do this myself in lwjgl, but I don’t know how to make our friendly jmonkey let me do the same thing.
Here’s a page that explains it better:
http://programming4.us/multimedia/8302.aspx
Or can one geometry hold multiple meshes?