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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-26-12, 08:29 PM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default [TEC] frozen dat flags

[TEC] frozen dat flags . What if the number of animation frames were reduced from 100 . Found in Silent Hunter 5\data\Library\flag.dat
MeshAnimationData
THE_MASK is offline   Reply With Quote
Old 05-27-12, 01:31 AM   #2
L30P4RD
Watch
 
Join Date: Jun 2011
Posts: 15
Downloads: 60
Uploads: 0
Default

Then I assume the flags would flap faster and possibly look odd skipping a few frames !
L30P4RD is offline   Reply With Quote
Old 05-30-12, 04:06 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by L30P4RD View Post
Then I assume the flags would flap faster and possibly look odd skipping a few frames !

That would not happen.
You change the timeing between model frames and get a transition that works nearly seamlessly.

100 frames for the flags done in a dat format seems overkill to me.
They should have converted to a GR2 format right away for a better animation.
  Reply With Quote
Old 06-01-12, 11:21 PM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by privateer View Post
That would not happen.
You change the timeing between model frames and get a transition that works nearly seamlessly.

100 frames for the flags done in a dat format seems overkill to me.
They should have converted to a GR2 format right away for a better animation.
I am a bit of a novice when it comes to this stuff . Would that animation be at 100 frames a second . If i run antilag at less than 100fps or vertical sync then would i get the frozen flags ?
THE_MASK is offline   Reply With Quote
Old 06-02-12, 04:12 AM   #5
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

No, that is not 100 fps. That should read "100 animation keyframes". If you look at each frame in the list, you'll see there's a Time value attached to it. I'm guessing this is in seconds. So, if animation frame #99 has a Time value of 8.333, then the whole animation loop has a (100/8.333) ~= 12 fps. As time runs, the game should slowly (and smoothly) adjust flag from one animation frame to the next until it gets to last frame, where the 'next' frame would again become first one. And this whole animation loop repeats for 8.333 time units (which, again, I'm guessing are seconds).
So, to answer your question: no, running the game at less than 100 fps should not freeze the flags.

Some speculation on animations (note this is not related to this particular format):

My general knowledge about animations tells me that you should not just reduce the animations frame count. That's because model's 3D data still contains info for all 100 frames (at least it should). So if you remove some array items from Flags array, best case scenario is you'll get skipped frames as L30P4RD suggested (animation loop would sort of 'jump' to the beginning, and the flag will "jerk" from, say, a half-folded state to a calm one or whatnot). Worst case - you'll get an error (maybe even CTD, though I doubt that).

The other thing to consider here is that animation may or may not be split up into several "subloops" (i.e. different animation for different wind speed). In this case, again, just throwing away frames won't solve anything.

Speculations end here.

Now I'm wondering, are these flags always frozen, or sometimes they animate and sometimes don't?
radcapricorn is offline   Reply With Quote
Old 06-02-12, 04:55 AM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by radcapricorn View Post
Now I'm wondering, are these flags always frozen, or sometimes they animate and sometimes don't?
From what I have seen they are only sometimes frozen.
When you reload the game or even dock/patrol - they can fix themselves.

Also this is only when you have imported non GR2 ships in your game.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 06-04-12, 04:47 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Just a thought and something I noticed...........

If you open the flags.dat in S3D and run the animation at 4X speed?
They hang at odd times.


Maybe changeing the timing is all that is needed?
  Reply With Quote
Old 06-04-12, 11:22 PM   #8
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by privateer View Post
Just a thought and something I noticed...........

If you open the flags.dat in S3D and run the animation at 4X speed?
They hang at odd times.


Maybe changeing the timing is all that is needed?
Copy and paste the animations for the seagulls into the flags .
THE_MASK 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:34 PM.


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