PDA

View Full Version : Using Blendshape With Mpxgeometryiterator


rotal
07-03-2006, 03:36 PM
I'm writing a Maya Shape Node. I met something really strange.
for example, two custom shape with 100 vertices.
there are 30 vertices are different.
When I blendshape two custom Shape. the MPxGeometryIterator::Point() is called 100 times(vertices Number times). while MPxGeometryIterator::setPoint( const MPoint & pnt ) is called only 30 times(different vertices Number times). so I figure out the blendshape only process the different vertices and by pass all the identical points.
so here problem comes. I have tried to get the actural point's id in setPoint( const MPoint & pnt ) call.
the index() call renturn the id start from zero to 30, and the indexUnsimplified() alway return zero. not increase after each iterate step.
this problem is driving me crazy. I hope some guy can give me some idea.
you can try the apiMeshShape plugin shiped with maya sdk.
when you blendshape 2 apiMeshs(only part of points are different). you always get an odd result.
only the first a few points is blend in wrong result.

CGTalk Moderation
07-03-2006, 03:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.