Elvas Tower: Some dynamic tracks render wrong - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Some dynamic tracks render wrong Rate Topic: -----

#1 User is offline   Goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 17 May 2015 - 08:35 AM

Dynamic tracks with positive angles renders wrong.

http://i.imgur.com/6Cn7e8q.png

In msts:

http://i.imgur.com/1JuZSoB.png

Fix is easy, just use -radius for positive angle http://i.imgur.com/cnPtHmo.png

If you don't have route with positive angles in dyntracks, here is one: koniec.org/ccc_dyntracks.zip

#2 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,444
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 17 May 2015 - 10:39 AM

Pls. open a bug report for this.

#3 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,444
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 17 May 2015 - 09:55 PM

goku,
as I understand you have programming skills, you could have a look at DynamicTracks.cs and see if you can provide a patch.

#4 User is offline   Lutz_s 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 162
  • Joined: 31-January 10
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 18 May 2015 - 02:02 AM

Maybe I missed something, but how do you define dynamic tracks with positive angles? The MSTS editor doesn't provide the ability to do this. So one could argue if it's really a bug.

Lutz

#5 User is offline   James Ross 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 5,512
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 18 May 2015 - 09:25 AM

View PostLutz_s, on 18 May 2015 - 02:02 AM, said:

Maybe I missed something, but how do you define dynamic tracks with positive angles? The MSTS editor doesn't provide the ability to do this. So one could argue if it's really a bug.

That explains why it's not come up before and I can relax about this issue for 1.0. Thanks. :lol:

#6 User is offline   Goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 18 May 2015 - 10:15 AM

View PostLutz_s, on 18 May 2015 - 02:02 AM, said:

Maybe I missed something, but how do you define dynamic tracks with positive angles? The MSTS editor doesn't provide the ability to do this. So one could argue if it's really a bug.

I think that absence of positive angles in dynamic tracks is just a bug in RE. MSTS creates track sections for both negative and positive angles and if you change angle value in .w file and sectionidx in route tsection.dat everything works fine in game and RE.
In my editor it'll be core feature for track placing.

#7 User is offline   vince 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,316
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 18 May 2015 - 01:59 PM

View PostGoku, on 18 May 2015 - 10:15 AM, said:

I think that absence of positive angles in dynamic tracks is just a bug in RE. MSTS creates track sections for both negative and positive angles and if you change angle value in .w file and sectionidx in route tsection.dat everything works fine in game and RE.
In my editor it'll be core feature for track placing.

Hi Goku,

Help me understand; By "positive" or "negative" angles do you mean track curve to left or right as viewed along Z axis from the shape pivot?

best,
vince

#8 User is offline   Goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 18 May 2015 - 03:55 PM

Yes. With negative agnle track curve to left and with positive track curve to right.

#9 User is offline   copperpen 

  • Executive Vice President
  • Group: Posts: Elite Member
  • Posts: 3,192
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 19 May 2015 - 01:17 AM

I thought that MSTS dynamic track only curved one way. To get an opposite curve you make a second piece and flip it?.

#10 User is offline   Lutz_s 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 162
  • Joined: 31-January 10
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 19 May 2015 - 04:08 AM

View Postcopperpen, on 19 May 2015 - 01:17 AM, said:

I thought that MSTS dynamic track only curved one way. To get an opposite curve you make a second piece and flip it?.


That's the normal way. Goku has implemented the dynamic tracks in his route editor with both directions. MSTS knew only left curves.

#11 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,794
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 19 May 2015 - 04:30 AM

It's interesting to me that it took 10+ years for someone to try that, instead of just flipping the pieces...

#12 User is offline   copperpen 

  • Executive Vice President
  • Group: Posts: Elite Member
  • Posts: 3,192
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 19 May 2015 - 06:11 AM

View PostLutz_s, on 19 May 2015 - 04:08 AM, said:

That's the normal way. Goku has implemented the dynamic tracks in his route editor with both directions. MSTS knew only left curves.


Ah. That is why the error popped up. . I never did like the MSTS dynamic curve tool. I think I will give the new one a try.

#13 User is offline   Goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 08 December 2016 - 10:39 PM

I see this bug is still not fixed.

But now I see that not only shape rendering is broken, but track paths too. And I don't know how is it even possible? Why train does not just follow TDB and tsection path?

http://www.elvastowe...962#entry211962

#14 User is offline   Goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 09 December 2016 - 02:00 AM

Example route that shows this bug:

http://koniec.org/cc...ntrack_test.zip

Two dyntracks are only rendering wrongly but third dyntrack "20m strt, A .500 100r curve, 20m strt" does something weird things with trains.*

Everything works ok in MSTS Game and MSTS RE.

* It turns out that weird train circles was TSRE bug wisible only in OpenRails.
Was:
TrackSection ( SectionCurve ( 0 ) 40038 30 15 )
Should be:
TrackSection ( SectionCurve ( 0 ) 40038 30 0 )

In MSTS and TSRE it was not visible, because these apps choose between line/curve by SectionCurve ( LINE/CURVE ), not second value.

#15 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,444
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 09 December 2016 - 01:49 PM

The problem is probably in the Decompose method in runactivity\viewer3D\DynamicTrack.cs. Not sure I'll find it out, it's full of matrixes there :sweatingbullets:

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users