vertex blending

vertex blending

Post by Cronus3 » Fri, 04 Jul 2003 13:58:27

I have made a skeletal animation system that uses vertex blending.  It works
with some animations I made in maya, but it outputs a mess of polygons with
tiny.x (actually tiny's head is recognizable).  The only difference between
tiny.x and the .x files i made is that tiny.x stores the keyframes in matrix
form, whereas mine store seperate translation, rotation, and scaling info.
At this point I'm led to believe my code that breaks the matrix into its
translation, scaling, and rotation part is bad.  Here it is:

if( keyType == 4 ) // RST-matrix
assert(numValues == 16);// matrix
D3DXMATRIX matrix = *((D3DXMATRIX*)dataPtr);
dataPtr += sizeof(D3DXMATRIX);

VectorKey T(timeInSeconds, matrix(3,0), matrix(3,1), matrix(3,2));
VectorKey S(timeInSeconds, 1.0f, 1.0f, 1.0f);

// Make sure row are unit length.
D3DXVECTOR3 r0( matrix(0,0), matrix(0,1), matrix(0,2) );
D3DXVECTOR3 r1( matrix(1,0), matrix(1,1), matrix(1,2) );
D3DXVECTOR3 r2( matrix(2,0), matrix(2,1), matrix(2,2) );
D3DXVec3Normalize(&r0, &r0);
D3DXVec3Normalize(&r1, &r1);
D3DXVec3Normalize(&r2, &r2);

matrix(0,0) = r0.x;  matrix(0,1) = r0.y;  matrix(0,2) = r0.z;  matrix(0,3) =
matrix(1,0) = r1.x;  matrix(1,1) = r1.y;  matrix(1,2) = r1.z;  matrix(1,3) =
matrix(2,0) = r2.x;  matrix(2,1) = r2.y;  matrix(2,2) = r2.z;  matrix(2,3) =
matrix(3,0) = 0.0f;  matrix(3,1) = 0.0f;  matrix(3,2) = 0.0f;  matrix(3,3) =

D3DXQuaternionRotationMatrix(&quat, &matrix);
QuatKey R(timeInSeconds, quat);


I think this will not work if there is significant scaling, but I looked at
a few of the matrices at random and they seemed OK.

vertex blending

Post by Cronus3 » Sat, 05 Jul 2003 16:13:07

nevermind, it is something else.


1. Xform vertexes of a primitive by different matrixes / VERTEX BLENDING

I Use Bezier-Surfaces for a high detailed human
character. For natural looking animation i have to
transform the vertexes of one surf by different
matrixes. This breaks OpenGL transformation pipeline and so it can't be done
by T&L-hardware,
which will be a problem in the near future!

DX7 seems to have a solution called "vertex blending" (If any one have
information about, please tell me).
Will there be a extension to OpenGL, and
how will it work ???

2. full screen video

3. General Q: What is vertex blend?

4. another melon

5. What is vertex blending used for?

6. Problem with TToolbar displaing

7. skeletal animation with vertex blending

8. Index vertex blending

9. RESOURCE: rt_Skin vertex blending visualization sample

10. indexed vertex blending

11. question about vertex blend

12. Per vertex alpha blending?