Smooth facets

Hello,

How to smooth the facet of my model, please?

heavy facets

ball = (Node) assetManager.loadModel("Models/ShaderBall/heavy.j3o");
        ball.setLocalTranslation(0, 0.25f, 0);

        Material ballMaterial = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
        //nodemat.setTexture("DiffuseMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond.jpg"));
        // nodemat.setTexture("NormalMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond_normal.png"));
        ballMaterial.setBoolean("UseMaterialColors", true);
        ballMaterial.setColor("Diffuse", ColorRGBA.Orange);
        ballMaterial.setColor("Specular", ColorRGBA.Orange);
        ballMaterial.setFloat("Shininess", 64f);  // [0,128]

        ballMaterial.setBoolean("VertexLighting", true);
        ballMaterial.setBoolean("HighQuality", true);
        ballMaterial.setBoolean("VTangent", true);

        //ballMaterial.setBoolean("HardwareShadows", true);

        //ballMaterial.setBoolean("Minnaert", true);
        //ballMaterial.setBoolean("WardIso", true);

        ball.setMaterial(ballMaterial);

Thank you

You’d best compute the normals in a 3D editor so that the mesh is smooth. There is no built in way to do it in JME.

Thank you very much! It’s working now…
I’ve got some difficulties to understand how to export a blender file into ogre3D scene.

NOTES:

  1. Don’t forget to copy “io_export_ogreDotScene.py” into “C:\Program Files\Blender Foundation\Blender\2.72\scripts\addons”
  2. Go to Files -> User Preferences or press CTRL+ALT+U and check “Import-export: OGRE Exporter…”
  3. Go to Files -> Export -> Ogre3D (.scene and .mesh)
  4. On the left panel, UNCHEK “Separate Materials”

Your folder should contains by example:
eyeball_l.tga
eyeball_r.tga
heavy.material
heavy.mesh.xml
heavy_head.tga
hvyweapon_normal.tga
hvyweapon_red.tga

  1. You can import your .xml into JMonkey :o)

Here is the result:
Heavy

Nice model