Hello @asymmetric,
Your function needs to be outside of draw:
PShape obj;
float theta;
PGraphics canvas;
void setup()
{
size(500, 500,P3D);
// load and scale obj once in setup:
obj = loadShape("untitled.obj");
obj.setFill(color(255)); // Brigthens the texture
obj.scale(70);
}
void draw()
{
objAbstractShape();
}
void objAbstractShape()
{
// Your code
}
The above worked in Processing 4.3 with an OBJ I created with Blender: