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
The spline tool should export more info. Currently only a part of the actual spline information is shown.
Maybe it makes sense to just export a blender python script to generate blender splines. I think OBJ might be too limited.
Collada output could also be an option.
The text was updated successfully, but these errors were encountered:
Each spline point has 1 position and 2 control points (one in the "next" direction, one in the "prev" direction)
Each spline point has up to 2 "next" points, and up to 4 (- only 3 are used) "prev" points (for diversions)
There is 1 control point index, which should be used for the "prev" points
There are 8 (? - only 2 are used) control point indices which should be used for the "next" points. The number of used control points seems to match the number of "next" points.
So I assume that these are cubic bezier curves.
The connection probably looks something like this:
# x = the next point we want to connect
this = spline[first_index]
P_0 = this.pos
P_1 = spline[this.next_control_point_indices[x]].next_control_point
P_2 = spline[this.prev_control_point_index].prev_control_point
P_3 = spline[this.next_point_indices[x]].pos
Note that all of this is based on assumptions, not RE of the games code!
I'm very unsure about how all these indices are are used.
The data structure is documented (unconfirmed) in JayFoxRox#2
The spline tool should export more info. Currently only a part of the actual spline information is shown.
Maybe it makes sense to just export a blender python script to generate blender splines. I think OBJ might be too limited.
Collada output could also be an option.
The text was updated successfully, but these errors were encountered: