Hello i have a problem
when i upload a j3o i have a black area …
Help plz
(sory i’m french)
Hello i have a problem
when i upload a j3o i have a black area …
what was the original file type? mesh.xml, .obj, .blend? or some other format?
my model come from a .scene
try recalculating the normals, or flipping the normals where the black area is, in blender i assume
If I increase the brightness it works if I add another light also.
oh, you use lighting.j3md?
i create a .j3m with model ligthing.j3md, i add a normalMap and I apply the texture with sceneComposer
yeh, so it looks like the light you had before just wasn’t reaching parts of your model, which you’ve already found out yourself.
Sory i don’t understand
you need more lights, or change directions of the ones you already have
but the sun should not normally be enough?
depends where the direction is, add an ambient light for global lighting. There might be some parameters in your .j3m file you can change as well
I have not solved the problem
Seems like the model has no tangents, try TangentBinormalGenerator.generate(modelMesh);
if i move the “sun” the dark aera move
my code was
[java] AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(0.5f));
rootNode.addLight(al);
DirectionalLight dl = new DirectionalLight();
dl.setColor(ColorRGBA.White);
dl.setDirection(new Vector3f(2.8f, -2.8f, -2.8f).normalizeLocal());
rootNode.addLight(dl);
pssmRenderer = new PssmShadowRenderer(assetManager, 768, 2);
pssmRenderer.setDirection(new Vector3f(-1, -1, -1));
pssmRenderer.setLambda(0.55f);
pssmRenderer.setShadowIntensity(0.6f);
// pssmRenderer.setFilterMode(FilterMode.Dither);
pssmRenderer.setFilterMode(FilterMode.PCF4);
//viewPort.addProcessor(pssmRenderer);[/java]
when y have black aera.
i have change
[java]al.setColor(ColorRGBA.White.mult(1.5f));[/java] (1.5f)
and now i have this (i have change the texture)
normen said:
Seems like the model has no tangents, try TangentBinormalGenerator.generate(modelMesh);