Interpolated Camera Issues
#1

Interpolated cameras were added in 0.3e RC2, VERY early on, and all throughout the RC stage myself and others reported issues with them and they weren't fixed, which surely is the purpose of the RC stage.. and now they still exist in the final release.
Interpolated cameras are an awesome feature and are being totally ruined by this bug.
I've managed to record the problem:

[ame]http://www.youtube.com/watch?v=ol5OGPGnaWk[/ame]

As you can see, the interpolation skips at 0:17 and 0:39. It also stops sometimes.
It doesn't always skip, it seems very random. Perhaps 1/5 times.

Here's the code I used:

pawn Код:
InterpolateCameraPos(playerid, 2523.975, -1749.962, 57.202, 2277.878, -1313.666, 57.202, 40000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 2523.755, -1749.572, 56.3075, 2277.658, -1313.276, 56.3075, 40000, CAMERA_MOVE);
I got the coordinates from main.scm, they are used in the final credits sequence, and what is interesting is this:

Код:
0936: set_camera 2523.975 -1749.962 57.202 position_to 2514.887 -1733.851 57.202 time 2000 drop_mode 0 
0920: point_camera 2523.755 -1749.572 56.3075 transverse_to 2514.668 -1733.461 56.3075 time 2000 mode 0 

:FINALEC_41780
if 
0933:   camera_position_manipulated 
else_jump @FINALEC_41811 
wait 0 
gosub @FINALEC_57172 
jump @FINALEC_41780 

:FINALEC_41811
0936: set_camera 2514.887 -1733.851 57.202 position_to 2503.344 -1713.386 57.202 time 2000 drop_mode 0 
0920: point_camera 2514.668 -1733.461 56.3075 transverse_to 2503.124 -1712.996 56.3075 time 2000 mode 0 

:FINALEC_41885
if 
0933:   camera_position_manipulated 
else_jump @FINALEC_41916 
wait 0 
gosub @FINALEC_57172 
jump @FINALEC_41885 

:FINALEC_41916
0936: set_camera 2503.344 -1713.386 57.202 position_to 2491.555 -1692.485 57.202 time 2000 drop_mode 0 
0920: point_camera 2503.124 -1712.996 56.3075 transverse_to 2491.335 -1692.096 56.3075 time 2000 mode 0 

:FINALEC_41990
if 
0933:   camera_position_manipulated 
else_jump @FINALEC_42021 
wait 0 
gosub @FINALEC_57172 
jump @FINALEC_41990 

:FINALEC_42021
0936: set_camera 2491.555 -1692.485 57.202 position_to 2479.766 -1671.585 57.202 time 2000 drop_mode 0 
0920: point_camera 2491.335 -1692.096 56.3075 transverse_to 2479.546 -1671.196 56.3075 time 2000 mode 0 

:FINALEC_42095
if 
0933:   camera_position_manipulated 
else_jump @FINALEC_42126 
wait 0 
gosub @FINALEC_57172 
jump @FINALEC_42095 

:FINALEC_42126
0936: set_camera 2479.766 -1671.585 57.202 position_to 2467.731 -1650.249 57.202 time 2000 drop_mode 0 
0920: point_camera 2479.546 -1671.196 56.3075 transverse_to 2467.511 -1649.86 56.3075 time 2000 mode 0
You may not be able to understand it, but if you look at the two most significant lines (set_camera and point_camera - you should be able to figure out what these do) the time is set to 2000 - 2 seconds. The cameras are split up in to 2 second segments, for some reason. This got me thinking, perhaps the skipping is an issue inside GTA: SA itself? I'm not sure how the SA:MP camera interpolation works internally, but this may mean it's not fixable.

The credits never skip though.

Please, PLEASE fix this if possible.

It'd also be nice to toggle the 'speed up' and 'slow down' at the start/end of camera interpolation.
Reply


Messages In This Thread
Interpolated Camera Issues - by MP2 - 17.05.2012, 00:25
Re: Interpolated Camera Issues - by pasha97 - 17.05.2012, 03:25
Re: Interpolated Camera Issues - by BeckzyBoi - 17.05.2012, 04:22
Re: Interpolated Camera Issues - by MP2 - 17.05.2012, 09:04
Re: Interpolated Camera Issues - by milanosie - 17.05.2012, 17:17
Re: Interpolated Camera Issues - by dugi - 17.05.2012, 17:22
Re: Interpolated Camera Issues - by MP2 - 17.05.2012, 17:33
Re: Interpolated Camera Issues - by milanosie - 17.05.2012, 18:27
Re: Interpolated Camera Issues - by MP2 - 17.05.2012, 20:25
Re: Interpolated Camera Issues - by Basssiiie - 18.05.2012, 01:45

Forum Jump:


Users browsing this thread: 2 Guest(s)