SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-24-16, 10:37 AM   #11
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default How to adjust axis direction to your needs.

I'm here just for day, but this is enough for sharing the three quick tricks.

First one:
How to adjust axis direction to your needs.

One easy example is with UZO. The new modded boats and turms have this feature, but I don't have computer that will handle all these new models stuff, so I want to make this for stock turms.

You will work with the turm .dat file, in this example: "Turm7c_1_hd.dat".
First, if you give a dial controller (SolBearing) to the UZO node, it will rotate the X axis. So let's look, what will happen when the dial controller rotate the X axis.
This will not be good:
 



If you rotate the Z axis with -90°, this will put the X axis in the needed direction,
but because the 3d model is in this node, it is again not good:
 



So, you first create a new node, name it something recognizable, in this case "Turm7c_1_UzoRot".
For Translation X, Y and Z you give the same coordinates that are in the original UZO node (Turm7c_1_uzo_High).
Then rotate the Z axis with -90° (half a Pi):
 



Now, for the original node, you make it child of the new node. Change Parent id with the Id of the new node (UzoRot).
Give 0,0 for Translation X, Y and Z, and rotate the Z axis with +90°:
 



A small adjustment on Y and Z, to catch up some asymmetry between the UZO and its base when is rotated:
 



Now for test, you rotate manually the X axis of UzoRot, and you see that the rotation is correct.
Bring it back to 0,0 and save the file:
 



Next, you open the turm .sim file and create a new dial controller. Make it Type = SolBearing.
Make DispVal and RealVal = 0 - 360. And for Parent id: give it the Id of the UzoRot node from the .dat file.
Save the file:
 



Now in the game, the model of the UZO will rotate according to the bearing that is pointed:
 
__________________
If you ride like lightning, you're gonna crash like thunder.

Last edited by Tycho; 05-30-16 at 05:25 AM.
Tycho is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.