scottb613, on 27 September 2019 - 03:08 AM, said:
- How are the models made to be used as splines/lofts - meaning - what's done differently from a static model ?
- Would something like this be possible in ORTS and with just how much of an effort from the programmers (providing we could find an interested party) would it take ?
1. How are the models made :
DTG Train Simulator ( Railworks ) uses a XML text file called a blueprint to describe each scenery object. Its like our .SD file. A loft blueprint contains entries where you can specify several mesh shapes ( like our .s files ).
- starting mesh ( appears at the start of the loft )
- ending mesh
- repeating mesh ( ie telephone poles that get placed along the length - you specify the spacing )
- loft mesh ( joined end to end to fill the spaces between the repeating mesh - eg the telephone wire )
Not every loft uses every type of geometry. Most lofts just use the loft mesh, eg a track berm.
2. Would something like this be possible in ORTS.
The sd file could be extended to accommodate these new elements.
The route editor is the more difficult bit. It would need to be extended with tools for loft placement. In Railworks there is an entire tool panel for this with such features as:
- stretch out a loft from one point to another
- pull a loft around a curve
- place a loft parallel to the track, or to a road, or to another loft
- join one loft to another
- split a loft
- move a loft
- extend a loft
- options to follow terrain or stretch straight
- options to adjust the loft vertically, in Railworks you add handles where you want vertical bends to occur
You would basically be building the cad system that Dave described earlier in the thread.
In addition to the editor tools, the .w world files would need to be extended with a new data structure type to describe the loft placement.
And finally Open Rails (Runactivity.exe) would need to be modified to render the loft 'in game' - relatively speaking, the easy bit.