I’m layering an alpha texture on top of non-alpha texture om my custom mesh. I have no issues with the texture with no alpha channel, but I can’t quite get the other one to work.
And are you using the built-in shader-generator? (Or even the fixed-function pipeline?) Or are you using a PBR module, like simplepbr? (Or something else entirely…?)
If you’re using either the shader-generator or the fixed-function pipeline, and you’re not already doing the following, then I’d suggest looking at applying an appropriate texture mode.
Ah, right, everything is “right-out-of-the-box” shaderwise, but the mesh uses two sets of uv coordinates.
One for the base texture, and one for the edge texture. The edge texture is the texture attached at the beginning.
The textures and the TextureStages works individually. Just not combined.
Edit:
Hmh, I’m reading it also ruins lightning data using blend or decal mode? Is that fixable via shader or similar? Would not be right for there to be no lighting on the edges of each tile.
Hmm… I’m not sure of why the textures so applied don’t show transparency, then.
That said, using a custom shader would… pretty much allow you to have the textures blend however you wanted. (Within the bounds of shaders, of course.) Complete with normal-mapping, should you so desire.
As in .setTransparency(TransparencyAttrib.MAlpha)? Thought it was just for if you wanted the object to be transparent.
Either way, No, but just tried setting it, doesn’t seem to work.
Edit:
Could be something to do with the texture loading. Will have to try with a texture loaded the conventional way.
Edit 2:
Yes, it was opencv2 that was the culprit. After following all of your advice AND changing to the way of loading textures from the manual, this was my result.