Author Topic: Live mesh deformations  (Read 2316 times)

Offline theFALCO

  • byte
  • *
  • Posts: 39
    • View Profile
Live mesh deformations
« 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?

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Live mesh deformations
« Reply #1 on: December 20, 2006, 06:02:44 pm »


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: