www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: theFALCO on December 20, 2006, 05:45:03 pm

Title: Live mesh deformations
Post by: theFALCO on December 20, 2006, 05:45:03 pm
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?
Title: Live mesh deformations
Post by: Mizuki Takase on December 20, 2006, 06:02:44 pm
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