Animated 3D mesh.

Blitz3D Forums/Blitz3D Programming/Animated 3D mesh.

Paul "Taiphoz"(Posted 2004) [#1]
Im trying this...

Function load_Tank(File_Name$)
	Local Path$="\models\"+file_name$+"\"
	t.tank = New tank
	;Load the idle frames.
	DebugLog path$+"B_Idle.b3d"
	t\Base=LoadAnimMesh(path$+"B_Idle.b3d")
		;Now Add the extra animations.
		LoadAnimSeq(t\Base,path$+"B_moving.b3d")
	
	t\Turret=LoadAnimMesh(path$+"T_Idle.b3d")
		;Now load the segments.
		LoadAnimSeq(t\Turret,path$+"T_Fire.b3d")
		LoadAnimSeq(t\Turret,path$+"T_Forward.b3d")
		LoadAnimSeq(t\Turret,path$+"T_Back.b3d")
		LoadAnimSeq(t\Turret,path$+"T_left.b3d")	
		LoadAnimSeq(t\Turret,path$+"T_Right.b3d")
		
	t\x=0
	t\y=0
	t\z=0
	
	t\speed=.1
	t\acceleration=.1
	
	PositionEntity t\base,t\x,t\y,t\z
	PositionEntity t\turret,t\x,t\y,t\z
	
	EntityParent t\turret,t\base
	
	
End Function


I have about 6 or 7 Animated mesh's some for the base of a tank and some for the turret of the tank.

From what I read in the docs I should be able to load all those animated mesh's into the one animated mesh and then jusy animate the segments I want.

But I seem to have hit a wall in that its erm not working. It stops on the first loadanimseq call.


Paul "Taiphoz"(Posted 2004) [#2]
No need for a reply here I got it.


napole0n(Posted 2004) [#3]
Could you post the solution?


Agamer(Posted 2004) [#4]
yeh please do so


Agamer(Posted 2004) [#5]
yeh please do so


(tu) sinu(Posted 2004) [#6]
di you just do what you needed after updateworld, if your doing what i think your doing?