Hi everybody!
This is my first question here.
I am trying to put a cube with an specific color, I guess I can do it just with the lights.
But I also want to see the wireframes of the cube.
How can I do that?
Thank you very much!
See ya
How to put Wireframe and color together?
-
- Posts: 237
- Joined: Mon Jan 16, 2006 1:18 pm
- Location: Odessa,Russian Federation
It is still not working,
This is what I am doing
If I set "true" in the last lcode-line, it stays totally red, if I set false, it stays transparent with the wireframe in red. I would like to have the object totally in red with the wireframe in black.
Any clue?
Thank you for your answer!
This is what I am doing
Code: Select all
scene::ISceneNode * table = smgr->addCubeSceneNode();
if(table){
table->setPosition(core::vector3df(0,0,0));
table->setMaterialType(video::EMT_SOLID);
table->setScale(core::vector3df(40,40,1));
table->setMaterialFlag(video::EMF_LIGHTING, true);
table->getMaterial(0).DiffuseColor.set(0,0,0,0);
table->getMaterial(0).AmbientColor.set(0,0,0,0);
table->getMaterial(0).SpecularColor.set(0,0,0,0);
table->getMaterial(0).EmissiveColor.set(255,255,0,0);
table->setMaterialFlag(video::EMF_WIREFRAME, true);
}
Any clue?
Thank you for your answer!
If i am not mistaken, you can apply a texture to an object and turn it wireframe and the wireframe will be the same color as the texture. For example, i had an old project with water(blue texture) and when i change it to wireframe the wireframe was blue. Hope this helps.
Edit:
Here is a screenshot:
Edit:
Here is a screenshot:
multum in parvo