Operating System: Ubuntu 18.04
Render System: GL3PLUS
I am developing an open-source visualizer for my simulator RAISIM (https://github.com/leggedrobotics/raisimOgre). I have a big issue in the displayed color. Even though I specify a material for every object, some objects become the same color as other objects. Here is how I create an object (from OgreVis.cpp)
Code: Select all
auto *ent = this->getSceneManager()->createEntity(name, meshName);
ent->setMaterialName(mat);
auto *node = this->getSceneManager()->getRootSceneNode()->createChildSceneNode(name);
node->attachObject(ent);
Code: Select all
getRoot()->renderOneFrame();