I have loaded an entity in my scene. I want to use vertices' properties in my machine vision program. My entity model has bones that I change these bones at runtime. therefore I want runtime attributes of vertices. these attributes are POSITIONS and NORMAL and COLOR. For this purpose, I use codes like below:
Ogre::VertexData* vertex_data = myEntity->_getSkelAnimVertexData();
vertex_data->vertexDeclaration->findElementBySemantic(Ogre::VES_POSITION);
Method _getSkelAnimVertexData retrieves runtime vertices positions and works correctly. VES_DIFFUSE element is a constant ARGB type that is not changed when model's bones changed. these values is read from my model's mesh file (but not change in runtime). My question is how to retrieve runtime color of vertices of a model with considering the effects of different light and diffuse property?