Author Message

amilmand

00
Posts: 259

Location: ---
Occupation:
Age:
V$:
#138248   2018-03-03 15:06          
oh we have the spl syntax in the endnotes of the article (LINK)here is the relevant part:
  The .spl file spline row format (%LF is float %d is int) is:
  (%lf %lf %lf) (%lf %lf %lf) %lf %lf %d %lf %lf %d:
  (pos XYZ), (normal XYZ), splineWidth, targetVelocity, I do not know the rest
  the two ints are used as bools
  the list of first two vectors define a closed cubic Hermite spline.

I have posted a program before that can be used to create spl files so the syntax is not directly useful (though this program was not made for general use it is functional)
(originally I made this to define the tournament tracks so there is functionality that is not needed for simple spl generation)
Spls as I mentioned in the article must be closed and this program enforces that and it generates the normals for the control points.
For spl creation you should click Render select the rpk of the map you want to define the spl for.
After it loads select the Marker from the list, you can move around the marker with the middle mouse button held down rotate the camera with the other buttons, if you have the left shift held down the marker will move up/down
The AddSpl button loads an spl file already saved.
Del deletes the closest control point to the marker.
AddNodeAtMarker will add a control point at the marker (keep in mind we are defining a closed spline)
Snap will snap the closest control point to the marker.
SaveSpl is evident.
DuplicateNode will copy and slightly move the closest control point to the marker.
GenAllNorms is not needed the normals will be generated upon saving regardless.
RndSpl will randomize the position of the control points a little.
You can also directly edit the properties of a control point with the text boxes.
MarkStart and MarkFinish are for the tournament definition.
The other controls are for other modes of editing (this program can be used to modify(on a very low level) the map vertices and phys objects by selecting a "different" file extension in the openfiledialog)
Here is a link to the program.
LINK
I must emphasise that this was made for a direct purpose (defining the tournaments in slrrexhaustive) and its code is terrible more of a test or a proof of concept I really wouldn't want to extend this program further before refactoring (nevertheless the source code is available from the SlrrExhaustive main download)
the program needs the .net framework 4.5.2