scaling animated meshes

Blitz3D Forums/Blitz3D Programming/scaling animated meshes

I guess it depends if it's a 3ds/x or b3d animation. you may be able to scale all children of a 3ds recursively. I don't know exactly if the movement animation will be scaled too, but the rotation will work the same, no matter how much you scale it. With b3d it may be harder. I think I remember somebody said you cannot scale the animation, so it will look wrong when you scale the mesh, and not the bones.

However, you should try to scale all children recursively, if they are Meshes at all. Something like this:

Function EntityAnimScale(m,x#,y#,z#)
 If EntityClass$(m)="Mesh"
  ScaleEntity m,x,y,z,0
 Endif
 For i=1 to CountChildren(m)
  ww=GetChild(m,i)
  EntityAnimScale(ww,x,y,z)
 Next
End Function

Or you may try ScaleMesh in this Function.