EntityAlpha no effect on meshes?

Blitz3D Forums/Blitz3D Programming/EntityAlpha no effect on meshes?

Jeroen(Posted 2003) [#1]
Hi,

I have imported several (.x and .3ds) meshes, but
EntityAlpha entity,0.5 doesnt do anything.

Is this a bug, or...?
Thanks.

Jeroen


GfK(Posted 2003) [#2]
Is this a bug, or...?
Probably not.
For N = 1 to CountChildren(Entity)
  EntityAlpha GetChild(Entity,N),0.5
Next
If 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).


Jeroen(Posted 2003) [#3]
YAY! That worked!
Something to put in the manual for the Blitz devs.

Thanks GfK!


Rob(Posted 2003) [#4]
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.


GfK(Posted 2003) [#5]
It would be far simpler for EntityAlpha to have a 'recursive' flag.