Forum

QER Motion and Animation Interpolation

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

QER Motion and Animation Interpolation

Postby Stroggos » Sat Apr 25, 2009 1:38 am

i put in the QER Interpolations tutorials into my stock quake engine (now called CQuake and who hasn't) and everytime i build it and use the nailgun the muzzle flash apears instead of flashing on each side like it should you can see the flash in the middle moving right to left and back is there a way to fix it??? I know its not the engine because all it is is GLQuake in 32bits with a few fixes from Fitzquake and DirectQ.
Stroggos
 
Posts: 50
Joined: Tue Apr 14, 2009 11:40 am
Location: Australia

Postby Spike » Sat Apr 25, 2009 3:33 am

test the distance the verticies move between the two frames, and if they're greater than a certain distance apart (limit varies per model) make them snap instead of lerp.

If you can figure out a range of verts to lerp at load time, you may not need to test distance, just don't lerp the muzzleflash verts.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Stroggos » Sat Apr 25, 2009 8:43 am

Thanks
Stroggos
 
Posts: 50
Joined: Tue Apr 14, 2009 11:40 am
Location: Australia


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest