Elvas Tower: Mouse control for 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.
  • 6 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

Mouse control for 3D Cabs Rate Topic: -----

#31 User is offline   ATW 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 638
  • Joined: 07-January 13
  • Gender:Male
  • Simulator:MSTS Open Rails
  • Country:

Posted 22 September 2017 - 06:19 PM

Works well here three. Love the labels as well for controls and displays.

https://scontent-atl3-1.xx.fbcdn.net/v/t31.0-8/21765732_1412130598894560_4233246317710166129_o.jpg?oh=dd8bc08d71fdd95f142c62081067b861&oe=5A5BD504
https://scontent-atl3-1.xx.fbcdn.net/v/t31.0-8/21688209_1412130618894558_885225665509043728_o.jpg?oh=c0193be4827b43cbce6eb580298cef0f&oe=5A45AA9F
https://scontent-atl3-1.xx.fbcdn.net/v/t31.0-8/21950102_1412130608894559_7517726610765680623_o.jpg?oh=d64a4bf50314b36e7ffa2e0fadb6ebb8&oe=5A49E19F
https://scontent-atl3-1.xx.fbcdn.net/v/t31.0-8/21768617_1412130725561214_8753530118601572664_o.jpg?oh=e82a29e248b37ddadc24ac7ab7dde88d&oe=5A40DAC8

#32 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,986
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 24 September 2017 - 02:08 AM

Feature committed in x.3952.

#33 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,986
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 02 October 2017 - 11:46 PM

With x.3956 for display coherence the strings showing the cab control pointed by the mouse are no more visible if "Control confirmations" is unchecked.

#34 User is offline   mrmosky 

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

Posted 19 February 2018 - 11:07 AM

I have been trying out this new feature with my 3D cab. It is working really well, and is pretty simple to do; maybe even easier than making the controls work in a 2d cab!

One thing I have found though, is that the sensitive area where the hand appears under mouse control, is located at the pivot point of my controls. See the picture. In there you can see the reverser (cutoff) control lever.
Attached Image: Open Rails 2018-02-19 06-56-01.jpg
The place where the hand for mouse control appears is about where the dotted circle is in the picture. I can then move the lever by moving the mouse vertically, and it rotates about the pivot.

Logically, though, one moves a lever by applying the force at the opposite end to the pivot, whatever type of lever it might be. Is there any way the sensitive area could be located at the opposite end of the shape to where the pivot is?

Geoff

#35 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,986
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 19 February 2018 - 12:56 PM

To me there is no simple way to do that, although I recognize the problem. Maybe someone more expert than me in animations is able to find and implement a better solution.

#36 User is offline   mrmosky 

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

Posted 19 February 2018 - 02:33 PM

You have done a great job with this so far, and I guess we can live with this slight issue.
Thanks for all your work.
Geoff

#37 User is offline   mrmosky 

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

Posted 19 February 2018 - 11:28 PM

I think that I have a solution for this. I will try it out today and let you know.

Geoff

#38 User is offline   mrmosky 

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

Posted 20 February 2018 - 06:15 AM

My method works.

What I figured was that the mouse control was centred on the part axis. So if I moved the axis of the part to the handle end, then the mouse would activate on that end. The only problem with this is that the animation is defined from the part axis. So a rotation would now be about the handle, rather than the pivot. In order to correct this, a translation motion needs to be added to the lever to bring the pivot point back into the correct place.

It's easier to explain with pictures.

Attached Image: Animate_lever1.jpg

Here is the lever shown in Train Sim Modeler, at its start position. I have already moved the axis of the part to the handle end from the pivot point.

Attached Image: Animate_lever2.jpg

This is a picture of the lever after rotating to it's first position, 5 degrees rotation. As it has rotated about the handle, the pivot point is no longer centred on the shaft. Here I pressed the Set Rotation button to record the rotation step.

Attached Image: Animate_lever3.jpg

Now I moved the part in Y and Z axes to replace the pivot point central to the shaft. Then the Set Motion is recorded. The same procedure was done for all 9 animation frames.

When I tried it in OpenRails, the mouse control was activated at the top end of the lever, as required.
I don't know about other 3d modelling tools, but this is easy to do in TSM. You could calculate the needed translation coordinates easily enough, it's just trigonometry.

Geoff

#39 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,857
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 20 February 2018 - 11:23 AM

View Postmrmosky, on 20 February 2018 - 06:15 AM, said:

My method works.

This sounds really good, Geoff. Well done indeed.

Any chance of a video clip showing it in action? I would like to include video clips of new features for the next release of OR.

#40 User is offline   mrmosky 

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

Posted 20 February 2018 - 11:41 AM

I'll make a short video tomorrow, and see how it looks.
Geoff

  • 6 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • 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