@TastyLemons said:
I read the documentation on TerrainLighting.jm3d, and it specifies that i can add more than 3 textures to my terrain using texture splatting:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:terrain
I have created 2 alpha maps and attached them to the Material like so:
mat_terrain.setTexture("AlphaMap", alphaT);
mat_terrain.setTexture("AlphaMap_1", alphaT);
They are the same alpha map at the moment.
I then created and attached all of the textures (6 total textures)
Now i am wondering, how do i create an alphaMap manually that will support 6 textures?
Does it use yellow or another color to define the other textures?
How do i manually created an AlphaMap for this situation?
Or do i create two seperate heightMaps?
Thanks
If you have an application that divides rgb in channels, you can create a layer… draw the map you want (black for transparent, white for opaque). Then disable all channels except 1. Say for instance the Red channel for this one.
Then repeat the process for the blue channel and the green channel
In the case of TerrainLighting.j3md … this will be the alpha map used for Diffuse Textures 0, 1 & 2
You have to use another alpha map like the one above to enable diffuse texture 3, 4 & 5
Here is some screens of how to make this work in PhotoShop:
Create a new layer, fill it with black and paint with white:
Select the Channel Tab, turn off all but red, then open the Layer Properties window and uncheck the green and blue channel:
Repeat this process for the green and blue channel… your final image will look like this:
Each channel is used as a separate alpha map…
red = alpha map for diffuse texture 0
green = alpha map for diffuse texture 1
blue = alpha map for diffuse texture 2