Announcement

Collapse
No announcement yet.

Graphical Glitch with Mactier Route Grass

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

    Graphical Glitch with Mactier Route Grass

    I asked this question of the manufacturer, naturally, and sent them logs and screenshots, but never got anywhere with a solution.

    So here's the problem...The grass on the Streamlines Mactier route has a tiny little horizontal strand of pixels that floats above the main body of grass, but only when viewed from a distance. It's annoying.

    I wonder if anyone here has seen similar things and if anyone has got a solution handy?

    #2
    The "manufacturer" was a freeware route creator. The route was subsequently "polished" (scenery enhanced) by multiple other freeware contributors and each version was hosted at different sites. These other sites are simply distributors that charge no money for the route and offer no "annoyance warranty" of any kind. One distributor also offered an equipment pack for sale, built to MSTS specs, even though MSTS is a product they no longer (since 2016?) support or build new material for.
    My Open Rails videos https://www.youtube.com/@lakecities3663/videos

    Comment


      #3
      This occurred year ago in MSTS with trees. The solution was to open the ACE file in an editor like TGA Tool2 and trim the 1 pixel off the top of the ace file, then save the file as 512x512 again (or whatever it was before you trimmed it).

      Paul :-)

      Comment


        #4
        Didn't know you could go "tree-trimming" in MSTS or even today's OR scene

        Comment


          #5
          Hi Folks,

          Yep - three common vegetation issue texture fixes:

          1) The Cruciform - as Paul stated - you need to blank (alpha channel) some pixels around the edges of the vegetation - because textures wrap a couple pixels from the opposite edges. When the vegetation textures have a wider base - you'll notice a wider cruciform floating in the sky. Grass textures by their very nature tend to be the worst offenders.

          2) The Sparkles - when vegetation seems to shimmer or sparkle constantly - you need to add MipMaps to the vegetation textures.

          3) The Flashing - many times you may notice ROW textures - textures that repeat a lot in a scene - all flashing on and off in unison. The fix is to convert the textures to DXT1 compression. DXT3 and DXT5 have a more sophisticated Alpha Channel which I believe is related to the issue. As per a very old post from James Ross - all vegetation should really be DXT1. Most times you can just convert the specific textures that are flashing.

          Regards,
          Scott
          Last edited by scottb613; 01-16-2023, 18:30.
          <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

          Comment


            #6
            Originally posted by scottb613 View Post
            Hi Folks,

            Yep - three common vegetation issue texture fixes:

            1) The Cruciform - as Paul stated - you need to blank (alpha channel) some pixels around the edges of the vegetation - because textures wrap a couple pixels from the opposite edges. When the vegetation textures have a wider base - you'll notice a wider cruciform floating in the sky. Grass textures by their very nature tend to be the worst offenders.

            2) The Sparkles - when vegetation seems to shimmer or sparkle constantly - you need to add MipMaps to the vegetation textures.

            3) The Flashing - many times you may notice ROW textures - textures that repeat a lot in a scene - all flashing on and off in unison. The fix is to convert the textures to DXT1 compression. DXT3 and DXT5 have a more sophisticated Alpha Channel which I believe is related to the issue. As per a very old post from James Ross - all vegetation should really be DXT1. Most times you can just convert the specific textures that are flashing.

            Regards,
            Scott
            Thanks for that!

            This has completely fixed my glitches on the Mactier route. I haven't had time to do ALL of the foliage yet and it appears that the trees are actually doing this too, but for now I have fixed the ones that I notice and annoy me when playing.


            I have a related question:

            What/Where is the game told when to load different textures?

            I have another route (Conrail Indy 3) which experiences a glitch causing a number of tree objects not to correctly load seasonal textures. I have checked and confirmed now, using TGATool, that the correct winter textures are in place in the correct folders.

            It almost looks like, for some reason, these objects are missing a command to actually LOAD the correct winter textures and simply revert to loading summer textures all season, and I'm wondering where I can check up on this?

            Comment


              #7
              https://msts.jovet.net/tutorials/textures1.html may help someone.

              Comment


                #8
                Looks like I need to tackle the flashing textures now, with a bunch of DDS files.

                Is there a good editor or program to use for converting DXT3/5 into DXT1 compression?

                Comment


                  #9
                  Originally posted by Der_Hans View Post
                  Looks like I need to tackle the flashing textures now, with a bunch of DDS files.

                  Is there a good editor or program to use for converting DXT3/5 into DXT1 compression?
                  Hi Folks,

                  Glad the info was helpful.

                  I use a free program created by NVidia called NVDXT - it's a command line texture tool that would require a simple batch file - but it can process a large number of files easily.

                  NVDXT Download:


                  If you're only converting a couple of textures that are flashing - which is what I find most often is the case - Gimp and Paint.net will do it natively - I believe (I don't use them). NVidia also makes a free plugin for Photoshop - that will work in both Photoshop and Paint Shop Pro but I think you need an old version of the plugin for DDS files - the new version doesn't support it. I think I have it stashed somewhere if you need it.

                  Regards,
                  Scott
                  Last edited by scottb613; 02-04-2023, 07:29.
                  <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                  Comment


                    #10
                    Originally posted by jovet View Post
                    Hi Joseph,

                    Nice write up on textures.


                    Regards,
                    Scott
                    <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                    Comment


                      #11
                      Originally posted by charland View Post
                      This occurred year ago in MSTS with trees. The solution was to open the ACE file in an editor like TGA Tool2 and trim the 1 pixel off the top of the ace file, then save the file as 512x512 again (or whatever it was before you trimmed it).
                      Actually, the problem is at the bottom edge of the texture.

                      I made a basic editing tutorial ages ago:


                      I wrote a few detailed explanations about why this happens years ago, but I can only find one of them now and it's a bit worthless since Imageshack blocked all the images. And I can't find the images I used.

                      Comment


                        #12
                        Open the shape in Shapeviewer,
                        Click image for larger version

