Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to change the positions in a MorphingMesh?

 
Eyvind Almqvist
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to fetch the current positions from a MorphingMesh, then sort them and then put them back into the MorphingMesh. Is this possible? I can't find any suitable get or set method for this.

When I say "current positions", I mean those that are the result of the morph calculation. My animation morphs between 20 different galaxy shapes.

I put the original galaxy shapes positions in the VertexArray[] morphedPositions. These are then put into the VertexBuffer[] morphedVertices, which are put into MorphingMesh. The AnimationTrack then uses this and the weights to calculate the current positions.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!