Multitexturing Alpha Layers

Hello,



Firstly, sorry if this question has been asked before - I’ve done a few searches on the forums and couldn’t find the answer… however, there is a whole load of information here so I could’ve missed something…



… anyway, on to my first (of probably many) question(s).  I’ve been trying to multitexture a sphere with two different textures, in this case, as a test, a test planet Earth.  The first texture shows the land the sea, the second shows the clouds… or rather it doesn’t.  Whatever I try (white on black, black on white, shades of white… etc) it always ends up showing the space where the clouds should not be as opposed to where they should be.



So, my question is (or rather, my question are)… how do I set which colour is the alpha colour?  Is setting it possible?



The images I’ve tried so far:

http://us341872.bizhostnet.com/space/IMG/earth_clouds.jpg

http://us341872.bizhostnet.com/space/IMG/earth_clouds_inv.jpg



Lastly, as a bonus for ten, can I apply different effects to each texture layer?



Looking forward to any pointers anyone can give me…



Thanks in advance,

Paul Hutson aka Phutty

how do I set which colour is the alpha colour?  Is setting it possible?

You're probably using the MODULATE mode, which causes the effects you're talking about.
If your cloudmap is white, with the background being black, you can use the ADD multitexture mode. If you have an alpha channel that you want to use for blending instead, use the DECAL mode.

an I apply different effects to each texture layer?

What kind of effects?

Thank you for the quick response, much appreciated!



#Start Edited Section

For reference, is this the way to do what you said:


  Texture t2 = TextureManager.loadTexture(TestBoxColor.class.getClassLoader().
                                            getResource("testing/earth_clouds.jpg"),
                                            Texture.AM_DECAL, Texture.AM_DECAL);



- or am I doing something wrong?  It doesn't seem to do what I'd like, but I rather suspect it's because I'm being a bit muppet'y.. :)
#End

Momoko_Fan said:

an I apply different effects to each texture layer?

What kind of effects?


For instance, I'd like to add another layer.. so the layers would be: Land, Water, Clouds.  The water layer I'd like to make reflective.. or at least show a sort of reflective glow...

Any ideas?

Later I might try to make another layer that shows up on the darkside of Earth with just the lights of the cities showing up...