Elvas Tower: Inserting cabview controls in side views of 2D 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.
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Inserting cabview controls in side views of 2D cabs Rate Topic: -----

#1 User is offline   Csantucci 

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

Posted 04 November 2021 - 08:40 AM

Working on this http://www.elvastowe...2d-and-3d-cabs/ (where I have two issues open in 3D cabs) I saw that it would be possible to add a feature to insert cabview controls (e.g. horn button, brake lever, digital displays, gauges and so on) also in the side views of the 2D cabs.
In the .cvf file controls related to the side views must have line ORTSCabViewpoint ( 1 ) for the first side viewpoint listed in the .cvf file (usually the left one) and line
ORTSCabViewpoint ( 2 ) for the second side viewpoint.
A control which is present both in a side and in the main (center) viewpoint will need two entries in the .cvf file, one for the side one (with the additional above line) and one for the main viewpoint.
It works here.

#2 User is offline   Borislav 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 98
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 04 November 2021 - 02:34 PM

You really are giving us cab creators more and more presents, aren't you? :)

#3 User is offline   Eldorado.Railroad 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,021
  • Joined: 31-May 10
  • Gender:Male
  • Country:

Posted 05 November 2021 - 01:21 AM

View PostCsantucci, on 04 November 2021 - 08:40 AM, said:

Working on this http://www.elvastowe...2d-and-3d-cabs/ (where I have two issues open in 3D cabs) I saw that it would be possible to add a feature to insert cabview controls (e.g. horn button, brake lever, digital displays, gauges and so on) also in the side views of the 2D cabs.
In the .cvf file controls related to the side views must have line ORTSCabViewpoint ( 1 ) for the first side viewpoint listed in the .cvf file (usually the left one) and line
ORTSCabViewpoint ( 2 ) for the second side viewpoint.
A control which is present both in a side and in the main (center) viewpoint will need two entries in the .cvf file, one for the side one (with the additional above line) and one for the main viewpoint.
It works here.



Hi Carlo,

With reference to Managing multiple screen pages on a display in 2D and 3D cabs, where we discussed alternate views, I mentioned that I had discovered some years back that 2D cabs allowed for MORE than 2 side views (thank you for clarifying the proper terminology here!). From a proper terminology perspective, we can say that OR allows for "n" side views in 2D cabs. While not wanting to be silly here, would there be a possible allowance for possibly more ORTSCabViewpoint entries, perhaps a maximum of 4-6?


The reason for asking is that for "vintage" North American engineer control stands there is a lot of vertical area to cover with various levers and dials. Additionally, the conductor might also have a brake lever as well. Allowing for more ORTSCabViewpoint would give the modeller the flexibility for higher resolution and greater granularity of the controls for any one view in a 2D cab. With the changes you are allowing for it will allow the modeller to have an easier task of not having needles on dials that require animations with oblique angles!


For this casual reader of this post, using a high quality (read: high polygon and large textures) 3D cab as a basis for 2D cab views allows the option of not having to use a 3D cab at all. The more experienced model makers amongst us will recognize that a 2D cab is more "economical" in the sim and also the 2D cab allows for multiple fixed views that the user can easily navigate. This will all change when we have programmable multiple viewpoints for a 3D cab, but as of this writing there is no blueprint for this feature that I am aware of.


molte gracie, signore Carlo,

Steve

#4 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,862
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 05 November 2021 - 01:48 AM

Hi, Steve.
Thank you for developing the idea, i spoke some days back: that was about pre-set viewpoints for cabs.
Well, since we would have multiple viewports for 2-d cabs (furthermore-with funcional controls&gauges) - then that would be good (IMHO) alternative for 3-d cabs. I concur about more economy of computing resources.

#5 User is offline   Csantucci 

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

Posted 05 November 2021 - 05:58 AM

Looking at the code I believe that more than 2 "side" views are already managed by OR.

#6 User is offline   Eldorado.Railroad 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,021
  • Joined: 31-May 10
  • Gender:Male
  • Country:

Posted 05 November 2021 - 02:43 PM

View PostCsantucci, on 05 November 2021 - 05:58 AM, said:

Looking at the code I believe that more than 2 "side" views are already managed by OR.


Yes!!! That is very true.

What my post asks is whether you would allow for MORE THAN 2 side views WITH controls.

Thanks,

Steve

#7 User is offline   Csantucci 

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

Posted 05 November 2021 - 11:07 PM

View PostEldorado.Railroad, on 05 November 2021 - 02:43 PM, said:

Yes!!! That is very true.

What my post asks is whether you would allow for MORE THAN 2 side views WITH controls.

Thanks,

Steve

Yes of course.

#8 User is offline   Csantucci 

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

Posted 06 November 2021 - 01:15 PM

First release of the feature is now available in ORNYMG 109.

#9 User is offline   Csantucci 

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

Posted 07 November 2021 - 02:42 AM

I had forgotten to add the "digital" cabview controls to the ones that can be displayed also in the side cabviewpoints. ORNYMG 109.1 corrects this.

#10 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,862
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 13 November 2021 - 02:34 PM

First, thank you for progress in cab functionality.
Just a question: you said

Quote

I believe that more than 2 "side" views are already managed by OR.

So, if I understood it right, can we define more, than three viewpoints at the top of *.cvf-file, and then specify ORTSCabViewpoint (3),(4),(5),..., etc. for cab controls&gauges already?

#11 User is offline   Csantucci 

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

Posted 13 November 2021 - 10:39 PM

Yes.

#12 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,862
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 14 November 2021 - 12:07 AM

Worth to try, Carlo :)
We have some cabview folders with variants of *.ace-files for it's side views.
So can we specify controls&gauges as
ORTSCabViewpoint ( n )
Where n is not restricted to be 1 or 2 only?

#13 User is offline   Csantucci 

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

Posted 14 November 2021 - 12:43 AM

Yes.
Clearly you have to add at the top of the .cvf file, before the EngineData() line, a block like the following one for each added cabviewpoint
	CabViewFile ( GP38Right.ace )
	Position ( 1 3.7 6 )
	Direction ( 10 84.22 0 )


#14 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,862
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 14 November 2021 - 01:09 AM

Thanks alot for the code sample, Maestro!
Look, Carlo:
I have just remembered one cabview for our famous locomotive wth double cabs.
It's feature was "right" viewpoint (it was designed at pre-MSTS-bin days), which represented central view from the backward cabin.
Certainly, it included all levers and needles (as opposed to "active" front cab's main picture, where all of that was deleted for further animated *ace's to overlay) so that backward cab was "static".
So, now, we can substitute it by an "active" variant and set-back our locomotive without actual cab-change command?
i.e. change control stand for a while by just cycling viewpoints via right/left arrow keys instead of performing complete "procedure for abandoning the cab", then pressing Ctrl+E, what will swap the track monitor as well... and after that - doing all that again for returning to previous cab...

I would say, as well, about another feature... but now - the feature of the real locomotive:
it has a "Maneure" button, bringing it's power unit to Run1 state while pressed, moving a vehicle to pre-selected (by the reverser) direction carefully.
The button is easyly accessible when the driver stucked from his side window, while performing, e.g. coupling/uncoupling maneurers.
So, thanking Your efforts, we can have such functionality at ORTS now.
Thank you one more (but not the last - I'm sure about that) time!

#15 User is offline   Csantucci 

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

Posted 14 November 2021 - 01:23 AM

Yes, that's possible.

  • 4 Pages +
  • 1
  • 2
  • 3
  • 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