Scenery Object Rotation Not yz rotation

DennR

Active member
I have been asked to create a session with a Train Wreck.
I have been provided with loco, tender, boxcar and caboose all set in the standing position.
I have very irregular terrain and want to place the scenery objects facing the correct way (rotate yz) but!
I also want to be able to rotate them to lie on their side so fix the y axis and rotate the z axis through a range of -150, 150.
Is that possible given that I am no way an asset creator but could edit a config file if the available containers would allow this feature.
I should add that the session and assets need to be lower than build 4.5 to be TANE compatible.

Thanks in advance for any help or advice on what might be a stupid question.
 
Hidden track and extreme superelevation will allow you to lay them on their side :-)
if you want to rotate or move meshes (in mesh-table)
orientation x,y,z in radiants
position x,y,z in meters

ciao GM
 
Last edited:
They need to be scenery objects and you add "rotate-yz-range -150,150" to the config file. This only works on other people's routes if they don't attempt to move it or have the same config file in the asset.
 
Last edited:
Thanks for the replies, @GM the items are scenery items and I an not sure that they can be placed on track but I will tryand see what happens, I think I will avoid looking at meshes as that is well above my pay grade.
@stagecoach the config file already has the "rotate-yz-range -180,180" in it but what I am trying to do to rotate the item (loco, tender etc) from the vertical to lying on it's side.
 
hi guys,
we dont need them on track that is the whole point of making them scenery objects. i will ask Paul who made them for me about the rotation that Bob needs. I am pretty sure it is just an INI entry and i can actually ask Paul to do it for us and send it to me and then to Bob
thanks for the replies much appreciated.
Chris
 
i checked the files for the models for these scenery wrecked cars and loco and tender and they already have that entry in the config

height-range -150,150
rotate-yz-range -180,180

i wonder if we have to add another entry rotate-xy-range or rotate-xz to be able to lay them on their sides ... I was able to do that when i tested them 2 years ago but i dont remember what i did then.
RJSq7O.jpg.7b74136b8f8259f9e421ede5f8f849cd.jpg
 
Thanks for the replies, @GM the items are scenery items and I an not sure that they can be placed on track but I will tryand see what happens, I think I will avoid looking at meshes as that is well above my pay grade.
@stagecoach the config file already has the "rotate-yz-range -180,180" in it but what I am trying to do to rotate the item (loco, tender etc) from the vertical to lying on it's side.
Yes, this can be done by adding both the rotate-yz-range tag to the asset's config and an orientation tag to the mesh-table. However, train vehicles converted to scenery assets should have the y axis of the mesh along the length of the vehicle so rolling about the y axis should do what you want to accomplish. For assets where the y axis is not oriented like this in the mesh you can add an orientation tag in the mesh table to make it work.

The "rotate-yz-range" tag rotates ("rolls") the object about the object's y axis. To effectively switch the x and y axes so the object will look as if it pitches about its x axis, you can add the orientation tag to the mesh in the mesh-table in the config file. I think you have to do it to all the LOD meshes if the object has any.

I did it to a scenery bridge to allow it to "pitch" +/- 5 deg about the horizontal axis to match the track grade. The original y axis was aligned with the length of the bridge structure so had to be rotated 90 deg (pi/2 radians) about the z axis:

rotate-yz-range -5,5
rollstep 0.02

mesh-table
{
default
{
mesh "Part_1.im"
orientation 0,0,1.570796
auto-create 1
}
}

The bridge is TB 2.9 and this works in any version of Trainz since at least TRS10

Bob Pearson
 
Last edited:
If it has a rotate-yz-range tag already in its config, press the Shift key when rotating in Surveyor to make it “roll” in the yz plane.

You are absolutely right, I had just worked that out and was about to post this apology for my ignorance: -

"Sorry guys,

The assets have the feature built in. It was me being Dumb.


to rotate the asset it is cont+left mouse button and to tip it on its side it is shift+left mouse buttonand the container in the config is
height-range -150,150
rotate-yz-range -180,180"

Thanks everyone another win for the Trainz community.
 
ah Bob just figured it out it involved using the correct keys in surveyor thanks guys for your posts.

Chris
 
Back
Top