Hello,
sounds like a question that comes often but i found no other thread:
in the near of the lightnode the colors are wrong - green is yellow, beige is white. whats the problem please?
[solved]color near light wrong
[solved]color near light wrong
Last edited by zprg on Sun Feb 24, 2013 1:43 pm, edited 1 time in total.
Re: color near light wrong
The normals of the objects seem to be being larger than 1 unit. Try Normalizing the normals of your meshes setting NormalizeNormals on the materials to true.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: color near light wrong
@mel, thank you for reply!
i added
but no change in the near of the lightnode the green is yellow, is this the correct command please?
i added
Code: Select all
node->getMaterial(0).NormalizeNormals=true;
Re: color near light wrong
and added
also no change
Code: Select all
testnode->setMaterialFlag(video::EMF_NORMALIZE_NORMALS , true);
Re: color near light wrong
Then, check the intensity of the lights, maybe they are too bright?..
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt