There seems to be a problem with the .3ds import, where a mesh which is totally dark (ie all lights off!) in 3ds max is lit in irrlicht.
There is a workaround though.... just export to .x files, which solves the problem!
I am using 0.11 of the Irrlicht engine, via the .NET wrapper.
.3ds import bug?
I had a similar problem with the 3ds format, exported from wings3d, couldn't get dynamics light to function proberly - it seems that every surface material had its emmissive color set to something different from zero, and therefore ligting up by itself. I solved this by setting
and if you've got more than one material in your model just do
And now it works like a charm.
best regards
MBA
Code: Select all
node->getMaterial(0).EmmisiveColor = SColor(0.0f,0.0f,0.0f,0.0f);
Code: Select all
for(int i = 0; i < node->getMaterialCount(); i++)
node->getMaterial(i).EmmisiveColor = SColor(0.0f,0.0f,0.0f,0.0f);
best regards
MBA