Currently, the surface of the hover tank looks a bit like a cheap toy: the grooves in the material look painted on, and the material looks more like plastic than metal. One thing you want to avoid is adding extra polygons to the mesh just to make the grooves three-dimensional.
Let's try a more professional solution and add a so-called normal map:
Make sure you have the
Models/HoverTank/tank_normals.png
texture in yourassets
directory.This line generates the tangent data that describes your model's surface. Add it before the
setMaterial()
line in yourHoverTank.java's simpleInit()
method:TangentBinormalGenerator.generate(tank);
Load the normal map into the material. Again, add these lines before the
setMaterial()
line:TextureKey tankNormal = new TextureKey("Models/HoverTank/tank_normals.png", false); mat.setTexture("NormalMap", assetManager.loadTexture(tankNormal));
Run the code sample.
Your hover tank is looking better and better. In addition to...