PDA

View Full Version : Spline direction problem.



JCitron
December 13th, 2015, 03:54 PM
There's an apparent problem with certain splines, which needs a bit of looking at. See this thread here regarding the subject:

http://forums.auran.com/trainz/showthread.php?125348-Spline-direction-problem&p=1465769#post1465769

Thanks.

John

WindWalkr
December 13th, 2015, 07:21 PM
Thanks. Short answer: it's not a bug.

Longer answer: Spline direction is controlled by the game more strictly than it was in older builds. This is deliberate behaviour and fixes a number of problems with spline rendering. The downside is when you wish to introduce some kind of custom semantics via the spline direction which requires regularly changing the spline direction within a given otherwise-continuous line of spline; that new system makes this much harder to manage.

I haven't looked into the specifics of his problem; we'd need to see the actual assets concerned to determine what workarounds are necessary for him, if any. It would definitely be worth your time to chase this up further and see if you can get a detailed repro.

thanks,

chris

JCitron
December 13th, 2015, 09:59 PM
Will do..

Thanks.

JCitron
December 14th, 2015, 05:07 PM
Hi Chris,

See this here for Antkiller's response:

You can post this link into the dev thread
https://dl.dropboxusercontent.com/u/...90/editing.rar (https://dl.dropboxusercontent.com/u/46608090/editing.rar)
It is include the map and all needed local-modified assets.
This map must be opened in the last build of TS12 or TANE.

There are my original assets with the modified build-number. Please do not distribute it!

In the scene:
1. Flexible rigel. You need to connect central sections.
2. Anchors with the wrong directions.
3. Section insulators with the wrond directed splines.

This problem affects about 1,5k spline assets. Biggest constructor in the trainz world.
I have about 4 years work upon this and I still making new content.

Half year ago i sent some assets to Zec Murphy (support) but we did not talk more...

(From the other thread).

John

TRam__
December 20th, 2015, 01:48 PM
I'll give a simpler example. Just set up "auto generated junctions" with different order of track placement, when "environment color" setted to black.

Two jucntions:
http://i.piccy.info/i9/e70ce09501e6a08ef3944826972f5134/1450636846/65562/981584/2015_12_20_213753_800.jpg (http://i.piccy.info/i9/d559d9c672f9997590f0db59c22cbae4/1450636846/911225/981584/2015_12_20_213753.jpg)http://i.piccy.info/a3/2015-12-20-18-40/i9-9176927/800x424-r/i.gif (http://i.piccy.info/a3c/2015-12-20-18-40/i9-9176927/800x424-r)

The blades of first are rendered correct:
http://i.piccy.info/i9/6e363b44a079fb97c11e700fce82e8cd/1450637095/54421/981584/2015_12_20_213812_800.jpg (http://i.piccy.info/i9/90ab6975f8fe8621045e571089049d4f/1450637095/754356/981584/2015_12_20_213812.jpg)http://i.piccy.info/a3/2015-12-20-18-44/i9-9176937/800x424-r/i.gif (http://i.piccy.info/a3c/2015-12-20-18-44/i9-9176937/800x424-r)

The blades of second are incorrect (flipped x coordinate):
http://i.piccy.info/i9/e98c9ec7beef818d36b76ddd25c1d7ec/1450637152/59617/981584/2015_12_20_213828_800.jpg (http://i.piccy.info/i9/8ae900f3e70c73caf357a5aba3147f61/1450637152/850837/981584/2015_12_20_213828.jpg)http://i.piccy.info/a3/2015-12-20-18-45/i9-9176939/800x424-r/i.gif (http://i.piccy.info/a3c/2015-12-20-18-45/i9-9176939/800x424-r)

The version that "you can always create correct continuous single-direction spline" is wrong. Simplest contr-example is loop...


P.S. build 80129 used.