Material mat_brick = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat_brick.setTexture(“ColorMap”,
assetManager.loadTexture(“Textures/Terrain/BrickWall/BrickWall.jpg”));
.loadTexture("/images/…");
Material mat_brick = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat_brick.setTexture(“ColorMap”,
assetManager.loadTexture(“Textures/Terrain/BrickWall/BrickWall.jpg”));
.loadTexture("/images/…");
Make a new j3m file via File->New File->Material, thats the easiest way.
Can you point in detail?
Make a new j3m file via File->New File->Material, open the j3m file in the Material editor, assign the Unshaded.j3m in the top right and assign your texture to the texture slots. Then load the material using the AssetManager like assetManager.loadMaterial(“Materials/MyMaterial.j3m”) and assign it.
The inside of the introduction, can not make me understand.
I use eclipse develop.
Well no j3m editing for you then. You’ll have to look up the proper texture names in the j3md file. You can still use the SDK for that though, use File->Import Project->External Project assets on your eclipse project.
thank.
For Eclipse development, I compare the habit.