EntityAlpha no effect on meshes?
Blitz3D Forums/Blitz3D Programming/EntityAlpha no effect on meshes?
| ||
Hi, I have imported several (.x and .3ds) meshes, but EntityAlpha entity,0.5 doesnt do anything. Is this a bug, or...? Thanks. Jeroen |
| ||
Is this a bug, or...? Probably not.For N = 1 to CountChildren(Entity) EntityAlpha GetChild(Entity,N),0.5 NextIf that doesn't work, there might be another problem and it would help to post more info about the model and how you're loading it (LoadMesh or LoadAnimMesh etc). |
| ||
YAY! That worked! Something to put in the manual for the Blitz devs. Thanks GfK! |
| ||
Do you know why though? The answer is because when you load an anim mesh, the mesh can have an hierarchy. Parents can have children. Often, the first parent is a dummy node, hence entityalpha not having an effect. Using LoadMesh will squash all parents and children into one lump though. |
| ||
It would be far simpler for EntityAlpha to have a 'recursive' flag. |