User Pass
Home Sign Up Contact Log In
Forum > Discuss GLB Issues With Catch22 > NOT A BUG - CLOSED > WR seems to teleport at the end of the play
ACES
offline
Link
 
http://goallineblitz.com/game/replay.pl?game_id=816680&pbp_id=11907764

Not sure if this is a bug or not but it certainly doesn't look right. WR runs route then as the ball is intercepted he appears in the middle of endzone all alone.
 
pottsman
offline
Link
 
It's a visual thing that's been going on on change of possession forever, basically. Happens every punt, too.
It doesn't affect the play, so Bort's never bothered to track it down for good.
 
Jack Del Rio
offline
Link
 
http://goallineblitz.com/game/forum_thread.pl?thread_id=2411378 #7
 
pabst
offline
Link
 
Originally posted by pottsman
It's a visual thing that's been going on on change of possession forever, basically. Happens every punt, too.
It doesn't affect the play, so Bort's never bothered to track it down for good.


Converting from 10fps to 20fps requires the position of a player from two frames to be averaged together to create the intermediate frame. But, the order of the players in the play_data array changes when possession changes occur. Bort checks for occasions when the player id's differ, but the code to fix the problem doesn't work. So, the player's position in one frame is being averaged with a position from an entirely different player which results in a one frame teleport.

replay.js :
// Odd, half frame
69 var data = play_data[cf][ i ];
70 var data2 = play_data[cf + 1][ i ];
71 if (data2.id != data.id) {
72 if (i >= 11) {
73 data2 = play_data[cf + 1][i - 11];
74 }
75 else {
76 data2 = play_data[cf + 1][i + 11];
77 }
78 }
79 updatePlayer(data.id, (data.x + data2.x) / 2, (data.y + data2.y) / 2, data.p && data.p != data2.p ? 2 : data.p);
80
Edited by pabst on Nov 5, 2009 01:16:12
Edited by pabst on Nov 5, 2009 01:15:52
 
r71runner
offline
Link
 
pbr you are my hero!!!
 
RMiller517
offline
Link
 
Thread locked by moderator.
 


You are not logged in. Please log in if you want to post a reply.