Announcement

Collapse
No announcement yet.

What's wrong with my WP3 Track Profile

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What's wrong with my WP3 Track Profile

    I'm outta my comfort zone, cannot figure out why the ballast/tracks appears different in certain areas in the Feather River Route. I've got notes that said the profile came from 3DTrains and also from here...Track profile from TrainSim.com ---- ScaleRail Dynamic Track Profile --- File ID 88545
    Code:
    SIMISA@@@@@@@@@@JINX0p0t______
    
    TrProfile ( "Default Dynatrack profile"
    lodmethod ( 0 )
    chordspan ( 1.0 )
    pitchcontrol ( Chordlength )
    pitchcontrolscalar ( 1 )
    LOD (
    CutoffRadius ( 700.0 )
    
    LODItem ( "Railtops"
    TexName ( "SR_Track_w3a.ace" )
    ShaderName ( "TexDiff" )
    LightModelName ( "OptSpecular25" )
    AlphaTestMode ( 0 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 0 )
    MipMapLevelOfDetailBias ( 0 )
    Polyline ( "left_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.7825 0.325 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( -.4296875 0 )
    )
    Vertex (
    Position ( -0.7475 0.33 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( -.500000 -.1875 )
    )
    )
    Polyline ( "left_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.7475 0.33 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( -.500000 -.1875 )
    )
    Vertex (
    Position ( -0.7175 0.325 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( -.4296575 0 )
    )
    )
    Polyline ( "right_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.7175 0.325 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .4296875 0 )
    )
    Vertex (
    Position ( 0.7475 0.33 0.0 )
    Normal (0 1 0 )
    TexCoord ( .500000 .1875 )
    )
    )
    Polyline ( "right_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.7475 0.33 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .500000 .1875 )
    )
    Vertex (
    Position ( 0.7825 0.325 0.0 )
    Normal (0 1 0 )
    TexCoord ( .4296875 0 )
    )
    )
    )
    
    LODItem ( "Railsides"
    TexName ( "SR_Track_w3a.ace" )
    ShaderName ( "TexDiff" )
    LightModelName ( "OptSpecular0" )
    AlphaTestMode ( 0 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 0 )
    MipMapLevelOfDetailBias ( 0 )
    Polyline ( "left_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.7825 0.180 0.0 )
    Normal ( -1 0 0 )
    TexCoord ( .027343 .062500 )
    )
    Vertex (
    Position ( -0.7825 0.325 0.0 )
    Normal ( -1 0 0 )
    TexCoord ( .429687 .250000 )
    )
    )
    Polyline ( "left_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.7175 0.325 0.0 )
    Normal ( -1 0 0 )
    TexCoord ( .429687 .250000 )
    )
    Vertex (
    Position ( -0.7175 0.180 0.0 )
    Normal ( 1 0 0 )
    TexCoord ( .027343 .062500 )
    )
    )
    Polyline ( "right_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.7175 0.180 0.0 )
    Normal ( 1 0 0 )
    TexCoord ( .027343 .062500 )
    )
    Vertex (
    Position ( 0.7175 0.325 0.0 )
    Normal ( -1 0 0 )
    TexCoord ( .429687 .250000 )
    )
    )
    Polyline ( "right_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.7825 0.325 0.0 )
    Normal ( 1 0 0 )
    TexCoord ( .429687 .250000 )
    )
    Vertex (
    Position ( 0.7825 0.180 0.0 )
    Normal ( 1 0 0 )
    TexCoord ( .027343 .062500 )
    )
    )
    )
    
    LODItem ( "Railbase"
    TexName ( "SR_Track_w3a.ace" )
    ShaderName ( "BlendATexDiff" )
    LightModelName ( "OptSpecular0" )
    AlphaTestMode ( 1 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 0 )
    MipMapLevelOfDetailBias ( 0 )
    Polyline ( "left_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.8125 0.180 0.0 )
    
    Normal ( 0 1 0 )
    TexCoord ( 0 .085937 )
    )
    Vertex (
    Position ( -0.7825 0.190 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .121093 .273437 )
    )
    )
    Polyline ( "left_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( -0.7175 0.190 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .878907 .085937 )
    )
    Vertex (
    Position ( -0.6825 0.180 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( 1.000000 .273437 )
    )
    )
    Polyline ( "right_inner" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.6825 0.180 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( 0 .085937 )
    )
    Vertex (
    Position ( 0.7175 0.190 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .121093 .273437 )
    )
    )
    Polyline ( "right_outer" 2
    DeltaTexCoord ( 0 5.333334 )
    Vertex (
    Position ( 0.7825 0.190 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .878907 .085937 )
    )
    Vertex (
    Position ( 0.8125 0.180 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( 1.000000 .273437 )
    )
    )
    )
    
    LODItem ( "TiePlates"
    TexName ( "SR_Track_w2a.ace" )
    ShaderName ( "BlendATexDiff" )
    LightModelName ( "OptSpecular0" )
    AlphaTestMode ( 1 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 1 )
    MipMapLevelOfDetailBias ( -1 )
    Polyline ( "left_outer" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -0.8825 0.18 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .046875 -.280582 )
    )
    Vertex (
    Position ( -0.8125 0.20 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .078125 -.280582 )
    )
    )
    Polyline ( "left_inner" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -0.6825 0.20 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .125000 -.280582 )
    )
    Vertex (
    Position ( -0.6175 0.18 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .156250 -.280582 )
    )
    )
    Polyline ( "right_inner" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( 0.6175 0.18 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .046875 -.280582 )
    )
    Vertex (
    Position ( 0.6825 0.20 0.0 )
    Normal (0 1 0 )
    TexCoord ( .078125 -.280582 )
    )
    )
    Polyline ( "right_outer" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( 0.8125 0.20 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .125000 -.280582 )
    )
    Vertex (
    Position ( 0.8825 0.18 0.0 )
    Normal (0 1 0 )
    TexCoord ( .156250 -.280582 )
    )
    )
    )
    
    LODItem ( "Ties"
    TexName ( "SR_Track_w2b.ace" )
    ShaderName ( "BlendATexDiff" )
    LightModelName ( "OptSpecular0" )
    AlphaTestMode ( 0 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 1 )
    MipMapLevelOfDetailBias ( -1 )
    Polyline ( "ties_Lend" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -1.300 0.16 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .222656 -.280582 )
    )
    Vertex (
    Position ( -1.300 0.18 0.0 )
    Normal (0 1 0 )
    TexCoord ( .234375 -.280582 )
    )
    )
    Polyline ( "ties" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -1.300 0.18 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .234375 -.280582 )
    )
    Vertex (
    Position ( 1.300 0.18 0.0 )
    Normal (0 1 0 )
    TexCoord ( .765625 -.280582 )
    )
    )
    Polyline ( "ties_Rend" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( 1.300 0.18 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .765625 -.280582 )
    )
    Vertex (
    Position ( 1.300 0.16 0.0 )
    Normal (0 1 0 )
    TexCoord ( .777343 -.280582 )
    )
    )
    )
    
    LODItem ( "Ballast"
    TexName ( "SR_Track_w1a.ace" )
    ShaderName ( "BlendATexDiff" )
    LightModelName ( "OptSpecular0" )
    AlphaTestMode ( 1 )
    TexAddrModeName ( "Wrap" )
    ESD_Alternative_Texture ( 1 )
    MipMapLevelOfDetailBias ( -1 )
    Polyline ( "ballast_left_shoulder" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -2.30 0.00 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( 0 -.280582 )
    )
    Vertex (
    Position ( -1.45 0.16 0.0 )
    Normal (0 1 0 )
    TexCoord ( .2 -.280582 )
    )
    )
    Polyline ( "ballast_trackbed" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( -1.45 0.16 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .2 -.280582 )
    )
    Vertex (
    Position ( 1.45 0.16 0.0 )
    Normal (0 1 0 )
    TexCoord ( .8 -.280582 )
    )
    )
    Polyline ( "ballast_right_shoulder" 2
    DeltaTexCoord ( 0 .2088545 )
    Vertex (
    Position ( 1.45 0.16 0.0 )
    Normal ( 0 1 0 )
    TexCoord ( .8 -.280582 )
    )
    Vertex (
    Position ( 2.30 0.0 0.0 )
    Normal (0 1 0 )
    TexCoord ( 1 -.280582 )
    )
    )
    )
    )
    )​
    Click image for larger version

