Object3D.setTextureMatrix() issue?

Started by tao, April 12, 2014, 10:28:02 AM

Previous topic - Next topic

tao

Hi,

I put multiple textures into one texture, and using setTextureMatrix() to play frame animations. The animations works fine, but seems the semi-transparency pixels on original texture becomes fully opaque when it rendered to screen. Can anyone help? Thanks.

Lobby

Have you loaded the texture with flag alpha true? Does the transparency work if you don't apply a texture matrix?

EgonOlsen

I fail to see any relation to the texture matrix. But the blending between textures also affects the alpha channel. So if you add them for example, the alpha channel of the second texture will be added to the first texture. If you don't want this, you either have to use some clever combination of blending modes or use OpenGL ES 2.0 and write your own shader that ignores the second alpha channel.

tao

 ;D My fault ... forgot to set "true" in new Texture().