Page 1 of 1

Rotation Matrix Assistance for Class Light Hoods

Unread postPosted: Sun Mar 24, 2024 8:25 am
by PullmanCar
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'

Re: Rotation Matrix Assistance for Class Light Hoods

Unread postPosted: Sun Mar 24, 2024 9:37 am
by kris120
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>

Re: Rotation Matrix Assistance for Class Light Hoods

Unread postPosted: Sun Mar 24, 2024 12:01 pm
by PullmanCar
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'