I am having a problem with an object not lighting properly.
The red object in the center of the screen is actually 2 objects. They are single-limbed and they are lit properly. The cave they are in is not (it has multiple limbs). The light is light0 (directional) and I colored it red so I could see any lit areas apart from the ambient.
I have tried all the normal ideas for making sure the lighting is correct, but I think there is something else wrong. Here is the appropriate code:
LevelData.LoadLevelMesh("L01.x");
dbTextureObject(LevelData.LevelMesh,TextureTheme[0].BaseTexture);
// dbScaleObject(LevelData.LevelMesh,10,10,10);
dbSetObjectLight(LevelData.LevelMesh,1);
dbSetObjectDiffuse(LevelData.LevelMesh,dbRGB(255,255,255));
// dbSetObjectAmbient(LevelData.LevelMesh,1);
// dbSetObjectAmbience(LevelData.LevelMesh,dbRGB(255,255,255));
dbSetObject(LevelData.LevelMesh,-1,-1,-1,1,1,-1,1);
As you can see, I tried everything (that I can think of) and nothing works correctly. The only thing that seems to make any difference is the scaling down of the object. Even that doesn't make the lighting work the way it's supposed to. I think it might be a limb issue. I have the level broken into limbs and there is one part of it that seems to work, so it could be limb related..... How would I fix it if that's the case?
The fastest code is the code never written.