.3ds import bug?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mikeyj
Posts: 7
Joined: Mon Jul 11, 2005 11:21 pm

.3ds import bug?

Post by mikeyj »

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.
MBA
Posts: 4
Joined: Tue Jul 26, 2005 9:46 am

Post by MBA »

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

Code: Select all

node->getMaterial(0).EmmisiveColor = SColor(0.0f,0.0f,0.0f,0.0f); 
and if you've got more than one material in your model just do

Code: Select all

for(int i = 0; i < node->getMaterialCount(); i++)
  node->getMaterial(i).EmmisiveColor = SColor(0.0f,0.0f,0.0f,0.0f); 
And now it works like a charm. :D

best regards
MBA
Post Reply