Noob question:-D

Blitz3D Forums/Blitz3D Programming/Noob question:-D

Kissme(Posted 2004) [#1]
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


GfK(Posted 2004) [#2]
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



Kissme(Posted 2004) [#3]
Woot thanks you alot again GFX :) Kiss ya... I go to try your sample code :)

KIss
Stephanie