I think you can do it using multiple ways.
I would select the vertices of your vbo you want to see the word moving from and use them 2 by two, storing the average positions over time into an ofVec3f:
in ofApp.cpp::update():
//with prop a function of the time :
float prop = ofMap(ofGetElapsedTimeMillis() % 1000, 0, 10000, 0, 1);
ofVec3f heyPos = vbo.getVertex(indexVertex) * prop + vbo.getVertex(indexVertex+1) * (1-prop);
if (prop > 1)indexVertex ++;
yeah that’s because the order of your indices don’t correspond to their place in space, you need to sort them by place in space.
To do that, you need to use this method i think : setupIndicesAuto of your mesh.
Hi P,
Sorry I didn’t saw the notification of your last reply, I will try setupIndecesAuto() later.
But I just figure out another way! And here is how it looks textBird
This getUniqueFaces() function will return a vector of faces of the mesh, each face is constructed of 3 vertices, then we will know these 3 vertices is definitely connected to each other.
Later we need to build a data struct to store the connection information, and do a repeat checking(there will a huge amount of overlapped vertex), also make sure the overlapped vertices share the same connection information.
Hope this would help someone who is interested in the similar idea later : )