blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Lights not affecting loaded .x model #32

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: DruggedBunny

Was just messing with loading a model (the 747 from Blitz3D Death Island!), and although it loads fine, I can't seem to light it.

This example loads the model and uses light.PointAt to direct a default light towards the rotating model, but it just doesn't light up.

I've even tried manually over-riding the model's materials with a default PbrMaterial (see ApplyPbrMaterial)... no idea if that's relevant/redundant, but it still doesn't work!

EDIT: Tried setting Model:Material to New PbrMaterial, too, no change.

modellighting.zip

If I replace it with a cube, that lights up as expected. (See source for example.)