It allows the usage of a set of matrices to transform the vertices and the normals. Each vertex has a set of indices into the palette, and a corresponding set of n weights.
The vertex is transformed by the modelview matrices specified by the vertices respective indices. These results are subsequently scaled by the weights of the respective units and then summed to create the eyespace vertex.
A similar procedure is followed for normals. They are transformed by the inverse transpose of the modelview matrix.
The main OpenGL ES functions that support Matrix Palette are
- glMatrixMode(GL_MATRIX_PALETTE) - Set the matrix mode to palette
- glCurrentPaletteMatrix(n) - Set the currently active palette matrix and loads each matrix in the palette
- To enable vertex arrays
- To load the index and weight per-vertex data
thanks for your effort and actually it is a Nice Topic
I hope you take a look to my blog
CCNA MCSE CCNP Oracle C# C++ Graphics
Programming Databse Engineering Netwrok Dseign Mbile
It is about FREE eBooks
Post a Comment