Invisible Locomotive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steamer_ctn
    Member
    • May 2010
    • 87

    #1

    Invisible Locomotive

    Hi,

    I am not sure whether this type of problem has been raised already in regard to OR-677.

    I have a downloaded locomotive that appears ok in MSTS, but is invisible in OR.

    The relevant part of the OR log file appears to be as follows:

    ENV SIGCFG TTYPE TRP(default)CS

    runactivity.exe : Information : 0 : f:\Program Files\Microsoft Games\Train Simulator\trains\trainset\AU_nswgrZ19\AU_NSWGRZ194 0.S
    at ORTS.ORTraceListener.TraceEventInternal(TraceEvent Cache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
    at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
    at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
    at System.Diagnostics.Trace.TraceInformation(String message)
    at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
    at ORTS.StaticShape..ctor(Viewer3D viewer, String path, WorldPosition position, ShapeFlags flags)
    at ORTS.PoseableShape..ctor(Viewer3D viewer, String path, WorldPosition initialPosition, ShapeFlags flags)
    at ORTS.MSTSWagonViewer..ctor(Viewer3D viewer, MSTSWagon car)
    at ORTS.MSTSLocomotiveViewer..ctor(Viewer3D viewer, MSTSLocomotive car)
    at ORTS.MSTSSteamLocomotiveViewer..ctor(Viewer3D viewer, MSTSSteamLocomotive car)
    at ORTS.MSTSSteamLocomotive.GetViewer(Viewer3D viewer)
    at ORTS.TrainDrawer.GetViewer(TrainCar car)
    at ORTS.Viewer3D.GetPlayerLocomotiveViewer()
    at ORTS.Viewer3D.Initialize(RenderProcess renderProcess)
    at ORTS.RenderProcess.Initialize()
    at Microsoft.Xna.Framework.Game.Run()
    at ORTS.Viewer3D.Run()
    at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
    at ORTS.Program.Start(IEnumerable`1 options, String[] args)
    at ORTS.Program.Main(String[] args)




    runactivity.exe : Error : 0 : System.Exception: Unexpected uv_op: uv_op_reflectmap
    at MSTS.uv_ops..ctor(SBR block)
    at MSTS.light_model_cfg..ctor(SBR block)
    at MSTS.light_model_cfgs..ctor(SBR block)
    at MSTS.shape..ctor(SBR block)
    at MSTS.SFile..ctor(String filename)
    at ORTS.SharedShape.LoadContent(String FilePath)
    at ORTS.SharedShape..ctor(Viewer3D viewer, String path)
    at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)

    STTTTTTTTTWWWWWSSSSSSSSSSSSSSSSSSSS$WSSSWWSSSSSSSS SS$W

    The locomotive in question is the "NSW 1916 and 1940" available at:



    What is causing the problem? And is it a problem that can be corrected through OR or will the s file need to be "fixed"?

    Thanks
  • OTTODAD
    1
    • Feb 2001
    • 32344
    • England
    • General

    #2
    Same here.

    Shadows still do not show like they should at noon in Summer.

    O t t o



    Comment

    • paulytechnic
      Senior Member

      • May 2010
      • 152
      • Tampa, FL
      • General

      #3
      Last edited by paulytechnic; 04-13-2011, 07:50.
      Paul
      Virtual Groundskeeper

      Comment

      • danthecpman
        Member
        • Feb 2008
        • 72

        #4
        Originally posted by steamer_ctn
        runactivity.exe : Error : 0 : System.Exception: Unexpected uv_op: uv_op_reflectmap
        at MSTS.uv_ops..ctor(SBR block)
        at MSTS.light_model_cfg..ctor(SBR block)
        at MSTS.light_model_cfgs..ctor(SBR block)
        at MSTS.shape..ctor(SBR block)
        at MSTS.SFile..ctor(String filename)
        at ORTS.SharedShape.LoadContent(String FilePath)
        at ORTS.SharedShape..ctor(Viewer3D viewer, String path)
        at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
        Unexpected uv_op: uv_op_reflectmap, the OR guys have not added support for glossmap and reflectmap, these can be removed from the shape with manual labor, personally I would just not run that loco until OR supports environment mapping.
        sigpic
        West Coast Locomotive Works

        Comment

        • OTTODAD
          1
          • Feb 2001
          • 32344
          • England
          • General

          #5
          No problems with other steam locos.

          O t t o

          Comment

          • danthecpman
            Member
            • Feb 2008
            • 72

            #6
            Otto, read what I posted.
            Originally posted by danthecpman
            The OR guys have not added support for glossmap.
            All the other engines that you show working do NOT have glossmap enabled. The NSW engine DOES have glossmap enabled.

            ANY SHAPE WITH GLOSSMAP WILL FAIL WITH THE CURRENT VERSION OF OPEN RAILS

            Likewise, any shape without Glossmap will work in open rails.
            Last edited by danthecpman; 04-13-2011, 19:58.
            sigpic
            West Coast Locomotive Works

            Comment

            • steamer_ctn
              Member
              • May 2010
              • 87

              #7
              Invisible Locomotive

              Originally posted by danthecpman
              Unexpected uv_op: uv_op_reflectmap, the OR guys have not added support for glossmap and reflectmap, these can be removed from the shape with manual labor, personally I would just not run that loco until OR supports environment mapping.
              Hi,

              Thanks for the reply. This answers my questions.

              Cheers

              Comment

              • OTTODAD
                1
                • Feb 2001
                • 32344
                • England
                • General

                #8
                Originally posted by danthecpman
                All the other engines that you show working do NOT have glossmap enabled. The NSW engine DOES have glossmap enabled.
                Can you show us the part of this or another loco's *.S file where glossmap can be disabled ?

                I am familiar with the TkUtils, having modified MSTS rolling stock shape files for years, placing wheels onto tracks and modifying pantos for use under varying heights of overhead wires.

                O t t o

                Comment

                • danthecpman
                  Member
                  • Feb 2008
                  • 72

                  #9
                  Just chaining the glossmap shader to BlendATexDiff, remove the "uv_op_reflectmapfull (1)" from all the light_model_cfgs, and cut the third digit from the prim_states that have a third digit in the "tex_idxs ( # # # )..." bit, so that it reads "tex_idxs ( # # )...".
                  sigpic
                  West Coast Locomotive Works

                  Comment

                  • GaryG
                    1000 Post Veteran
                    • Nov 1999
                    • 1011
                    • Vancouver, BC, Canada.

                    #10
                    Originally posted by danthecpman
                    Just chaining the glossmap shader to BlendATexDiff, remove the "uv_op_reflectmapfull (1)" from all the light_model_cfgs, and cut the third digit from the prim_states that have a third digit in the "tex_idxs ( # # # )..." bit, so that it reads "tex_idxs ( # # )...".
                    ... or be patient and wait for the next release of ORTS which might not need the modification (perhaps even causing other problems). You also will not need to later undo your changes to get the graphics quality the loco builder intended.

                    GaryG

                    Comment

                    Working...