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

Reply
 
Thread Tools Display Modes
Old 04-26-21, 12:27 PM   #1
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,216
Downloads: 75
Uploads: 49


gear Question about rudders (for modders, and not)

Hi everyone!

I'm trying to mod a ship with 3 rudders, as in this scheme:



I've fixed the 3D models, placed them into .dat file, and linked the "rudders" option into sim file.

After a first test, under water i can see:



Central and left rudders are working. Right one, no.
I've verifyed the sim file. It was ok.
Rudders' array order was [1]Central, [2]Left, [3]Right, [4]empty
I've modified ther order, for try. Next test:


(Sorry for the strange shape )

This time, array order was [1]Right, [2]Left, [3]Central, [4]empty
Well, it appear that only first 2 rudders in numeric order are working ingame.
To delete the empty array doesn't change anithing.

So the question is, can i have more than 2 rudders working, or should i "animate" only the central one and leave the others static, or i should delete them at all? (Historically talking, they were accurate)...


Best regards,
Vd
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 04-26-21, 02:10 PM   #2
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,344
Downloads: 846
Uploads: 0
Default

Quote:
Originally Posted by VonDos View Post
So the question is, can i have more than 2 rudders working, or should i "animate" only the central one and leave the others static, or i should delete them at al
I count 2-nd. If there is no other way.
__________________
Anvar1061 is offline   Reply With Quote
Old 04-27-21, 09:13 AM   #3
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

Why did you put 4 rudders in the sim if one is empty
and you only have 3 rudders on the ship?
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 04-27-21, 10:08 AM   #4
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,216
Downloads: 75
Uploads: 49


Default

Quote:
Originally Posted by Jeff-Groves View Post
Why did you put 4 rudders in the sim if one is empty
and you only have 3 rudders on the ship?
Initially i just created 3 arrays (central, left, right), after test failures while searching in other ship's sim files i noticed a lot of units have an extra array item empty.

For example:

Rudders
- objects
-- [0] = AC-4_rudder
-- [1] =

(from USS Cyclops)


So i try to add the fourth array empty, despite my ship had 3 rudders.
Anithing changed.
Best regards, Vd
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 04-27-21, 10:25 AM   #5
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

I missed that you did say you deleted the empty.
I guess the reason for an empty object is the Dev's tools had 2 rudder objects as a template when building a Unit.
I'd also guess 2 is the limit or the template would have had more.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 04-27-21, 10:42 AM   #6
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

I did a crazy thought as a quick test.
I added to the sim as below....


Now I didn't actually add an object as a 3rd rudder in the sim at this point.
I saved the new sim and ran SH3 with it to see if the Game crashed.
I was able to view the Ship in Museum with no problems so it "Might" be a work around.

__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 04-27-21, 11:34 AM   #7
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,216
Downloads: 75
Uploads: 49


Default

Quote:
Originally Posted by Jeff-Groves View Post
I did a crazy thought as a quick test.
I added to the sim as below....


Now I didn't actually add an object as a 3rd rudder in the sim at this point.
I saved the new sim and ran SH3 with it to see if the Game crashed.
I was able to view the Ship in Museum with no problems so it "Might" be a work around.

Thank you for the help.
Now, i've tested this idea.
Game didn't crash, but only take data from first unit_Ship (central rudder OR L + R rudders) instead of both.
So, in a test only the central rudder works, in the other, inverting ID number, only side rudders work
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 04-27-21, 03:48 PM   #8
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

Well. We know you can only have 2 Rudders then by conventional controllers.



Not being a geometry expert I'll ask a question.
Is it possible to link 3D objects to get the effect of a 3rd rudder based on SH3?
Now what I mean is CAN We link somethings to get a rotation point where we want it?
That may take many compounded links.

Just trying to think out of a box!
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 04-28-21, 07:47 AM   #9
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,216
Downloads: 75
Uploads: 49


Default

Think out of a box is always a good thing

Now, the problem is the need of 3 different fulcrums (and rotation axis), because simply joint the 3dmodel of 2 rudders is not enought.

Now, a couple of questions in my mind:

- what objects in SH3 can rotate ingame? I mean, rudders, propellers, turrets, radars\rangefinders (well, they're turrets that doesn't make bang)...

- what parameters couple the rudder with its rotation when the ship turn left or right? It's just the "rudder" assegnation, or this can be done also from something different, i.e. a turret?

Best regards,
Vd



