You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CAM/SetCamSplineSmoothingStyle.md
+43-3
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,48 @@ aliases: ["0xD1B0F412F109EA5D"]
9
9
voidSET_CAM_SPLINE_SMOOTHING_STYLE(Cam cam, int smoothingStyle);
10
10
```
11
11
12
+
Sets the smoothing style for a DEFAULT_SPLINE_CAMERA
13
+
Ranges from 0 to 3 in rockstar scripts although there are actually 26
14
+
```
15
+
0: No lead-in or lead-out smoothing
16
+
1: Smooth lead-in
17
+
2: Smooth lead-out
18
+
3: Both lead-in and lead-out are smoothed
19
+
4-6: Longer speed up, lead-in, lead-out, and both in order as above.
20
+
6: see above, but missed a node in testing(?)
21
+
7: Smoothed lead-in, longer smoothed lead-out
22
+
8: Longer lead-in and lead-out than 6, didn't drop node
23
+
9: Constant acceleration
24
+
10: Constant deceleration. Dropped 2 nodes in testing.
25
+
11: Same as 0
26
+
12: 10 but slower lead-in, reaches end node less early
27
+
13: Extremely close to 3, slightly longer lead-in/lead-out
28
+
14: Constant acceleration, dropped last 2 nodes in testing and halted (?)
29
+
15: Very similar to 10, did not drop any nodes.
30
+
16: Long lead-in, dropped 2 nodes in testing, very long leadout.
31
+
17: Constant acceleration, slower speed-up than 9
32
+
18: Same as 17 is to 9, slightly longer lead-out, lingers at end node
33
+
19: Very long lead in and out
34
+
20: Very long, gradual lead-in acceleration at start, gets extremely fast
35
+
21: Same as 20 but for constant deceleration
36
+
22: 20 and 21 combined, long linger at end node. Dropped 2 nodes in testing
37
+
23: Constant acceleration, doesn't complete path before it stops
38
+
24: Same as 23 but with constant deceleration, but completes path
39
+
25: 23 and 24 combined, insanely fast at middle.
40
+
26: No noticable lead-in, misses last 2 nodes in testing
41
+
27+: Alternates between 0 and 26
42
+
```
12
43
13
-
## Parameters
14
-
* **cam**:
15
-
* **smoothingStyle**:
44
+
The above is documented and graphed at [Spline Cam Interp Graphs](https://docs.google.com/spreadsheets/d/1ejyiMcEYrhhQOL0mLe8664UN-vU4Oh-SBqQnVcKlFIk/edit?usp=sharing)
45
+
46
+
```
16
47
48
+
Using 1-3 will result in misalignment from the passed durations for the spline nodes, the overall duration will remain but other nodes will be shortened if smoothing anything.
49
+
50
+
Graph below demonstrates interpolation between 0-1000 and back 10 times.
51
+
52
+

53
+
54
+
## Parameters
55
+
***cam**: The DEFAULT_SPLINE_CAMERA to apply the smoothing to
56
+
***smoothingStyle**: 0 to 3, 0 no additional smoothing, 1 smooth lead-in, 2 smooth lead-out, 3 smooth lead-in & lead-out
0 commit comments