Page 1 of 1
Use Cab View as default start view Start as Cab view instead of outside front view
#1
Posted 10 April 2014 - 11:56 AM
Hi,
Does anyone know how to change the code/setting of the Open Rails so that by default it start with the "Cab View" (press 1) instead of the "Outside Front View" (press 2). I searched in the launcher options, but didn't find it. I tried change that in the source code, but quickly got lost as I am not so familiar with this project. Can somebody help me point it out or talk about the possible solution to this?
Thanks!
Does anyone know how to change the code/setting of the Open Rails so that by default it start with the "Cab View" (press 1) instead of the "Outside Front View" (press 2). I searched in the launcher options, but didn't find it. I tried change that in the source code, but quickly got lost as I am not so familiar with this project. Can somebody help me point it out or talk about the possible solution to this?
Thanks!
#2
Posted 10 April 2014 - 08:10 PM
The cab view is just a click away. :thumbup3:
Cheers Bazza
Cheers Bazza
#3
Posted 11 April 2014 - 10:35 AM
BillonRail, on 10 April 2014 - 11:56 AM, said:
Does anyone know how to change the code/setting of the Open Rails so that by default it start with the "Cab View" (press 1) instead of the "Outside Front View" (press 2). I searched in the launcher options, but didn't find it. I tried change that in the source code, but quickly got lost as I am not so familiar with this project. Can somebody help me point it out or talk about the possible solution to this?
There is no such setting (yet), so you will have to change your code.
I suggest inserting the assignment
Camera = CabCamera;
in Viewer.cs at line 340 immediately before the callCameraActivate();
Some locos do not have a cab interior at all, so the role of
CameraActivate();
is to change the camera but if the view is not available, then the Key 2 (Front Camera) view is used instead.
#4
Posted 17 April 2014 - 11:08 AM
cjakeman, on 11 April 2014 - 10:35 AM, said:
There is no such setting (yet), so you will have to change your code.
I suggest inserting the assignment
Some locos do not have a cab interior at all, so the role of
I suggest inserting the assignment
Camera = CabCamera;
in Viewer.cs at line 340 immediately before the callCameraActivate();
Some locos do not have a cab interior at all, so the role of
CameraActivate();
is to change the camera but if the view is not available, then the Key 2 (Front Camera) view is used instead.I found it by searching around in the source code, which is exact the function you mentioned. Thanks very much, I can save this click now LOL :D
#5
Posted 17 April 2014 - 08:15 PM
Crhis, can you add to the Activity Editor the feature to specify starting camera position? Seems to me that's the most useful location... perhaps w/ a default setting in the routes *.trk file.
#7
Posted 20 April 2014 - 10:39 AM
jan111, on 20 April 2014 - 09:50 AM, said:
Where do I find the Viewer.cs?
It's in Source\RunActivity\Viewer3D
Instructions for getting the source code are at http://openrails.org/source.html
Hope that helps,
#8
Posted 22 April 2014 - 04:18 AM
There is one situation where I think something should be done.
When starting a train in a tunnel, the view will set to cab (camera 1), as view 2 is not available in a tunnel.
But on exiting the tunnel one suddenly jumps out in front of the train - it's quite unexpected, and, ofcourse, one never selects the cabview by pressing '1' when starting in the tunnel as that view is allready displayed.
Starting in a tunnel is not as strange as it may seem : apart from stations on metro networks, there are quite a few tunnel-stations for mainline or semi-mainline services in major cities, eg. New York (Penn Central Station), London (Moorgate, Farringdon), Glasgow (Low Level stations), Frankfurt and München (S-Bahn platforms), Schiphol Airport station (Netherlands), Antwerpen (new central station), Brussel Centraal etc. etc.
Regards,
Rob Roeterdink
:bravo: I have been promoted! This is my 1000th post! :D
When starting a train in a tunnel, the view will set to cab (camera 1), as view 2 is not available in a tunnel.
But on exiting the tunnel one suddenly jumps out in front of the train - it's quite unexpected, and, ofcourse, one never selects the cabview by pressing '1' when starting in the tunnel as that view is allready displayed.
Starting in a tunnel is not as strange as it may seem : apart from stations on metro networks, there are quite a few tunnel-stations for mainline or semi-mainline services in major cities, eg. New York (Penn Central Station), London (Moorgate, Farringdon), Glasgow (Low Level stations), Frankfurt and München (S-Bahn platforms), Schiphol Airport station (Netherlands), Antwerpen (new central station), Brussel Centraal etc. etc.
Regards,
Rob Roeterdink
:bravo: I have been promoted! This is my 1000th post! :D
#9
Posted 22 April 2014 - 01:12 PM
Page 1 of 1