Rotation Matrix Assistance for Class Light Hoods

Discussion of rolling-stock creation & re-painting.

Rotation Matrix Assistance for Class Light Hoods

Unread postby PullmanCar » Sun Mar 24, 2024 8:25 am

Hello,

I am able to attach child objects and rotate "solid" turns, such as 90 and 180 degrees, but how would one trial say a 45 degree rotation, and handle minimal horizontal rotation?

Many overlook the small hoods Illinois Central locomotives had (dating back to the steam era, my office has 2 from a passenger engine).

These hoods were included on the E units, and therefore pointed to the direction of the E unit nose. Might someone be able to provide some rotation assistance.
Screenshot_[KTR] Kalamazoo Terminal Ry. V3_42.16897--85.46406_09-42-10.jpg

The real 4023's nose: http://www.rrpicturearchives.net/showPicture.aspx?id=3262837
Thank you.

'PullmanCar'
You do not have the required permissions to view the files attached to this post.
Avowed Pullman Enthusiast - Down with Budd!
User avatar
PullmanCar
 
Posts: 166
Joined: Sat Mar 30, 2019 1:06 pm

Re: Rotation Matrix Assistance for Class Light Hoods

Unread postby kris120 » Sun Mar 24, 2024 9:37 am

Let TS calculate that for you !

Make shure that random twist is not set in world editor :
1_no_random_turn.jpg


Create a freeroam.
Place an asset on the ground (it does not matter which one, but you should better see a front or back)
and turn it while angle is locked:
2_turning.jpg


Open your file manager. Goto the scenario with your scenery asset (just sort the scenario folders by date)
Inside the scenario you'll see a folder "Scenery\". Enter it.

Serz the bin-file and open the xml with your editor, here in Notepad+++ :
3_notepad+++.jpg


You can now use the entries in the box for your matrix. Just write it from left to the right, line by line one after the other :

Code: Select all
0.7071068
-0
0.7071068
0
0
1
0
0
-0.7071068
0
0.7071068
0


These are the first 12 values of a matrix. Below would be the position (the very last entry is always 1).

An example :
Code: Select all
<Matrix>
   <cHcRMatrix4x4>
      <Element>
         <e d:type="sFloat32">0.7071068</e>
         <e d:type="sFloat32">-0</e>
         <e d:type="sFloat32">0.7071068</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">1</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">-0.7071068</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">0.7071068</e>
         <e d:type="sFloat32">0</e>
         <e d:type="sFloat32">0.45</e>
         <e d:type="sFloat32">3.41</e>
         <e d:type="sFloat32">-5.345</e>
         <e d:type="sFloat32">1</e>
      </Element>
   </cHcRMatrix4x4>
</Matrix>
You do not have the required permissions to view the files attached to this post.
User avatar
kris120
 
Posts: 468
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany

Re: Rotation Matrix Assistance for Class Light Hoods

Unread postby PullmanCar » Sun Mar 24, 2024 12:01 pm

Thank you very much Kris. Thanks to your help I give you a proper IC E8 (4023 and 4033 survive, plus fictional 4044, and possibly a fictional 4045 in the future). The headlight and visor alignment are thanks to your help. Drangus (of the Illinois Central Route: Iroquois Prairielands expertise) did the visors.
Screenshot_[KTR] Kalamazoo Terminal Ry. V3_42.16883--85.46433_09-44-07.jpg


Yet again the helpfulness of RWA and this forum knows no bounds. Thank you.
'PullmanCar'
You do not have the required permissions to view the files attached to this post.
Avowed Pullman Enthusiast - Down with Budd!
User avatar
PullmanCar
 
Posts: 166
Joined: Sat Mar 30, 2019 1:06 pm


Return to Rolling-Stock Design

Who is online

Users browsing this forum: No registered users and 1 guest