hi, im trying to import a model from makehueman to blender, this look fine in blener, but when i try to import this model from blender o jmonkey, this model is all black, i created a new material in jmonkey, but my model still black
here is an screenshot in blender:
an screenshot from JMonkey.
an my material code:
[java]
mat = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
mat.setTexture("DiffuseMap", assetManager.loadTexture("Models/semaforo de arco/textura/2.2.png"));
mat.setBoolean("UseMaterialColors", true);
mat.setColor("Specular", ColorRGBA.White.mult(ColorRGBA.Gray));
mat.setColor("Ambient", ColorRGBA.White);
mat.setColor("Diffuse", ColorRGBA.White.mult(.5f));
mat.setFloat("Shininess", 128);
[/java]
i hope somebody can help me, and thanks for all answers.
sorry for late reply, i was busy, my model is attached in a node called nodoObjetosDeJuego, and nodoObjetosDeJuego is attached in nodoAmbiente. What do you think could be the problem? thaks for elp me
I don’t know. I was just looking for easy answers.
All of your other objects look dark, also.
Random things to try:
-normalize the direction you pass to the light. (this should be done anyway)
-use White as the color (gray is pretty dark)
-use white as the material’s Diffuse value.