Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Expert Help needed for Weapon Hook Project  (Read 1872 times)

0 Members and 1 Guest are viewing this topic.

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4449
  • aka Segfej
Expert Help needed for Weapon Hook Project
« on: May 23, 2017, 03:40:28 AM »

Hi fellow Modders,

I'm requesting Help on behalf of my project to fix 4,5" Rox to allign in the P-40N-5CU msh.
I can't use Sknil.exe to neatly allign myself by tinkering. I have a running Slot with
proper loadout, but this bulk-move dependency is a brainkiller whenever I want to crack it.
I understand it is sort of maths, symmetry and calculation, god  ::(

Took the P-47 D-10 stock hooks for 4,5".
There the first 9 in line values seem to match (symmetry?), last 3 make the difference (final placement?).
If pasted in the Warhawk I get a 2-Top Mast Förstersonde.

Is it possible to retain bulk dependency of the stock meshes just with tinkering
with the last 3 entries of the stock thingy, alligning it?

When using a Warhawk line-a-like I mess up the bulk dependency.

Code: [Select]
Original:

WingLMid_D0


[Hooks]
_ExternalDev02 <BASE>
_ExternalRock01 <BASE>
_ExternalRock03 <BASE>
_ExternalRock05 <BASE>


[HookLoc]
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.26862 -0.20752 -0.06239
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.26862 0.74613 -0.26246
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.33122 0.74261 -0.36331
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.206 0.74261 -0.36331


WingRMid_D0

[Hooks]
_ExternalDev03 <BASE>
_ExternalRock02 <BASE>
_ExternalRock04 <BASE>
_ExternalRock06 <BASE>


[HookLoc]
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.26823 -0.20752 -0.06239
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.26823 0.74613 -0.26246
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.20563 0.74261 -0.36331
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.33084 0.74261 -0.36331

Tobi:

WingLIn_D0

[Hooks]
_ExternalDev03 <BASE>
_ExternalRock01 <BASE>
_ExternalRock03 <BASE>
_ExternalRock05 <BASE>


[HookLoc]
0 0 1 1 0 0 0 1 0 0.95 -0.0 0.20509 //_ExternalDev03
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock01
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock03
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock05


WingRIn_D0

[Hooks]
_ExternalDev02 <BASE>
_ExternalRock02 <BASE>
_ExternalRock04 <BASE>
_ExternalRock06 <BASE>

[HookLoc]
0 0 1 1 0 0 0 1 0 -0.68 -0.0 0.10509 // _ExternalDev02
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock02
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock04
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock06

Any advice will help me to understand it, Thanks in advance

Happy fiddling

Tobias
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Dreamk

  • Modder
  • member
  • Offline Offline
  • Posts: 1985
Re: Expert Help needed for Weapon Hook Project
« Reply #1 on: May 23, 2017, 06:23:15 AM »

Let me understand:
1) you want to put 4.5" rockets on the P-40
2) these rockets presently exist in the game, being carried by the P47D10
3) you need to make hooks on the P40 wing meshes to install these rockets
If so, no big problem.
1) You must choose the inclination of your rockets under your wing but relative to the horizontal axis of your plane
here we have in your example :
0 -0.999391 0.0349 1 0 0 0 0.0349 0.99939
using Kumpel matrix utility we find this means an an inclination of 2 degrees
If you wanted a straight horizontal (inclination = 0 degrees, rockets launcher parallel to the longitudinal axis of the plane), this line would be:
0 -1 0   1 0 0   0 0 1

Now you must deal with the position of the hook under your wing - but here the reference point may depend how your mesh has been exported. If it has been correctly exported, the reference point is the pivot point of your mesh .
In your example, you have at the end of the above mentioned line:
0.26862 -0.20752 -0.06239
this means x + 26.862 cm  (+ right side deviation)
               y - 20.752 cm (- = rearwards from this pivot point)
               z - 6.239 cm (- = lower than the pivot point)
Hooks are best edited "by hand" on the ascii meh file.
Using Kumpel matrix calculator simplifies drastically the modder's life
I hope this helps
Logged

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4449
  • aka Segfej
Re: Expert Help needed for Weapon Hook Project
« Reply #2 on: May 23, 2017, 07:28:27 AM »

Thanks for the explanation,

Here is my best result

I have tried to place the Tubes,



I can allign the left Tube only, right side hangs off

Best wishes Tobias
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Dreamk

  • Modder
  • member
  • Offline Offline
  • Posts: 1985
Re: Expert Help needed for Weapon Hook Project
« Reply #3 on: May 23, 2017, 01:12:54 PM »

OK so you want to align your tubes like this: 
 -       1
