Ok, here is...
I attach a video with the problem.
Now, my model look fine but the transition is very bad.
This is my code:
sync on
sync rate 0
autocam off
position camera 0,50,50
rotate camera 0,180,0
POSITION LIGHT 0, 0,250,250
load object "mediaStephenNoAnims.dbo",1
`load object "mediaStephenFinal.x",1
load image "mediaStephenB.jpg", 1
`EXTRACT ANIMATIONS
remstart
EnAn_objExtractAnimation 1, "mediaStephenIdle1.anim" ,1,22
EnAn_objExtractAnimation 1, "mediaStephenWalkMed.anim" ,23,44
EnAn_objExtractAnimation 1, "mediaStephenRunMed.anim" ,45,61
EnAn_objExtractAnimation 1, "mediaStephenRunFast.anim" ,62,74
EnAn_objExtractAnimation 1, "mediaStephenPunch1.anim" ,75,104
EnAn_objExtractAnimation 1, "mediaStephenHitBat1.anim" ,105,113
EnAn_objExtractAnimation 1, "mediaStephenHitBat2.anim" ,114,147
EnAn_objExtractAnimation 1, "mediaStephenJumpSplit.anim" ,148,167
EnAn_objExtractAnimation 1, "mediaStephenGetHitted.anim" ,168,181
EnAn_objExtractAnimation 1, "mediaStephenDeath1.anim" ,182,220
EnAn_objExtractAnimation 1, "mediaStephenDeath2.anim" ,221,289
EnAn_objExtractAnimation 1, "mediaStephenBackWalkMed.anim" ,290,311
EnAn_objExtractAnimation 1, "mediaStephenReadyM.anim" ,312,343
remend
`CREATE ANIMATION VARIABLES
StephenIdle1 = EnAn_animLoad( "mediaStephenIdle1.anim" )
StephenWalkMed = EnAn_animLoad( "mediaStephenWalkMed.anim" )
StephenRunMed = EnAn_animLoad( "mediaStephenRunMed.anim" )
StephenRunFast = EnAn_animLoad( "mediaStephenRunFast.anim" )
StephenPunch1 = EnAn_animLoad( "mediaStephenPunch1.anim" )
StephenHitBat1 = EnAn_animLoad( "mediaStephenHitBat1.anim" )
StephenHitBat2 = EnAn_animLoad( "mediaStephenHitBat2.anim" )
StephenJumpSplit = EnAn_animLoad( "mediaStephenJumpSplit.anim" )
StephenGetHitted = EnAn_animLoad( "mediaStephenGetHitted.anim" )
StephenDeath1 = EnAn_animLoad( "mediaStephenDeath1.anim" )
StephenDeath2 = EnAn_animLoad( "mediaStephenDeath2.anim" )
StephenBackWalkMed = EnAn_animLoad( "mediaStephenBackWalkMed.anim" )
StephenReadyM = EnAn_animLoad( "mediaStephenReadyM.anim" )
`OAC VARIABLE, COMMAND(OBJECTID)
oacID = EnAn_oacCreate(1)
`SAVE AND EMPTY COPY OF OUR MODEL
`if file exist("mediaStephenNoAnims.dbo") = 1 then delete file "mediaStephenNoAnims.dbo"
`EnAn_objSaveNoAnims 1, "mediaStephenNoAnims.dbo"
texture object 1,1
EnAn_SetDefaultPlaySpeed 10
EnAn_AnimSetPlaySpeed StephenIdle1, 5
EnAn_AnimSetPlaySpeed StephenReadyM, 5
EnAn_AnimSetPlaySpeed StephenWalkMed, 15
EnAn_AnimSetPlaySpeed StephenRunFast, 18
EnAn_AnimSetPlaySpeed StephenBackWalkMed, 10
EnAn_oacPlayAnim oacID, 1, StephenIdle1, 0, 0,-1, 1, 0
time = timer()
`--------
`SOME VARIABLES
running as boolean
moving as boolean
running = 0
moving = 0
`--------
DO
`Point the object
POINT CAMERA 0, object position x(1), object position y(1)+25, object position z(1)
`--------------
`Anims
if shiftkey() = 1 and upkey() = 1
running = 1
moving = 1
EnAn_oacAnimTransition oacID, 1, StephenRunFast, 0, 0,-1, 200, 1, 0
endif
if upkey() = 1 and running = 0
moving = 1
EnAn_oacAnimTransition oacID, 1, StephenWalkMed, 0, 0,-1, 200, 1, 0
endif
if downkey() = 1
moving = 1
EnAn_oacAnimTransition oacID, 1, StephenBackWalkMed, 0, 0,-1, 200, 1, 0
endif
if controlkey() = 1 and moving = 0
EnAn_oacAnimTransition oacID, 1, StephenReadyM, 0, 0,-1, 200, 1, 0
endif
if controlkey() = 0 and moving = 0
EnAn_oacAnimTransition oacID, 1, StephenIdle1, 0, 0,-1, 200, 1, 0
endif
if controlkey() = 1 and spacekey() = 1
EnAn_oacAnimTransition oacID, 1, StephenPunch1, 0, 0,-1, 200, 1, 0
endif
running = 0
moving = 0
`-------------
`set object frame 2,EnAn_oacGetCurrentFrame(oacID, 1)
`Get the amount of elspsed time since the last time check
elapsedTime = timer() - time
`Reset the time check
time = timer()
`UPDATE THE OAC
EnAn_oacUpdate oacID, elapsedTime
sync
loop
If you see, even the normal anim is not good, at the end of each anim there is some kind of keyframe swaping or something. If i play the animation with the internal command of DBP it looks fine.
Can you suggest me something?
[EDIT]
This model was opened an saved with the file that you suggested to me.
Regards
@+
Forgotten Memories W.I.P