I'm working on mouse control for 3D cabs, and for testing purposes I'd like to have a download link to an electric or diesel locomotive with a complete 3D cab , possibly also with animations of mirror (from the inside) and wipers.
Blueprint: https://blueprints.l...rol-for-3d-cabs
Trello box (already present): https://trello.com/c...ntrol-in-3d-cab
Mouse control for 3D Cabs
#2
Posted 14 September 2017 - 03:15 PM
#3
Posted 15 September 2017 - 05:38 AM
Well, that looks impressive! I got some other link to finished works, so I don't ask you to work faster for me.
#4
Posted 15 September 2017 - 10:01 AM
So here are the runactivity exe replacements for x.3951 that implement mouse control for 3D cabs. I tested it in one cab from asullenger (thank you!) and also with this published trainset http://www.elvastowe...post__p__223286 .
The mouse control is made a bit easier by a helping feature that as a bonus I implemented also for 2D cabs. If you press the left mouse button in a place where there are no controls and move the mouse over the cab keeping the button pressed, you will get the name of the actuation controls when the mouse reaches the right points. So you know where to click then to actuate the command. It must be highlighted that commands for levers and analogous things that have multiple positions must be performed moving the mouse horizontally (for rotating controls and for horizontally moving levers) or vertically (for vertically moving levers) in the direction defined within the .cvf file (so no rotating movements with the mouse). I hope these rules apply for all controls (I didn't yet make many tests). Another point is that you must always start movement at the "center" of the control. So if you move a rotating throttle lever from 0% to 100% you will move the mouse from center e.g. to the left. If after having released the mouse you want to return to zero you must again start from center and go to the right. This is the same as with the 2D cabs, but it could be a bit strange if someone never used the mouse to control cabs.
17/9/17: new release with higher threshold
19/9/17: new patch release here http://www.elvastowe...post__p__225610
The mouse control is made a bit easier by a helping feature that as a bonus I implemented also for 2D cabs. If you press the left mouse button in a place where there are no controls and move the mouse over the cab keeping the button pressed, you will get the name of the actuation controls when the mouse reaches the right points. So you know where to click then to actuate the command. It must be highlighted that commands for levers and analogous things that have multiple positions must be performed moving the mouse horizontally (for rotating controls and for horizontally moving levers) or vertically (for vertically moving levers) in the direction defined within the .cvf file (so no rotating movements with the mouse). I hope these rules apply for all controls (I didn't yet make many tests). Another point is that you must always start movement at the "center" of the control. So if you move a rotating throttle lever from 0% to 100% you will move the mouse from center e.g. to the left. If after having released the mouse you want to return to zero you must again start from center and go to the right. This is the same as with the 2D cabs, but it could be a bit strange if someone never used the mouse to control cabs.
17/9/17: new release with higher threshold
19/9/17: new patch release here http://www.elvastowe...post__p__225610
#5
Posted 17 September 2017 - 07:16 AM
Thanks for the initiative to activate the mouse in the 3D Cab, I've tried the patch and it works good!
Only the throttle lever I've tested has a somewhat too small active area, too much related to the axis of the lever, but one can get used to it easely.
The active area of the same lever is a bit too low, which is certainly on my 3D-Cab-model. So it is now a disadvantage that I have modelled the axis-cylinder of the lever that large, that it stucks that deep in the console.
The Cab-View is part of this download: 3DCabView
Only the throttle lever I've tested has a somewhat too small active area, too much related to the axis of the lever, but one can get used to it easely.
The active area of the same lever is a bit too low, which is certainly on my 3D-Cab-model. So it is now a disadvantage that I have modelled the axis-cylinder of the lever that large, that it stucks that deep in the console.
The Cab-View is part of this download: 3DCabView
#6
Posted 17 September 2017 - 07:41 AM
Hi Jonas,
thank you for the test. I too recognized that the active area is a bit small, and have already decided to increase it. The algorithm anyhow selects the control which is nearer to the click point.
thank you for the test. I too recognized that the active area is a bit small, and have already decided to increase it. The algorithm anyhow selects the control which is nearer to the click point.
#7
Posted 17 September 2017 - 11:41 AM
In post #4 there is now a version with a wider active area. The dimension of the area used to show the name of the control however has remained the same, in order to better identify the position of them.
#8
Posted 17 September 2017 - 01:28 PM
Better now with the new patch! I can catch the throttle lever much easier than before.
It's been a few days ago when I was working on 3D programming project, with "macromedia director" IIRC. There was a 3D-command to monitor if the mouse is hovering over a single 3D object. Can you use this in OR as an additional possibility to catch the cab-control?
It's been a few days ago when I was working on 3D programming project, with "macromedia director" IIRC. There was a 3D-command to monitor if the mouse is hovering over a single 3D object. Can you use this in OR as an additional possibility to catch the cab-control?
#9
Posted 17 September 2017 - 11:25 PM
If I understood well what you are meaning, that's what I have described as a "bonus" in post #4.
#10
Posted 18 September 2017 - 08:13 AM