![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-15-13, 08:08 PM
|
#1 |
|
Ocean Warrior
![]() |
Well.. can you explain it again, but now, like for child in kindergarten? maybe with numbers will be clearer..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
01-15-13, 09:05 PM
|
#2 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Imagine gun's animation as a movie. Let's say that its duration is 5 seconds and that the first and last photograms are equal respectively to -20 and +80 deg. If we wanted our gun to have an in-game elevation range of -10/+30, we should set accordingly elevation start_index and end_index. Since animation's angular range is equal to 80 - (-20) = 100 deg, we would calculate index settings as follows: start_index = [-10 - (-20)] deg * 5 sec / 100 deg = 0.5 sec end_index = [30 - (-20)] deg * 5 sec / 100 deg = 2.5 sec These settings will determine the visual min/max elevation of the gun, and therefore the trajectory followed by its rounds. Now we have to set min and max elevation accordingly: min = -10 max = 30 This is the elevation range seen by the AI, when aiming the gun. If we missed to match the visual/balistic range (start_index and end_index), and the aiming range (min and max), the mismatch would lead to wrong aiming, so simple ![]() The only problem is that with the currently available tools, we cannot read from file neither animation's duration nor min/max elevation angles set in the animation. We can only estimate them or desume them from stock settings, provided that the latter are not wrong (btw: they are in many cases Last edited by gap; 01-15-13 at 09:43 PM. |
|
|
|
01-15-13, 09:19 PM
|
#3 |
|
Ocean Warrior
![]() |
Thanks.. more clearly..
PS: I feel like a boy with Down syndrome.. perhaps it's time to go to sleep..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
01-15-13, 09:41 PM
|
#4 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() P.S: tomorrow I will start testing with crew experience settings. I want to see wether/how they are applied to guns. Have you started testing the effects of tolerance factors? |
|
|
|
01-15-13, 09:56 PM
|
#5 |
|
Ocean Warrior
![]() |
not yet.. edited files in the mod-pack..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
01-15-13, 10:03 PM
|
#6 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
01-15-13, 10:17 PM
|
#7 |
|
Ocean Warrior
![]() |
If you'll write to me the exact values that we need to test, I think it will succeed faster.. I'll just edit the files and test them..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