Name:	WP3_Ballast-Trk.jpg
Views:	2598
Size:	99.6 KB
ID:	2302881

    Click image for larger version

Name:	WP3_Ballast-Trk1.jpg
Views:	344
Size:	87.1 KB
ID:	2302882
    Cheers, Gerry
    "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
    It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
    Forever, ridin' drag in railroad knowledge.
    Audi, Vide, Tace, Si Vis Vivere In Pace


    #2
    When I came across that, I opened up TSRE and selected the turnouts that were giving me that issue (to get the shapes), then I just made the texture a direct copy of the US_Track3 texture. May not answer your question, but right or wrong, it fixed it.
    Neil

    Chicago Railroading Fan

    Comment


      #3
      This route came with rusty rail alternative 'concrete' textures for the lesser used track segments. There were no concrete tie areas in the modeled era, so the concrete sections for scalerail deployed here were converted to little used rusty rail tracks. Superelevation function is just replacing the curves with fully polished 'mainline' track textures that are not displaying rusty conditions. Does the trackprofile know to deploy two types of textures?
      My Open Rails videos https://www.youtube.com/channel/UClc...1kBPO2A/videos

      Comment


        #4
        Unfortunately, the track profile does not know how to display more than one texture. You have to make a choice on which track appearance will replace dynamic tracks/superelevation, which is fine for most routes but falls apart the moment you touch something like Feather River where not all tracks use the same texture (or worse-not all the tracks use the same set of shapes in the odd cursed case of routes with both xtracks and scale rail).

        Some future investigation is required to see if there's a sensible way to have open rails pick between multiple track profiles depending on the shape of the track it intends on replacing with dynamic tracks.
        ​​​
        ​Contributing to ORTS on GitHub as SteelFill

        Comment


          #5
          All the more reason to break with some of the current constraints.... which the ORTS team won't entertain.

          Track entries, including dynamic track, should have the ability to use an alternate texture.
          Last edited by eric; 05-11-2024, 22:56.
          If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

          Comment


            #6
            Originally posted by qballbandit View Post
            When I came across that, I opened up TSRE and selected the turnouts that were giving me that issue (to get the shapes), then I just made the texture a direct copy of the US_Track3 texture. May not answer your question, but right or wrong, it fixed it.
            Thanks folks, I suppose my only alternative is to teach myself Neil's method. I would hope that since the track profile is already in a dedicated folder, it shouldn't be much of coding chore to have OR recognize more than one texture --- perhaps someone will see a way to do it. Patience, all this takes time and effort.
            Cheers, Gerry
            "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
            It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
            Forever, ridin' drag in railroad knowledge.
            Audi, Vide, Tace, Si Vis Vivere In Pace

            Comment


              #7
              Does the problem go away if you disable superelevation?

              Comment


                #8
                It should... one of the allures of using Scalerail was to help avoid using dynamic track...
                If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                Comment


                  #9
                  It's also a thing for Shasta unfortunately, and the problem will be become much more apparent once the upcoming expansion with 20 miles of McCloud trackage is included. The only way for the McCloud trackage to show correctly as of now is to turn off Superelevation.

                  It would be nice if you could have multiple TrProfiles where each profile has a parameter instructing OR what track shapes it applies to - preferably with the ability to use "wildcards" (the * symbol). For example a ScaleRail concrete tie TrProfile with a filename like TrProfile_SR_Conc.stf would have a line like this with spaces between each group you'd like included for that profile (triple spaces for emphasis here):
                  TrProfileTrackShapes ( SR_1tCrv_c* SR_1tStr_c* SR_1tSwt_c*

                  Then you could set up another separate track profile file for ScaleRail wood bridges, a filename such as TrProfile_SR_Conc.stf which would have a line contained in it like:
                  TrProfileTrackShapes ( SR_1tBrg_c* )

                  And another profile for wood bridge shapes, possibly ones for tunnel shapes, etc. etc. This would also allow use of standard "A" tracks and/or ScaleRail and/or narrow gauge in the same route. To handle shapes where the end of filename is different like the standard/Xtracks concrete shapes, the parameter could be ​​​​​​​TrProfileTrackShapes ( *concrete ) to indicate that the varying part of the filename occurs before the "concrete" portion of the filename. Allowing for wildcards in the middle of word would also be helpful.

                  Perhaps the "default" Track Profile (the one that is used predominantly in that route except when overrode by another track profile) could have:
                  ​​​​​​​TrProfileTrackShapes ( Default )

                  Obviously there would need to be some robust capability built in for ORTS to not crash if someone accidentally set two TrProfiles with overlapping shapes. Probably the best way to handle that would be to revert to whatever the first TrProfile encountered alphabetically

                  Would be pretty neat if this could be fixed before the next Stable version release, wink wink nudge nudge
                  Last edited by PerryPlatypus; 05-12-2024, 22:26.
                  ~Sean Kelly~
                  SP Shasta Route for Open Rails: https://www.trainsimulations.net/sp-shasta
                  MRL Mullan Pass for Open Rails: https://www.trainsimulations.net/mullanpass

                  Comment


                    #10
                    I've never been a fan of how super‐elevation was implemented... it's a glorified one-size-fits-all solution that isn't suitable for every scenario, and should be enabled on intent for specific curves instead of by default for all curves.

                    I have long curved yards in some routes where super-elevation looks ridiculous. So it stays turned off for me.
                    If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                    Comment


                      #11
                      Originally posted by PerryPlatypus View Post
                      It would be nice if you could have multiple TrProfiles where each profile has a parameter instructing OR what track shapes it applies to - preferably with the ability to use "wildcards" (the * symbol). For example a ScaleRail concrete tie TrProfile with a filename like TrProfile_SR_Conc.stf would have a line like this with spaces between each group you'd like included for that profile (triple spaces for emphasis here):
                      TrProfileTrackShapes ( SR_1tCrv_c* SR_1tStr_c* SR_1tSwt_c*
                      This is probably the most effective solution that works retroactively and doesn't require adding custom properties to tracks (though, now that we have a route editor in active development, adding custom properties seems more feasible than ever). As for actual implementation, I have no idea if the wildcard strategy works easily in C# but I do know it's no trouble to check if a string begins with something, ends with something, or contains something. Worst case this would mean parameters for ShapeStartsWith ( "x, y, z" ), ShapeEndsWith ( "x, y, z" ), and ShapeContains( "x, y, z" ). I figure it might also be useful to have parameters to exclude certain shapes (like bridges) when the other parameters would over-count the shapes.

                      Doesn't have to just be file names though, Open Rails knows the list of textures a shape uses so I can imagine some cases might be solved with a parameter like ShapeTexturesContains ( "xyz.ace" ) and/or ShapeTexturesNotContains ( "abc.ace" ). I figure that would work well for Shasta, but maybe not all cases.
                      ​​​
                      ​Contributing to ORTS on GitHub as SteelFill

                      Comment


                        #12
                        I don't run super elevation for the simple fact that, sidings, especially for customers, don't have these types of curves..
                        -Shawn K-
                        Derby Rail Shops
                        Maine Central Mountain Division: 25% Track, 12% Scenery.

                        Comment


                          #13
                          Originally posted by CSRX View Post
                          I don't run super elevation for the simple fact that, sidings, especially for customers, don't have these types of curves..
                          What you posted & others, I've decided not to run it, easiest solution for me, maybe at some point the track profile coding will be improved.
                          Cheers, Gerry
                          "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
                          It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
                          Forever, ridin' drag in railroad knowledge.
                          Audi, Vide, Tace, Si Vis Vivere In Pace

                          Comment


                            #14
                            Originally posted by R. Steele View Post
                            What you posted & others, I've decided not to run it, easiest solution for me, maybe at some point the track profile coding will be improved.
                            After having flat track for years with MSTS and early ORTS, it was extremely exciting to see this feature. Though the longer you used it, the more and more you noticed some spots that didn't require it, or didn't use it to begin with, and looked funky. So I ended up simply turning it off.
                            After awhile, some railroads in the New England region tend to remove the super elevation in their tracks, not particularly on purpose, just out of not knowing how to properly tamp tracks, because it apparently is hard to keep good
                            ​​​​working and knowledge folks with low wages..
                            Last edited by CSRX; 05-15-2024, 12:08.
                            -Shawn K-
                            Derby Rail Shops
                            Maine Central Mountain Division: 25% Track, 12% Scenery.

                            Comment


                              #15
                              When I was working in railroad civil engineering (40 years ago!) there was quite a bit of discussion about if it would be a good practice to reduce or eliminate superelevation on curves in freight only territory to reduce the likelihood of longer and heavier trains stringlining.
                              And since then trains have only continued to get longer and heavier.

                              I personally don't care for the superelevation feature in OR.

                              Comment

                              Working...
                              X