Hi there, is there any way to do something like giving an ofVboMesh a parent ofNode? I want a mesh of “shapes” to track an ofBoxPrimitive through space. I need to use an ofVboMesh because trying to render a vector of shapes of the size I want is not practical.
Writing my own function to transform each vertex in the mesh to track the box seems like overkill; someone must have had this same issue before? What’s the standard way to get mesh vertices to transform according to the transformations of another object through space?
thanks for the reply. I’ve looked into instancing, and while it does look powerful, I dont have time currently learn it. Also, Im not sure it would help me here; I can get the frame rate Im looking for using vboMeshes, but the rotation of the mesh is the issue. The problem looks like this:
So, stemPos will shift the mesh properly to the location of its pole, but the mesh will not have rotated to align with the pole. Im rotating the poles using a quaternion, but I cant seem to figure out how to use this same quaternion to rotate the mesh into place.
Thanks arturo, the issue is that Im calling cone.getMesh() a bunch of times to fill a single vboMesh with a bunch of static “cones” so that they’ll render quickly. Im confused about the standard way to add a bunch of vboMeshes from of3dPrimitives to one large mesh and then be able to move the large mesh around easily.