Live mesh deformations

Started by theFALCO, December 20, 2006, 05:45:03 PM

Previous topic - Next topic

theFALCO

Is there a way to get all vertices as an array or list of SimpleVectors? What I want to do is... ummm... let's say move the most-top vertice down... or make a blobby mesh blending... can I do that in jPCT and how?

Mizuki Takase

Quote
GenericVertexController.getSourceMesh()

Description copied from interface: IVertexController
Returns the source mesh's vertex data, i.e. the vertex-data that needs modification. Every SimpleVector in this array represents a vertex in the mesh. However, there's no information which vertex exactly (because they don't have ids or something).
Read the data from this array, but don't modify it.

There is also a GenericVertexController.getDestinationMesh() for modifying the mesh dynamically... A good example can be gotten from: http://www.jpct.net/forum/viewtopic.php?t=58&highlight=sin