Name:	sview.jpg
Views:	1
Size:	88.9 KB
ID:	2204581
                        Use Shapeviewer to export a .tga. It will go in the shapes folder.
                        Click image for larger version

Name:	sview2.jpg
Views:	1
Size:	29.4 KB
ID:	2204582
                        Click image for larger version

Name:	shapestga.jpg
Views:	1
Size:	22.6 KB
ID:	2204583
                        Open the .tga in your editing program.
                        Click image for larger version

Name:	USClump1a.jpg
Views:	1
Size:	136.1 KB
ID:	2204584
                        It will include the alpha.
                        Select the bottom couple rows of the texture,
                        Click image for larger version

Name:	selectpix.jpg
Views:	1
Size:	22.3 KB
ID:	2204585
                        and delete,

                        Comment


                          #13
                          Continuing from above.
                          Click image for larger version

Name:	deletepix.jpg
Views:	1
Size:	26.4 KB
ID:	2204586
                          It looks like this when done.
                          Click image for larger version

Name:	USClump1aafter.jpg
Views:	1
Size:	137.2 KB
ID:	2204587
                          Save as a .dds in your textures folder.
                          Click image for larger version

Name:	saveas.jpg
Views:	1
Size:	101.3 KB
ID:	2204588
                          Done.

                          Randy

                          Comment


                            #14
                            Der_Hans said "Looks like I need to tackle the flashing textures now, with a bunch of DDS files. Is there a good editor or program to use for converting DXT3/5 into DXT1 compression?"

                            Route Riter has a batch conversion tool under the Graphics tab

                            Comment


                              #15
                              Hello again guys,

                              Thanks to everyone who contributed here to this thread. I did eventually use the tips you all left for me and have solved almost all of the problems I was facing with those routes. It's been a slow process as I typically am not a dedicated OpenRails player but come back to it when I need a change of pace.

                              I'm saving this thread as screenshots because I know if I don't I'll be back in two years with the same questions!

                              Comment

                              Working...
                              X