Page 1 of 1
[solved]color near light wrong
Posted: Sat Feb 23, 2013 8:02 pm
by zprg
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?
Re: color near light wrong
Posted: Sat Feb 23, 2013 11:26 pm
by Mel
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.
Re: color near light wrong
Posted: Sun Feb 24, 2013 12:22 am
by zprg
@mel, thank you for reply!
i added
Code: Select all
node->getMaterial(0).NormalizeNormals=true;
but no change in the near of the lightnode the green is yellow, is this the correct command please?
Re: color near light wrong
Posted: Sun Feb 24, 2013 9:33 am
by zprg
and added
Code: Select all
testnode->setMaterialFlag(video::EMF_NORMALIZE_NORMALS , true);
also no change
Re: color near light wrong
Posted: Sun Feb 24, 2013 10:31 am
by Mel
Then, check the intensity of the lights, maybe they are too bright?..