Game Development Community

setMeshHidden and texture alpha bug

by deepscratch · in Torque 3D Professional · 10/01/2012 (10:33 pm) · 0 replies

hi all.

I've noticed a bug when using setMeshHidden and a mesh with an alpha texture.

I am using setMeshHidden to hide and unhide 2 different meshes in the same model, one mesh has a texture without alpha, the other mesh has a texture with alpha.

when the mesh without alpha is hidden, the other mesh is unhidden.

heres the bug...

when the mesh without alpha is hidden and the mesh with alpha is unhidden, the unhidden mesh with alpha "dissapears" at certain viewing angles, I have traced it down to the alpha in the texture, but dont know where to start to fix it.

its reapeatable, set a mesh with no alpha hidden and unhide the mesh with alpha, you'll see the issue.

note: this is with a model with sub-meshes, one with alpha, the other without.

any help or suggestions would be great.

thanks in advance.