This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Is it possible to change the positions in a MorphingMesh? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Is it possible to change the positions in a MorphingMesh? " Watch "Is it possible to change the positions in a MorphingMesh? " New topic
Author

Is it possible to change the positions in a MorphingMesh?

Eyvind Almqvist
Greenhorn

Joined: Nov 23, 2011
Posts: 1
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Is it possible to change the positions in a MorphingMesh?
 
Similar Threads
Generics "is not applicable for the arguments"
WA #1.....word association
Really strange behavior in an ArrayList
lost n confussed
drawing on a JPanel without erasing the underlying drawings