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
#2

I have another bag: When camera interpolates it can stop sometimes.
Reply
#3

The issue with the cuff animation not working on CJ skin never got fixed. Neither did being able to climb when cuffed.
Reply
#4

The RC stage didn't fulfil it's purpose.
Reply
#5

Sorry, but why do my reply's about the formule of a Interpolite camera get deleted?
What is the reason behind that?
Reply
#6

It was removed because it has nothing to do with this topic.

Other than that this problem is caused by high fps, so you should either turn the frame limiter on or script it like its done in single player.
Reply
#7

Great, more problems caused by high FPS.

I can't re-create it like single-player because there is a speed up and slow down at the start and end of interpolation.

Surely there's a way to fix it?
Reply
#8

You can,

Set the camera timer to 20 seconds and the timer for the next camera on like 12

That way it will start the next camera before it stops
Reply
#9

No, it will abruptly stop the camera, then regain speed after a couple of seconds.
Reply
#10

Attach the camera to an object and move the object to somewhere? I don't know if that works, I haven't tried it yet.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)