vertex colors? yes if you enable it in the material. sorry i’m on a ipod. my phone won’t charge so i’m stuck with this. can’t even paste links with this tiny thing.
Material mat = new Material(assetManager, // Create new material and…
“Common/MatDefs/Misc/ShowNormals.j3md”);
mat.setBoolean(“VertexColors”, true);
sceneModel.setMaterial(mat);
I really don’t understand how to make my original diffuse colors on my model, help?
Hold on, I have a question. When you export a .obj with diffuse colors, are the colors in the model, or is it in the .mtl with it? Because the model is all white and in the output it states that the .mtl for my model was not loaded, which could be the problem.
UV unwrap your model and create a new image for it.
Since you already have your materials assigned, in the render tab/Bake panel set Bake Mode to textures.
Bake and then save the image generated in the UV Editor.
Create a new material, name it the same name as the mesh and assign it to the model.
Create new texture and load the saved image(default is diffuse if you look at the influence panel in the texture tab)
Pack the image.
This is now your only material needed.
Export the model with ogre.
If you get errors try saving a copy (something you should already be working in anyway) of the file and cleaning up the buffers. https://jmonkeyengine.github.io/wiki/jme3/advanced/3d_models.html#blender-buffer-clearing