Something with the vertex buffer is failing.
My script uses GPU instances. Please HELP
Best guess - this is how the instancing vertex buffer needs to be created - note the second parameter:
const vertexBuffer = new pc.VertexBuffer(
app.graphicsDevice,
pc.VertexFormat.getDefaultInstancingFormat(app.graphicsDevice),
instanceCount,
pc.BUFFER_STATIC,
matrices
);
see line above in your code … that’s how you access the graphics device.
Ok, I already solved, thanks for the rapid help
const vertexBuffer1 = new pc.VertexBuffer(
this.app.graphicsDevice,
pc.VertexFormat.getDefaultInstancingFormat(this.app.graphicsDevice),
instanceCount,
pc.BUFFER_STATIC,
matrices
);