SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   [TEC] Need help with animation of the flags (https://www.subsim.com/radioroom/showthread.php?t=227492)

Kendras 08-30-16 11:59 AM

Need help with animation of the flags
 
Hello all,

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

Like that:

https://i.imgur.com/iJ8s18N.jpg

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

Thx

Tycho 08-30-16 12:16 PM

Probably, you need to export the animation frames and to resize all ones.

Kendras 08-30-16 12:30 PM

Quote:

Originally Posted by Tycho (Post 2430747)
Probably, you need to export the animation frames and to resize all ones.

How can I do that ?? I'm completly lost ... :-?

Tycho 08-30-16 01:39 PM

Quote:

Originally Posted by Kendras (Post 2430749)
How can I do that ?? I'm completly lost ... :-?

If you did this:
Quote:

Originally Posted by Kendras (Post 2430743)
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.

Kendras 08-30-16 09:54 PM

Quote:

Originally Posted by Tycho (Post 2430757)
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 ! :dead:

What's wrong here ?

Kendras 08-31-16 08:05 AM

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

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

http://www.subsim.com/radioroom/pict...pictureid=9150

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 ...

gap 08-31-16 12:27 PM

Quote:

Originally Posted by Kendras (Post 2430916)
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. :up:

Kendras 08-31-16 12:46 PM

Quote:

Originally Posted by gap (Post 2430958)
- 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" ... :-?

gap 08-31-16 01:07 PM

Quote:

Originally Posted by Kendras (Post 2430960)
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 ;-)

Kendras 08-31-16 04:09 PM

Quote:

Originally Posted by gap (Post 2430966)
You must be clicking with the wrong mouse button. Do it with the middle or right one ;-)

It works ! :sunny:

http://www.subsim.com/radioroom/pict...pictureid=9152

Problem solved ! :Kaleun_Applaud:

Thank you so much guys ! :subsim:

gap 09-01-16 11:42 AM

Glad you managed doing it :)

Kendras 01-16-17 05:32 AM

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 .... ! :doh:

:k_confused: :damn:

Else, in the Yamato .dat file, there isn't any node for the flag, but there is one in game ! :o :o :o I don't understand at all. :doh:

Kendras 01-20-17 10:51 AM

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 ?

:o

Jeff-Groves 01-20-17 11:02 AM

Did you set the timing on all 25 frames of the animation?

Kendras 01-20-17 11:20 AM

Quote:

Originally Posted by Jeff-Groves (Post 2459340)
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 ? :hmmm:


All times are GMT -5. The time now is 01:48 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.