I found the solution. I feel really stupid now.
I had the ambientLight of the world set to dark.
so I couldnt see the materials at all, after I changed it to
it all worked fine without needing to load any materials. It seems that the jPTC load method loads the materials automatically if it is not a texture image.
I had the ambientLight of the world set to dark.
Code Select
world.setAmbientLight(20, 20, 20);
so I couldnt see the materials at all, after I changed it to
Code Select
world.setAmbientLight(250, 250, 250);
it all worked fine without needing to load any materials. It seems that the jPTC load method loads the materials automatically if it is not a texture image.