MD2 animation skip with camera

Blitz3D Forums/Blitz3D Programming/MD2 animation skip with camera

Rage_Matrix(Posted 2005) [#1]
Hi,

When moving my camera in B3D using

.ProcessCamera
If KeyDown(KEY_LEFT) Then
TranslateEntity(mainCamera%, -2, 0, 0)
EndIf
If KeyDown(KEY_RIGHT) Then
TranslateEntity(mainCamera%, 2, 0, 0)
EndIf
If KeyDown(KEY_UP) Then
TranslateEntity(mainCamera%, 0, 0, 1)
End If
If KeyDown(KEY_DOWN) Then
TranslateEntity(mainCamera%,0, 0, -1)
End If
Return

the animations on my MD2 models sometimes skip frames really badly when the camera is moving....but when the camera is motionless, the MD2 models animation plays normally. Is this some sort of floating point error or frame count problem or something? Can anyone tell me why?

Thanks.


puki(Posted 2005) [#2]
I've never noticed it when I have used .md2 models. Although, I never move the camera based on setting '%' integer type. What happens when you remove all of your '%'s relating to the camera - including when you set the camera up (and if you create a global)?