Hi,
I hope someone can help - I am using an MD2 file which I load into my scene
I attached material like so :
Material mat2 = new Material(true);
mat2.setEmissiveColor(0.0f, 0.0f, 1.0f);
mat2.setSpecularColor(0.2f, 0.2f, 1.2f);
mat2.setAmbientColor(0.7f, 0.7f, 0.7f);
mat2.setDiffuseColor(0.1f, 0.1f, 1.1f);
mat2.setAmbientColor(0.75f,0.75f,0.75f);
mat2.setDiffuseColor(0.75f,0.75f,0.75f);
mat2.setLightingEnable(true);
//recusively add materials
addMaterial(modelTransformGroup, mat2);
But the model appears very flat without any shadows - I used the same “mat2” on both .OBJ and .ASE and the result is fine.
does MD2 not respond to the above Material?
I followed the example from within the MD2 loader file - and thats much the same
what am I doing wrong?
Thanks
Rmdire