View Full Version : [TEC] Need help with animation of the flags
Kendras
08-30-16, 11:59 AM
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
Probably, you need to export the animation frames and to resize all ones.
Kendras
08-30-16, 12:30 PM
Probably, you need to export the animation frames and to resize all ones.
How can I do that ?? I'm completly lost ... :-?
How can I do that ?? I'm completly lost ... :-?
If you did this:
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
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/picture.php?albumid=1035&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 ...
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
- 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" ... :-?
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
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/picture.php?albumid=1035&pictureid=9152
Problem solved ! :Kaleun_Applaud:
Thank you so much guys ! :subsim:
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.
http://i.imgur.com/kZ4Xkiu.png
- 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
http://i.imgur.com/JUCRwf6.png
- added an animation controller
http://i.imgur.com/YfQHaD9.png
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
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 :
http://i.imgur.com/iYXzwlr.png
The original value is :
http://i.imgur.com/OQF40SU.png
But I wonder why this should not work with a different fps ? :hmmm:
Kendras
01-26-17, 08:03 AM
In S3D, the flag is animated when I click on "play". But not in the game !
So, nobody know how to solve this problem ?
By the way, I've found the solution to this :
In the Yamato .dat file, there isn't any node for the flag, but there is one in game !
The #cfg_flag node was the child of an unvisible 3D model (the shadow model IIRC), I was forced to open all the nodes and sub-nodes to discover it.
Jeff-Groves
01-26-17, 11:35 PM
Without seeing the files?
No.
I can't help you.
Kendras
01-27-17, 02:59 AM
Without seeing the files?
No.
I can't help you.
Ah, sorry. Here is the file of my last back-up : http://www.mediafire.com/file/8p3spsh0iydlv4f/NBB_Yamato.dat
IIRC, the small flag is working, but not the big one.
I have the same problem for british battleships, but I don't have the files with me. So, if you could explaim me what's wrong, and how I can correct it myself, this would be great !
:Kaleun_Salute:
Jeff-Groves
01-28-17, 07:34 PM
Got the file.
I see your mistake.
I'll correct the file and send it to you.
Kendras
01-29-17, 03:46 PM
Got the file.
I see your mistake.
I'll correct the file and send it to you.
Hi,
Thank you.
I assume this is a mistake I'm not able to correct myself ? :06:
Remember Confucius... :O:
Jeff-Groves
01-30-17, 09:56 PM
You could correct it yourself.
But you haven't seen the mistake for some reason.
Sometimes the obvious escapes us.
Kendras
01-31-17, 06:15 AM
Sometimes the obvious escapes us.
That's right. It already happened to me... :damn:
Waiting for the solution ! :oops:
Kendras
02-04-17, 06:50 AM
That's right. It already happened to me... :damn:
Waiting for the solution ! :oops:
I really don't see ... ???? :06: Did you really solve the problem, Jeff-Groves ? Did you try in game ?
Kendras
02-09-17, 09:56 PM
help !
:help:
I don't have Yamato in SH3, so can't test but looking at your dat file:-
Did you really want 2 big flags + 1 little one? If that's intentional then perhaps you should post the Yamato model for testing?
Kendras
02-10-17, 09:53 AM
I don't have Yamato in SH3, so can't test but looking at your dat file:-
Did you really want 2 big flags + 1 little one? If that's intentional then perhaps you should post the Yamato model for testing?
No, just one big flag. I added a second one to test several solutions at the same time. But without success still now ... and I'm sure it's something very easy to solve ... but I fail ... :wah:
I think I will release my mod like that if Jeff-Groves doesn't want to give me the solution ...
Here are the files if you want to test yourself, you will find also a single mission, JSGME ready : http://www.mediafire.com/file/uklyetjkmtj11jw/Yamato_secret.zip
SquareSteelBar
02-10-17, 11:53 AM
The scary Yamato secret disclosed:
NBB_Yamato.dat (http://www.xup.in/dl,20145440/NBB_Yamato.dat/)
:salute:
A damn stupid little careless mistake... http://up.picr.de/28280086rn.gif
.
Hi SquareSteelBar,
I can't download the dat as McAfee is blocking it for some reason. I'd be interested in what the solution is - perhaps PM me please?
EDITED - I see the problem....:D Oh those zeros:D
Regards,
MLF
SquareSteelBar
02-10-17, 02:00 PM
Big flags not working:
http://up.picr.de/28280736ho.jpg
Small flag working:
http://up.picr.de/28280760cs.jpg
SquareSteelBar
02-10-17, 02:02 PM
...I can't download the dat as McAfee is blocking it for some reason...Disable McAfee during DL.
Hi SquareSteelBar,
Yes - just edited my last post as you posted the solution. Well done.
Regards,
MLF
Disable McAfee during DL.
Can't afford too - my work is on this laptop as well :cry:
SquareSteelBar
02-11-17, 01:34 AM
Try this one:
NBB_Yamato.dat (http://www100.zippyshare.com/v/UkUapuBU/file.html)
Try this one:
NBB_Yamato.dat (http://www100.zippyshare.com/v/UkUapuBU/file.html)
Thank you. That opened fine (after a few adverts about speeding up my PC:doh:).
I'm still learning (very slowly - sims been out for 12 years or thereabouts) all the different bits tied up in a .dat file and how they hang together - a maze. However, I'm pretty pleased with myself that I found the problem before looking at the solution you had already provided beforehand :salute:
Kendras
02-11-17, 08:55 AM
A damn stupid little careless mistake... http://up.picr.de/28280086rn.gif
:nope: sometimes, i'm just blind ... thank you mate !
SquareSteelBar
02-11-17, 09:02 AM
My first attempt some days ago failed, too.
Yesterday the scales finally fell from my eyes... http://up.picr.de/28287590vx.gif
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.