pixartist wrote:I don't use node, I manually draw the vertices. As you can see I can set Vertex.Color. My question is why this does not work
Doesn`t matter at all. The method is all the same.
Taken from the tutorial/example. Looks very similar to your "manual draw" of vertices, doesn`t it?!
Code: Select all
virtual void render()
{
u16 indices[] = { 0,2,3, 2,1,3, 1,0,3, 2,0,1 };
video::IVideoDriver* driver = SceneManager->getVideoDriver();
driver->setMaterial(Material);
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
driver->drawIndexedTriangleList(&Vertices[0], 4, &indices[0], 4);
}
Note the way we`re setting the correct material to the driver. Make sure you do it the same way. The material has its lighting set to "false", so that the vertex colors will appear the same as we`ve set them.
pixartist wrote:As you can see I can set Vertex.Color
In fact the only thing I see is one short piece of messy-hard-to-read-code-thingy, which is insufficient to tell where exactly you`re doing sth wrong. We`re still out of crystal spheres, so asking "My question is why this does not work" won`t help that much.

"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."