- -    3  5
under each wing
so you need to have:
1) the same orientation for each one of them  (the first 9 numbers in the HookLoc line)
2) the same y value (the one before last number in the HookLoc line)
3) the same z value for tubes 3 and 5 (the last number in the HookLine) and a smaller (absolute) value for tube 1
(I'm speaking of the absolute value as these z are generally negative values)
4) x values:
- The difference between the x value for tube 3 and the x value for tube 5 is equal to the diameter of each of these tubes (around 4.5") 
and
- The x value of tube 3 is equal to the sum of the x value for tube 1 and the value of the radius of each tube ((half the diameter = about 2.25")
- the x value for tube 5 is equal to the difference between the x value of tube 1 and the value of the radius of each tube

so to use the values given in your first post:
Code: [Select]

for WingLMid_D0 you had

0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.26862 0.74613 -0.26246    //Rocket 1
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.33122 0.74261 -0.36331   //Rocket 3
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.206     0.74261 -0.36331   //Rocket 5
now, given that
4.5"   = 0.11430 m
2.25" = 0.05715 m
you must have here (without making any change to the orientation of the tubes):
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.26862 0.74613 -0.26246    //Rocket 1
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.32577 0.74613 -0.36331    //Rocket 2
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 0.21147 0.74613 -0.36331   //Rocket 3

And for WingRMid_D0

instead of :
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.26823 0.74613 -0.26246 // Rocket 2
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.20563 0.74261 -0.36331 // Rocket 4
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.33084 0.74261 -0.36331 // Rocket 6

you must have:
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.26823 0.74613 -0.26246 // Rocket 2
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.21108 0.74613 -0.36331 // Rocket 6
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 -0.32538 0.74613 -0.36331 // Rocket 6

Logged

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4449
  • aka Segfej
Re: Expert Help needed for Weapon Hook Project
« Reply #4 on: May 23, 2017, 01:53:56 PM »

 o_O
Thanks for the visualisation. Highly needed.
Did a full overthrow. I changed once 1 orientation in Matrix params.
Here I need to dug deeper.
Need Coffee, insane Help Mate

Thanks a lot

Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4449
  • aka Segfej
Re: Expert Help needed for Weapon Hook Project
« Reply #5 on: May 24, 2017, 02:22:52 AM »

Sorry my fault, Original in first Post meant the Thugs entries for P-47D-10.
So the untouched lines as they show in it's msh after compiling txt from msh.
Installing it on P-40 gets verticall Tubes.
I took then the P-40 Bombs hooks borrowed it's orientation to first 9 lines.
This I called Tobi.

Original means P-47D-10 values (untouched by me)

0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 has orientation vertically down on P-40

Tobi means P-40 values horizontally alligned (i.e. it's bombs facing) couldn get the last 3 entries here

0 0 1 1 0 0 0 1 0 shoes up alligned with flightline

-----------------------------------------------------

Screenshot uses

Code: [Select]
lin



[HookLoc]
1 0 0 0 0 -1 0 1 0 1.31957 0.08973 1.03637
1 0 0 0 0 -1 0 1 0 1.37723 0.16843 -0.88768
0 0 1 1 0 0 0 1 0 -0.02386 -0.06352 1.21482
0 0 1 1 0 0 0 1 0 0.16199 -0.03607 1.20462
0 0 1 1 0 0 0 1 0 0.35413 -0.00536 1.19626
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 -0.03997 -0.1787 0.01711
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 0.18399 -0.13933 0.01104
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 0.41868 -0.09852 0.04416
0 0 1 1 0 0 0 1 0 0.18914 -0.41357 0.14214
0 0 1 1 0 0 0 1 0 0.09 -0.44303 0.20509 (Bombs)
0 0 1 1 0 0 0 1 0 0.35 -0.40303 0.20509 (Bombs)
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock01
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock03
0 0 1 1 0 0 0 1 0 0.95 -0.0155 0.20509 //_ExternalRock05
0 0 1 1 0 0 0 1 0 0.95 -0.0 0.20509 //_ExternalDev03


rin



[HookLoc]
1 0 0 0 0 -1 0 1 0 -1.21939 0.14644 0.91207
1 0 0 0 0 -1 0 1 0 -1.28085 0.19367 -0.98677
0 0 1 1 0 0 0 1 0 0.12111 -0.03826 1.11593
0 0 1 1 0 0 0 1 0 -0.0637699 -0.01077 1.10702
0 0 1 1 0 0 0 1 0 -0.25729 0.02266 1.09851
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 0.13656 -0.15344 -0.14914
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 -0.09513 -0.11116 -0.11418
0 -0.587785 -0.809017 1 0 0 0 -0.809017 0.587785 -0.32891 -0.06971 -0.11418
0 0 1 1 0 0 0 1 0 -0.04108 -0.410679 0.07212
0 0 1 1 0 0 0 1 0 -0.18 -0.40303 0.10509 (Bombs)
0 0 1 1 0 0 0 1 0 0.08 -0.44303 0.10509 (Bombs)
0 0 1 1 0 0 0 1 0 -0.68 -0.0 0.10509 // _ExternalDev02
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock02
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock04
0 0 1 1 0 0 0 1 0 -0.68 -0.0155 0.10509 //_ExternalRock06

Best orientation I could get left side only, I failed to get it right as well.

I can't use
Code: [Select]
0 -0.999391 0.0349 1 0 0 0 0.0349 0.999391 as it's not parent in P-40.

Please check your PM.

Best wishes

Tobias






Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4449
  • aka Segfej
Re: Expert Help needed for Weapon Hook Project
« Reply #6 on: May 27, 2017, 12:05:51 PM »



Can't place the Rockets. Meh...  :(
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."
Pages: [1]   Go Up
 

Page created in 0.085 seconds with 26 queries.