Hi, i have a question regarding the way Processing draws 3D shapes.
I have a complex 3D model (121521 polygons), where the “top level” shape is a group and all children are triangles. When i draw this model with the built-in .shape() function i get high FPS, and when i try to iterate over the shape’s children and draw each also with the .shape() function, the framerate drops to 2 FPS.
// 60 FPS
g.shape(model);
// 2 FPS
for (int i = 0; i < model.getChildCount(); i++) {
g.shape(model.getChild(i));
}
Why does this happen? It’s important for me to have control over how each geometry of the model is draw, so i can choose color, stroke, etc.