Elvas Tower: 3D Cabs - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 80 Pages +
  • « First
  • 62
  • 63
  • 64
  • 65
  • 66
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3D Cabs Rate Topic: -----

#631 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 268
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 09 November 2020 - 07:35 AM

 Amtrak777, on 17 October 2020 - 02:44 PM, said:

Hello guys. So I'm needing some help trying to figure out how I can do this dotted speedo as gauge. Each light lights up each miles per hour. I already got the digital speedo part working just looking to get the dots part to function.
https://i.gyazo.com/66261b5380ddba0efedde33003f18975.png


Hi Amtrak777. Read This:

http://www.elvastowe...post__p__264455

#632 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 268
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 11 November 2020 - 04:33 AM

Hello!

There's one thing I can't get working right now. To put 2 3d cabs on the front and end vehicles of an electric train composed of multiple units. In this case there are three but they could start being two and then be more.

I create the two cabins, inverted one with respect to the other, I put the necessary codes, but when I enter the game, when I change the cabin through Control+E, I appear in the other end of the vehicle although the data are inverted with respect to the head vehicle.

If I press Alt+1, indeed appears the 2d cabin, but then, when I put the inverter in forward, the train moves backwards, as if it was still in the front cabin.

Is there any thread that talks about the issue or some kind of solution? Thank you very much!

#633 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 11 November 2020 - 06:00 AM

When I made a multiple unit, with 3d cabs, I had the cabs both facing forwards, then when I created the consist, I reversed the rear unit. That worked for me.
Geoff

#634 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 268
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 11 November 2020 - 06:36 AM

 mrmosky, on 11 November 2020 - 06:00 AM, said:

When I made a multiple unit, with 3d cabs, I had the cabs both facing forwards, then when I created the consist, I reversed the rear unit. That worked for me.
Geoff


Of course Geoff, I have inverted the rear unit and it works, but on the one hand, the view appears in the position farthest from the interior of the cab, and on the other hand, from that rear cab the train moves backwards, that is, I have to invert the gear of the train so that it moves forward.

Thanks anyway, I keep trying things to see if I can do it.

#635 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 268
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 11 November 2020 - 07:39 AM

Well.

After multiple tests, I am seeing that placing another 3D cab at the other end of a multi-unit train (and making it work) is not possible in Open Rails.

First, because the position of the view when entering the view of that second 3D cab, is always the same as in the head unit cab 3D.

And second, because the digital controls of type SPEEDOMETER:0:20 or CLOCK:0:6 in that second 3d cabin, don't show anything at all. I do not know if someone of the staff or related to it can provide more information. Besides I have looked all over the forum and I don't see anything. :shout:

#636 User is offline   cesarbl 

  • Conductor
  • Group: Status: Active Member
  • Posts: 395
  • Joined: 30-March 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 11 November 2020 - 09:10 AM

Antuan,
I have sent you a fix which I hope will work for your situation.

I'll have a look at digital controls too.

#637 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 11 November 2020 - 10:18 AM

There is a way to get the cab views correct. I will take a look tomorrow and see if I can remember how it is done.
Geoff

#638 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 268
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 11 November 2020 - 04:02 PM

 cesarbl, on 11 November 2020 - 09:10 AM, said:

Antuan,
I have sent you a fix which I hope will work for your situation.

I'll have a look at digital controls too.


Thanks to Cesar, I have been able to make a lot of progress on this issue of placing functional 3d cabs at both ends of a train.

For that, he has given me an experimental version of Open Rails in which the issue is solved. Hopefully this solution will soon be part of some more official version of the simulator, so that everyone can enjoy it. On the way, I have seen that the central line of the code:

            StartDirection ( 12 180 0 )


...if it is 180, when we enter the rear 3d cab, we look in the right direction. This particular function, as well as the train moving forward from the rear cabin, is thanks to the settings in this experimental version of OR, in the "official" versions they do not work.

So far, so good. But...

A new "problem":

Attached Image: reverse3dcab.jpg

As shown in the picture, the digits of SPEEDOMETER:0:20 and CLOCK:0:6 are 180º reversed. There is no way to place the cubes in TSM so that the digits are shown in the correct position, and any modification in the .s file, for example in the line:

matrix SPEEDOMETER:1:20 ( 1 0 0 0 1 0 0 0 1 0.269001 2.31 -8.22 )


...creates deformations of all kinds in the cube and also in the digits. This is very useful to achieve the correct inclination with respect to the cab panel in the case of the front 3d cab, but in the reverse, the digits always appear 180º with respect to the position of the car.

Is there any way to place these parts so that the digits are shown correctly? Thanks again for the ideas!

#639 User is offline   cesarbl 

  • Conductor
  • Group: Status: Active Member
  • Posts: 395
  • Joined: 30-March 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 12 November 2020 - 08:54 AM

Currently OR doesn't support having only a rear 3D cab. I have made this patch which uses a logic similar to the one used in 2D cabs:
diff --git a/Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs b/Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs
index afdd25857..5cb97e349 100644
--- a/Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs
+++ b/Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs
@@ -714,7 +714,14 @@ protected CabView3D BuildCab3DView()
             if (!(this is MSTSSteamLocomotive))
                 InitializeFromORTSSpecific(cvfFilePath, extendedCVF);
 
-            return new CabView3D(cvfFile, CabViewpoints, extendedCVF, CabViewType.Front, noseAhead, shapeFilePath);
+            var cabViewType = CabViewType.Front;
+            if (CabViewpoints.Count == 1 && ((CabViewpoints[0].StartDirection.Y >= 90 && CabViewpoints[0].StartDirection.Y <= 270)
+                 || (CabViewpoints[0].StartDirection.Y <= -90 && CabViewpoints[0].StartDirection.Y >= -270)))
+            {
+                CabViewpoints.Insert(0, new PassengerViewPoint());
+                cabViewType = CabViewType.Rear;
+            }
+            return new CabView3D(cvfFile, CabViewpoints, extendedCVF, cabViewType, noseAhead, shapeFilePath);
         }
 
         /// <summary>
diff --git a/Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs b/Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs
index 02dab1e3c..d05ad4fd3 100644
--- a/Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs
+++ b/Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs
@@ -1639,7 +1639,7 @@ public bool HasFront3DCab
             {
                 var loco = this as MSTSLocomotive;
                 var i = (int)CabViewType.Front;
-                if (loco == null || loco.CabView3D == null) return false;
+                if (loco == null || loco.CabView3D == null || loco.CabView3D.CabViewType != CabViewType.Front) return false;
                 return (loco.CabView3D.ViewPointList.Count > i);
             }
         }

If there aren't any side effects or other concerns, I will submit it to GitHub.

#640 User is offline   Laci1959 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 948
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 29 November 2020 - 08:59 AM

I have been using the solution below for years and it works great.

ORTS3DCab (
ORTS3DCabHeadPos ( 0.7 3.2 7.06 )
ORTS3DCabFile ( cab_or.s )
RotationLimit ( 10 90 90 )
StartDirection ( 0 0 0 )
Sound ( "M62cab.sms" )
)
ORTS3DCab (
ORTS3DCabHeadPos ( -0.7 3.2 -7.06 )
ORTS3DCabFile ( cab_or.s )
RotationLimit ( 10 90 90 )
StartDirection ( -0 180 0 )
Sound ( "M62cab.sms" )
)

  • 80 Pages +
  • « First
  • 62
  • 63
  • 64
  • 65
  • 66
  • Last »
  • 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