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 08-30-16, 11:59 AM   #1
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Support Need help with animation of the flags

Hello all,

I'm trying to create a big war ensign for the battleships of SH3.

Like that:



I have resized the flag, but the animation of the flag is now broken. Could someone help me in this matter ?

Thx
  Reply With Quote
Old 08-30-16, 12:16 PM   #2
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Probably, you need to export the animation frames and to resize all ones.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 08-30-16, 12:30 PM   #3
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Tycho View Post
Probably, you need to export the animation frames and to resize all ones.
How can I do that ?? I'm completly lost ...
  Reply With Quote
Old 08-30-16, 01:39 PM   #4
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
How can I do that ?? I'm completly lost ...
If you did this:
Quote:
Originally Posted by Kendras View Post
I have resized the flag, but the animation of the flag is now broken.
Most likely, you first export the 3d model with S3D. Now do it again, but look closely and you will see the possibility to export all anim frames.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 08-30-16, 09:54 PM   #5
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Tycho View Post
Most likely, you first export the 3d model with S3D. Now do it again, but look closely and you will see the possibility to export all anim frames.
So, I have resized all the 25 frames of the flag, and imported them in the file of the battleship. In S3D, the animation of the new flag is now played with the proper size. Vry nice. But in my game, the flag just stays ... static ! The animation is not played !

What's wrong here ?
  Reply With Quote
Old 08-31-16, 08:05 AM   #6
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon7

Don't know precisely what I did, but the animation is now working fine !

Just have to resize again the falg by 150 % instead of 200% (which is a bit too big)



Thank for the help!

Ah ! Another thing : i use wings 3D. Do you know how to move automatically a 3D object by setting the position of one of its vertex ? I would like to move the corner to the origin (i mean where X=0, Y=0, Z=0) for each resized frame of the flag. It's very boring to do that manually for 25 models ...
  Reply With Quote
Old 08-31-16, 12:27 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Icon14

Quote:
Originally Posted by Kendras View Post
Ah ! Another thing : i use wings 3D. Do you know how to move automatically a 3D object by setting the position of one of its vertex ? I would like to move the corner to the origin (i mean where X=0, Y=0, Z=0) for each resized frame of the flag. It's very boring to do that manually for 25 models ...
The easiest way to do it is:
- import all the animation frames in a single Wings 3D project;
- switch to "body selection mode" (red cube on the top of the screen) and select all the meshes by dragging the mouse with the left button pressed;
- right click and choose "scale uniform" from the contextual menu, by using either the middle ore the right mouse button;
- switch to "vertex selection mode" and choose the vertex you want your meshes to be scaled from;
- once done, right click to confirm;
- press the Tab button on your keyboard to switch to "numeric entry" mode, enter your desired scaling factor (as percent: 100 = equal size), and press the "Ok" button or Enter to confirm;
- select the animation frames one by one (if needed, you can hide/show any frame individually by using the "Geometry Graph"), and save each of them with their original name, using the "export selected" command from the "file" menu.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-31-16, 12:46 PM   #8
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
- switch to "body selection mode" (red cube on the top of the screen) and select all the meshes by dragging the mouse with the left button pressed;
- right click and choose "scale uniform" from the contextual menu, by using either the middle ore the right mouse button;
- switch to "vertex selection mode" and choose the vertex you want your meshes to be scaled from
When i click on "scale uniform", my mouse disappears and i can only press tab to select the scale. So I can't switch to "vertex selection mode" ...
  Reply With Quote
Old 08-31-16, 01:07 PM   #9
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
When i click on "scale uniform", my mouse disappears and i can only press tab to select the scale. So I can't switch to "vertex selection mode" ...
You must be clicking with the wrong mouse button. Do it with the middle or right one ;-)
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-31-16, 04:09 PM   #10
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon14

Quote:
Originally Posted by gap View Post
You must be clicking with the wrong mouse button. Do it with the middle or right one ;-)
It works !



Problem solved !

Thank you so much guys !
  Reply With Quote
Old 09-01-16, 11:42 AM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Glad you managed doing it
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-16-17, 05:32 AM   #12
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon8

Well, I don't know what I'm doing wrong, but I don't manage to make a new flag with animation. It works in S3D, but not in-game .... !



Else, in the Yamato .dat file, there isn't any node for the flag, but there is one in game ! I don't understand at all.
  Reply With Quote
Old 01-20-17, 10:51 AM   #13
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon9

Still no success.

So here what i've done :

- exported all the objects of the animated model of the flag, found in Flag.dat (in Library folder), I get 26 files : one named FLG.obj, and the others are FLG_00.obj to FLG_24.obj.

 


- imported them in Wings3D, resized and exported them.

- opened the .dat file of a battleship, added a node with a 3D model, imported the animated flag by choosing FLG_00.obj

 


- added an animation controller

 


In S3D, the flag is animated when I click on "play". But not in the game !

So what's wrong, guys ?

  Reply With Quote
Old 01-20-17, 11:02 AM   #14
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,299
Downloads: 130
Uploads: 0


Default

Did you set the timing on all 25 frames of the animation?
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-20-17, 11:20 AM   #15
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Jeff-Groves View Post
Did you set the timing on all 25 frames of the animation?
Yes, I chose a longer time to have a slower movment for a bigger flag :

 


The original value is :

 


But I wonder why this should not work with a different fps ?
  Reply With Quote
Reply

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 05:29 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.