Has anyone gotten vertex weighting to work using
the above extension? I’m having trouble with it. From reading the spec, it seems like this is how you do it:
// enable vertex weighting
glEnable(GL_VERTEX_WEIGHTING_EXT);
// setup arrays for various vertex components
// blah
// blah
// enable vertex weight array
glEnableClientState(GL_VERTEX_ARRAY_WEIGHT_EXT);
// set vertex weight pointer
VertexWeightPointerEXT(1,GL_FLOAT,nstride,ptrToBaseAddr+vertexWeightOffset);
// setup blending matrices
glMatrixMode(GL_MODELVIEW0);
glLoadMatrixf(someMat);
glMatrixMode(GL_MODELVIEW1);
glLoadMatrixf(someOtherMat);
// draw something
I’ve got a GeForce, so the blending should be no problem, and in fact I can get this work in D3D, but it just doesn’t do anything in OpenGL. Any ideas?