Noob question:-D
Blitz3D Forums/Blitz3D Programming/Noob question:-D
| ||
Hi all, I have a little problem with .3DS format. Dunno why i can't apply EntityAlpha MyObject,0.5 on them :-( Thanks you for helping. KIss Stephanie |
| ||
Its the .3DS hierarchy problem again. If EntityAlpha had a 'recursive' flag it'd be easy. Until then, something like this should work (haven't had time to test):Function RecursiveEntityAlpha(entity%,alpha#) For N = 1 To CountChildren(entity) If EntityClass$(GetChild(entity,N)) = "mesh" EntityAlpha GetChild(entity,N),alpha EndIf If CountChildren(GetChild(entity,N)) > 0 RecursiveEntityAlpha(GetChild(entity,N),alpha) EndIf Next End Function |
| ||
Woot thanks you alot again GFX :) Kiss ya... I go to try your sample code :) KIss Stephanie |