LoadAnimMesh

Blitz3D Forums/Blitz3D Programming/LoadAnimMesh

I load an animation file using loadAnimMesh and apply texture on it but the texture not appear. Why..
The code is something like this.
dat$="a.3ds"
Objek(totalobjek,1)=LoadAnimMesh(CurrentDir()+"resources"+dat$)
Animate Objek(totalobjek,1)
datt$="a.tga"
tex=LoadTexture(CurrentDir()+"resources"+datt$,3 )
EntityTexture Objek(totalobjek,1),tex 

p/s: all loading mesh/bitmap is sucess

dat$="a.3ds"
Objek(totalobjek,1)=LoadAnimMesh(CurrentDir()+"resources"+dat$)
Animate Objek(totalobjek,1)
datt$="a.tga"
tex=LoadTexture(CurrentDir()+"resources"+datt$,3 )
For N = 1 to Countchildren(Objek(totalobjek,1)
  EntityTexture getchild(Objek(totalobjek,1),N),tex 
Next


Thanks man. If work, its really help