I want to create a 2d map using a quad with the map image texture.
And I want to let the different part of the map fill with different color.
For example, I create some countries and different countries have different territories, And that territories have different color cover.
So far, I tried to change the color of the material of the quad geom but it only changes the whole geom 's color.
So I don’t know how to do it.
Can somebody give advice to me? Thank you very much.
This is mentioned in one of the first beginner tutorials of JME, unless I am misunderstanding…
/** A simple textured cube – in good MIP map quality. */
Box cube1Mesh = new Box( 1f,1f,1f);
Geometry cube1Geo = new Geometry(“My Textured Box”, cube1Mesh);
Material cube1Mat = new Material(assetManager,
Texture cube1Tex = assetManager.loadTexture(
@javagame said: This is mentioned in one of the first beginner tutorials of JME, unless I am misunderstanding....
sorry, maybe I have spoken unclearly.
My question is that I created a quad geometry as I set the quad geometry to be my background image with a image(map) material(already done)
Then I want to separate the quad geom(map) to many parts and to be cover by colors(each country has one map color).
@harry1315 said: Then I want to separate the quad geom(map) to many parts and to be cover by colors(each country has one map color).
So… make a picture of your map and put it on the quad as a texture…
Or do you want something to happen when you click on a country maybe?