Quote:
Originally Posted by Jeff-Groves View Post
Well. We know you can only have 2 Rudders then by conventional controllers.



Not being a geometry expert I'll ask a question.
Is it possible to link 3D objects to get the effect of a 3rd rudder based on SH3?
Now what I mean is CAN We link somethings to get a rotation point where we want it?
That may take many compounded links.

Just trying to think out of a box!
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 04-30-21, 06:56 PM   #10
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

I've been brain storming this and may have a way to get the effect.
It's going to take me some time to work it all out but I'm pretty sure it will be good enough!
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 05-01-21, 06:32 AM   #11
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 789
Downloads: 27
Uploads: 0


Default

Hello,

My idea is to add the third rudder (one of the two small rudders) as a static object (not controlled by the .sim file), but being the child node of the other small rudder (which is controlled by the .sim). In order to keep the own axis of rotation of the child rudder, you have to add to it (the child rudder) a controller called "follow parent" : in it, you allow only the Y rotation (not XYZ translations and not XZ rotations). It should work.

Now there are two small drawbacks :

- if the third rudder is destroyed, then it won't affect the capability of the ship to turn.

- if the parent rudder is destroyed, then the other small rudder (child) will be also destroyed.
Mister_M is offline   Reply With Quote
Old 05-01-21, 07:46 AM   #12
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,216
Downloads: 75
Uploads: 49


Default

Quote:
Originally Posted by Jeff-Groves View Post
I've been brain storming this and may have a way to get the effect.
It's going to take me some time to work it all out but I'm pretty sure it will be good enough!
I'm really curious now let me know when ready

Quote:
Originally Posted by Mister_M View Post
Hello,

My idea is to add the third rudder (one of the two small rudders) as a static object (not controlled by the .sim file), but being the child node of the other small rudder (which is controlled by the .sim). In order to keep the own axis of rotation of the child rudder, you have to add to it (the child rudder) a controller called "follow parent" : in it, you allow only the Y rotation (not XYZ translations and not XZ rotations). It should work.

Now there are two small drawbacks :

- if the third rudder is destroyed, then it won't affect the capability of the ship to turn.

- if the parent rudder is destroyed, then the other small rudder (child) will be also destroyed.

I tried your suggested method. I add the third rudder as a child of the second (working) rudder, using coordinates to place it in the right place (different X, same Y and Z), added controller, only Y rotation attivated, but while in 3Ditor the third rudder appear in right place, ingame you can't see it, and if you use the ship's camera, you can see her only from far (i suppose 3rd rudder is finished far from the ship...)
What i'm doing wrong? What coordinates should i assign to 3rd rudder? Node's XYZ, and "default" inside controller.


Best regards,
Vd
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 05-01-21, 08:44 AM   #13
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 789
Downloads: 27
Uploads: 0


Default

Quote:
Originally Posted by VonDos View Post
I tried your suggested method. I add the third rudder as a child of the second (working) rudder, using coordinates to place it in the right place (different X, same Y and Z), added controller, only Y rotation attivated, but while in 3Ditor the third rudder appear in right place, ingame you can't see it, and if you use the ship's camera, you can see her only from far (i suppose 3rd rudder is finished far from the ship...)
What i'm doing wrong? What coordinates should i assign to 3rd rudder? Node's XYZ, and "default" inside controller.
So, probably this controller works only for generated particles elements.

Did you search for another "follow parent" controller, sometimes there are two controllers but with slightly different names...

Else, you could try the same method as for complexe guns (with special rotation of reticles or wheels depending on the barrel movement, see the vii u-boot's deck gun for example).
Mister_M is offline   Reply With Quote
Old 05-02-21, 03:45 AM   #14
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 789
Downloads: 27
Uploads: 0


Default

Quote:
Originally Posted by Mister_M View Post
Else, you could try the same method as for complexe guns (with special rotation of reticles or wheels depending on the barrel movement, see the vii u-boot's deck gun for example).
Actually, it probably won't work, because you can't call any animation from the rudder parameters section in ship.sim. But you should still try.

Another solution : add an object generator (as a child node of the right small rudder) to spawn a small left rudder with high frequency (to keep a smooth movement when the parent rudder is turning), and with the follow parent controller to keep the axis of rotation in a constant position.

Last edited by Mister_M; 05-02-21 at 03:56 AM.
Mister_M is offline   Reply With Quote
Reply


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 02:17 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.