Jerky superelevation effect
#11
Posted 04 July 2016 - 11:23 PM
#12
Posted 05 July 2016 - 12:03 AM
Now I have put a real RunactivityLAA.exe within Superelevation3.zip that you find in post #8. The grey cars should disappear.
#13
Posted 05 July 2016 - 09:03 AM
So I opened a blueprint here https://blueprints.l...racking-cameras .
I hope it is approved, because here I see only opinions in favour of the removal of camera inclination.
#14
Posted 06 July 2016 - 09:43 AM
Here is the Trello post
#15
Posted 06 July 2016 - 11:37 AM
#16
Posted 07 July 2016 - 12:45 PM
Csantucci, on 01 July 2016 - 10:01 AM, said:
I have now isolated what I think could be a test case, in the Europe1 route, with attached path
Testfreightweight.zip
More or less at this point
Jerky.jpg
the loco abruptly changes inclination, which can be best seen with camera #8. Coming from the left (from the switch) the loco inclines, however after some meters it returns to an almost vertical position. I checked with the route editor what track pieces are present there. After the switch there is a curved section A1tEndPnt10dLft.s and then a curved section A1t500r20d.s. When the loco reaches this second section, the loco inclination is abruptly reduced.
With release 1.0 the transition is smooth.
The code in 1.0, which you've included in your patch, is quite the wrong way to do things IMHO. It is not fixing the super-elevation at all (which would benefit multiple bits of code) but just applying an arbitrary smoothing to the visuals - and one which is not deterministic.
The real problem is the code which calculates the super-elevation values, which I did not change.
Csantucci, on 01 July 2016 - 10:01 AM, said:
Csantucci, on 05 July 2016 - 09:03 AM, said:
So I opened a blueprint here https://blueprints.l...racking-cameras .
I hope it is approved, because here I see only opinions in favour of the removal of camera inclination.
I'm not in favour of it, so not everyone, but if there's no other objections (I thought someone else also liked it my way but can't see who) I'll approve it.
#17
Posted 07 July 2016 - 11:20 PM
James Ross, on 07 July 2016 - 12:45 PM, said:
The real problem is the code which calculates the super-elevation values, which I did not change.
I agree that it is a problem of the superelevation code, that you didn't change. I tried to look at it with no success up to now.
As in this case the visual aspect is very important, in my opinion returning to the original filter is an acceptable provisional mitigation of the problem. I have no other ideas and would be happy to commit it at the moment.
James Ross said:
Thank you.
What about train tilting, that has removed from the code? May I re-introduce it?
#18
Posted 08 July 2016 - 02:23 AM
Csantucci, on 07 July 2016 - 11:20 PM, said:
As in this case the visual aspect is very important, in my opinion returning to the original filter is an acceptable provisional mitigation of the problem. I have no other ideas and would be happy to commit it at the moment.
Please include a comment like this for future generations:
// TODO This is a hack until we fix the super-elevation code as described in http://www.elvastower.com/forums/index.php?/topic/28751-jerky-superelevation-effect/
Csantucci, on 07 July 2016 - 11:20 PM, said:
Hmm, it wasn't intentionally removed, although the code was extensively changed in some places so quite possibly got lost. What's the patch look like, is it really simple?
#19
Posted 08 July 2016 - 03:06 AM
James Ross, on 08 July 2016 - 02:23 AM, said:
// TODO This is a hack until we fix the super-elevation code as described in http://www.elvastower.com/forums/index.php?/topic/28751-jerky-superelevation-effect/
Thank you, done and uploaded in x.3593.
James Ross said:
I still have to prepare it, and will attach it when ready.
#20
Posted 19 October 2016 - 11:18 AM
James Ross, on 07 July 2016 - 12:45 PM, said:
I'm not in favour of it, so not everyone, but if there's no other objections (I thought someone else also liked it my way but can't see who) I'll approve it.
Could you pls. approve blueprint https://blueprints.l...racking-cameras , so that I can upload the patch?