I’m trying to take advantage of meshes in the “world” vertex space as the direct replacement of built-in sprites (to make some stunning fx, actually).
Is this the right way to change a buffer in a mesh?
go.property("buf", resource.buffer("/assets/meshes/star.buffer"))
-- ...
go.set("#mesh", "vertices", self.buf)
I’m asking about this because the game reports about leaked resources on shutdown:
ERROR:RESOURCE: Leaked resources:
ERROR:RESOURCE: Resource: /assets/meshes/gun.bufferc ref count: 125
ERROR:RESOURCE: Resource: /assets/meshes/ball.bufferc ref count: 125
ERROR:RESOURCE: Resource: /assets/meshes/eye.bufferc ref count: 150
ERROR:RESOURCE: Resource: /assets/meshes/star.bufferc ref count: 125
Is this a bug, or am I doing something wrong?
I attached the demo project:
issue_mesh_buf_change.zip (51.1 KB)