In-cab cameras

Mystikan

New member
Hi all,

I've actually been a Trainz user since 2004 but this is the first time I've posted in this forum. I recently purchased the Trainz collection with TRS 2006 and I'm impressed with the CMP, this finally got me into actually modifying the content rather than merely doing Surveyor layouts. (I've spent 3 years developing the world's largest map that now has to be broken down since it contains over 2000 baseboards and chugs like a slug on valium in the game!)

The question I want to ask is, I've started looking at the CCP with a view to modifying the camera positions, since I've never been happy with the in-cab cameras in most of the locos. I often like to set the train to auto drive while I check out the scenery, and for this the locos with outside cameras are best. But some of my favourite locos don't have outside cameras, so I want to modify the in-cab camera positions for these locos. I know I could use the external chase camera, but this doesn't have the "mouselook" behaviour of the in-cab cams - it "orbits" around the selected train instead. So I need to use the in-cab camera positions so I can "mouselook" outside the cab.

Now I've got this far: you open the loco's cab interior asset in CCP, and edit the "cameralist" settings. Now, what I see here is a list of cameras each with five fractional numbers usually ranging between 0 and 1, sometimes more. I assume these five values relate to X-pos, Y-pos, Z-pos, Heading and Pitch for each camera, relative to an origin (eg a.outsideview etc). My questions are:

1. In what order are these coordinates listed, eg is it like this:

X-Pos .. Y-Pos ... Z-Pos ..... Heading . Pitch
0.93000 0.900000 0.140000 -4.25000 -1.20000
Or what order are the coordinates in, and how are these coordinates oriented with respect to the loco on the track - that is, is Y up-down, X left-right, Z forward-back, or how are they positioned?

2. What are the units of distance or rotation? Is it in metres and degrees or is it some arbitrary unit?

Having played around with the camera positions, I found that none of these values seem to be consistent in behaviour, so I haven't been able to position a camera where I want it - all I can do is seem to get the cameras to move around randomly.

3. Some of the cameras seem to display only the interior and moving them outside the loco means the loco exterior is invisible, yet some locos with outside cameras show it fine. Where and what is the parameter that determines interior/exterior visibility for a loco's internal camera views?

Any help would be appreciated. :)
 
X Y Z Pitch Yaw

In Metres, except for Pitch and Yaw, thats in Radians

Left/right, up/down, front/back/rotate vertically/rotate horizontally

In Trainzoptions put a line

-freeintcam

then you can go to cabview, move around with mouse and note correct position (at left botton) and these are the numbers to go into the camera

What you actually see is the model of the cab, just that, so if the modeller has only modeled the cab and not the rest of the loco, thats all you will see.
 
Last edited:
Thank you very much for that, how many years have I wanted to do exactly that! :D

I see what you mean about moving the cameras too far outside the cab and the loco not being visible - I did this with the BR Class 37 which has only the cab interior modelled, and if you move the cameras too far outside, the cab looks "broken". However, this loco (and a few others) does have three external in-cab cameras that show the outside anyway (one either side a bit out from the loco, one some way out front and off to the left looking back at the loco) but I noticed these three are not editable using the freeintcam; only the actual interior cameras are. Can these external in-cab cams be edited, or are they fixed? - and if so, what file can they be edited in, since the interior cameralist seems not to include them?

If not, what you've given me is perfect anyway, since I can position one of the interior cameras just outside the front windshield, which gives me full view forward, left and right, without making the cab look "broken" if you look back into it. As well as rubbernecking the scenery, this is great for spotting the aspects of distant approaching signals in time to slow down if required - this was always a bit of a problem for me in the past, since parts of the cab interior always seemed to be in the way.

Again, thanks very much for that - you've made my day! :D
 
Those 3 inside views are fixed, usually with an attachment in the cab or loco mesh, you cant alter those.

Dont forget to remove the line freeintcam. Make a not of it as you may want to use it again.

Glad to be of help there. Have a nics day (how annoying is that saying LOL)
 
Back
Top