I have tried for a while now to set my mesh all black. I have set setMaterialFlag(video::EMF_LIGHTING, false) on the node and i have NO TEXTURE at the moment.
I also tried changing all the material colors (specular, ambient and so on) but for the love of it i cannot get it from all white to all black.
(I'm loading an .X model)
Do i have to change vertex colors? How do i do that ?
How do i make my mesh all black?
set the diffuse and emmisive colors to black. you can change the specular color to black for a pitch black model or to white for a black model with a white shine to it.
diffuse = the color the material emmits when struck by light
emmisive = the color the material emmits even without light
specular = the color the material emmits when hit by light at a certain angle to give your mesh a reflective look
all of these values are combined on a per-vertex level to calculate the effects of dynamic lighting. these values only work when EMF_LIGHTING is set to true.
diffuse = the color the material emmits when struck by light
emmisive = the color the material emmits even without light
specular = the color the material emmits when hit by light at a certain angle to give your mesh a reflective look
all of these values are combined on a per-vertex level to calculate the effects of dynamic lighting. these values only work when EMF_LIGHTING is set to true.
-
- Posts: 91
- Joined: Fri Oct 31, 2003 5:03 am
http://sjbaker.org/steve/omniv/opengl_lighting.html
That is the website that taught me about lighting, it explains the different types of light well, including ambient light
That is the website that taught me about lighting, it explains the different types of light well, including ambient light
daveandrews.org - A Christian Programmer's Weblog | Dusty Engine - A Task Engine for Irrlicht