Changing how many times my texture repeats

Searched for some time in the tutorials but could not find anything that helped me, and i am not even sure the name of the term i am looking for. But:





This is what i have:

http://www.image-share.com/upload/1854/241.png



What i need is this huge texture to repeat many times in x and y, so that each bump is inside one of the triangles(this is a height map made with simplex noise, so they should…).



This is the code i am using to texture the mesh:

[java]

Material mat_stl = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);

Texture rock = assetManager.loadTexture(“Textures/Terrain/splat/zeros.png”);

rock.setWrap(WrapMode.Repeat);

mat_stl.setTexture(“ColorMap”, rock);

[/java]



Edit: oh yes… i will probably have to translate the texture to make it fit the way i want later, i could not find how to do that either :confused:

You need to set the texture coordinates appropriately on your mesh.