I am attempting to load a quad with the material below and no matter what I set the terrain scale to it does not repeat the texture properly. This similar code works properly when using Terrain.j3md. Am I doing something wrong or is there an issue?
[java]Material mat_terrain;
/** 1. Create terrain material and load four textures into it. */
mat_terrain = new Material(assetManager, “Common/MatDefs/Terrain/TerrainLighting.j3md”);
Texture grass = assetManager.loadTexture(“images/grass.jpg”);
grass.setWrap(WrapMode.Repeat);
mat_terrain.setTexture(“DiffuseMap”, grass);
mat_terrain.setFloat(“DiffuseMap_0_scale”, 64f);
mat_terrain.setFloat(“Shininess”, 1f);
mat_terrain.setColor(“Ambient”, ColorRGBA.White);
Quad groundShape = new Quad(2048,2048);
ground1 = new Geometry("Ground",groundShape);
ground1.rotate(-FastMath.HALF_PI, 0, 0);
ground1.setLocalTranslation(new Vector3f (-1024,-.11f, 1024));
ground1.setMaterial(mat_terrain);
ground1.setShadowMode(ShadowMode.Receive);
ground1.setQueueBucket(Bucket.Opaque);
attachToGroundLayer(ground1, true);[/java]
Thank you for your time.