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 11-08-10, 10:04 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Now that you can SEE the Animation running in S3D?
Export it.
You'll need the obj files to copy a better mesh to.
You want a higher mesh body?
Fine! Do it!
BUT!
As Gun Animation moves?
Does your import match?

We can not change Gun Movement!
Your animations MUST match stock movements.
  Reply With Quote
Old 11-09-10, 12:13 AM   #2
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
Now that you can SEE the Animation running in S3D?
Export it.
You'll need the obj files to copy a better mesh to.
You want a higher mesh body?
Fine! Do it!
BUT!
As Gun Animation moves?
Does your import match?

We can not change Gun Movement!
Your animations MUST match stock movements.
Hi again my friend,

The gun animation is ok it is only when the crew is manning the C/30 i mean when he point directly at the sky the gun shoulder pad is lower to the pelvis area because of the new gun rotation axis i had to change to fit the correct gun length.

In a word i have to make the crew to bend lower to fit new gun position i will post pictures of it since it worth a thousand words

I can still live with that since i never look at my gunner externally and it is only on full extent rotation i prefer my realistic C/30 with this little annoyance rather then stock flak

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 11-09-10, 04:55 AM   #3
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

Hi,

It works great with MeshAnimationData. But did you also succeed with MeshAnimationData2?

By the way, I'm struggling for a while now with a correlated problem.
I can't export the mesh Body01 with S3D without loosing a lot of vts. The original mesh has 15206 vts. Roughly, 1751 faces connected to more than 5000 Vts (3 vts by face) and this for the three channels thus the 15000 vts. I suspect this unusual cut-out to be tied to the internal process of MeshAnimationData2.
When opening the obj files, vertices and faces are OK, but I ended up with only 1216 vts for the main and uv2 files and 1285 for the uv3 file.
Of course, reimporting this mesh in Body01.dat goes to a wracked mesh in game.
I've deciphered 90% of the internal structure of the model chunk and until now I've found nothing wrong.
Any hints will be welcome...
divingbluefrog is offline   Reply With Quote
Old 11-09-10, 11:42 AM   #4
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by divingbluefrog View Post
Hi,

It works great with MeshAnimationData. But did you also succeed with MeshAnimationData2?

By the way, I'm struggling for a while now with a correlated problem.
I can't export the mesh Body01 with S3D without loosing a lot of vts. The original mesh has 15206 vts. Roughly, 1751 faces connected to more than 5000 Vts (3 vts by face) and this for the three channels thus the 15000 vts. I suspect this unusual cut-out to be tied to the internal process of MeshAnimationData2.
When opening the obj files, vertices and faces are OK, but I ended up with only 1216 vts for the main and uv2 files and 1285 for the uv3 file.
Of course, reimporting this mesh in Body01.dat goes to a wracked mesh in game.
I've deciphered 90% of the internal structure of the model chunk and until now I've found nothing wrong.
Any hints will be welcome...
Hi divingbluefrog,

I would like to know what is the difference between the two MeshAnimationData and MeshAnimationData02?

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 11-09-10, 02:04 PM   #5
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

Hi Hans,

Well, it's near to the 1 million $ question...
MeshAnimationData2 is the type of animations used mainly by the crew, as on the coning tower during watch.
You can find them for example in POSW.anm. I'm able to import them in a .dat file and they indeed show in S3D. That's how I found that the first in the previous file was the one that is called when a watchman fines tune his binoculars. But once imported, I get the associated wracked mesh, thefore my question to Privateer.
I've finished with the structure of the model chunk, and there is something disturbing with the way it handles the uv3 vts.
divingbluefrog is offline   Reply With Quote
Old 11-10-10, 02:09 AM   #6
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by divingbluefrog View Post
Hi Hans,

Well, it's near to the 1 million $ question...
MeshAnimationData2 is the type of animations used mainly by the crew, as on the coning tower during watch.
You can find them for example in POSW.anm. I'm able to import them in a .dat file and they indeed show in S3D. That's how I found that the first in the previous file was the one that is called when a watchman fines tune his binoculars. But once imported, I get the associated wracked mesh, thefore my question to Privateer.
I've finished with the structure of the model chunk, and there is something disturbing with the way it handles the uv3 vts.
Hi again divingbluefrog,

Yes i understand some controllers are still to identify correctly, what baffling me is that even if i pull one single vertices on any body or head we got the same wacky mesh in game, normally since i was teaching animation and morphing then changing one vertex won't screw the animation if the amount of vertices remain unchanged.

So my guess so far would be that a kind of a shell exist in an ACT file that identify the mesh integrity so finding that shell trigger could lead to success. In a word we need to find a way to lure the game engine to identify our new mesh as the original one.

Let's team on this and i am convinced we will succeed, for the moment i am pretty busy finishing my own mod and it is a hell of a task for single man but the minute i will have spare time i will focus on crew animation i would love to be able to do it because i can animate anything professionally i am in the field since the early beginning under DOS.



Best regards Hans
__________________





Last edited by Hans Witteman; 11-10-10 at 04:35 AM.
Hans Witteman is offline   Reply With Quote
Old 11-10-10, 04:59 AM   #7
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
IIRC, MeshAnimationData2 has been conceived for characters...
MeshAnimationData - for other objects...
... the difference is that MeshAnimationData2 has two frames with the number 0 and with the same vertexes coordinates... i think, for the better pairing of sequence of different animations for the characters.
***
Added.
The cause of violations of the mesh during character animation (after export/import of character's model using S3D) is to optimize UV-coordinates (vt), S3D makes it automatically... see:
http://www.subsim.com/radioroom/show...&postcount=552
http://www.subsim.com/radioroom/show...&postcount=554

Pak3D does not optimizes UV-coordinates therefore this problem is absent... but there are many other problems...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 03-01-12 at 12:37 AM.
Anvart is offline   Reply With Quote
Old 11-10-10, 05:57 AM   #8
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

Obviously I'm not as much skilled in animations as you are
but I can deal with basic ones.
There are three points that should light bips on our board.
- First, why put 15000 vt in a mesh if the model only use 4000 of them?
- Second and more disturbing : it seems that MeshAnimationData2 is not fully tied to the model. I made the following test : after having imported the animation in a .dat file and gotten the "classic" behavior, I kept the animation but changed the 3D model to something totally different, the pescarus mesh indeed. And the mesh got animated! It looked like nothing but nonetheless the mesh moved!
That leads me to think that MeshanimationData2 acts perhaps more like a filter for a mesh "prepared" to it.
- Third, MeshAnimationData is called inside a <notset> node but MeshAnimationData2 is called inside a MeshAnimation node. What is the true nature of the MeshAnimation controller?
A lot of questions, so few answers...But as said, we are just at the beginning of the process...

Ironically, animations aren't my main goal. At the end of August, I began a project that I had in mind for a long time. A pause in my current career was the opportunity to start. I didn't know I was opening the Pandora box. From one problem to another, I ended up Hex editing crew meshes...

I don't doubt that your TypeII will match the quality of the torpedo designed for it, so it's worth waiting...
divingbluefrog is offline   Reply With Quote
Old 11-09-10, 11:19 AM   #9
Philipp_Thomsen
Old Gang
 
Philipp_Thomsen's Avatar
 
Join Date: Nov 2007
Location: Drunk at the whorehouse
Posts: 2,261
Downloads: 146
Uploads: 0


Default

Maybe now the crew will react to tense depth charging in a more realistic way, other then bend their knees and look around slowly.

Is it possible to make the crews run from one end to the other of the uboat? Would be cool to simulate crew running to the bow when crash diving.
__________________
To each his own
Philipp_Thomsen is offline   Reply With Quote
Old 04-16-11, 08:41 PM   #10
FIREWALL
Eternal Patrol
 
Join Date: Mar 2006
Location: CATALINA IS. SO . CAL USA
Posts: 10,099
Downloads: 511
Uploads: 0
Default

Quote:
Originally Posted by Philipp_Thomsen View Post
Maybe now the crew will react to tense depth charging in a more realistic way, other then bend their knees and look around slowly.

Is it possible to make the crews run from one end to the other of the uboat? Would be cool to simulate crew running to the bow when crash diving.
Reminds me of an old quote. " When in trouble or in doubt, Run to Both Ends of the Boat and Scream and Shout."
__________________
RIP FIREWALL

I Play GWX. Silent Hunter Who ???
FIREWALL is offline   Reply With Quote
Old 04-17-11, 03:02 PM   #11
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.



  2. You can use your right mouse button to create new nodes/chunks in S3D. As I don´t know what routine S3D uses to create unique IDs I prefer method #1


Second step: you have to make sure the 3d_model type/identifier is set to 0x02. (see pic below) Otherwise you will see the base mesh only without animation.




Third step: select the 3d_model node and import your *.obj file sequence.
This is the easiest way to bring an ever looping animation into the game.


If you don´t want the animation to loop constantly, you´ll have to split and put the data into several files. See pic below.




This last pic says it all. If there´s still something missing, ask!


Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-17-11, 03:39 PM   #12
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by DivingDuck View Post
Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.

Regards,
DD
Hi DD,

Thank for that great tutorial but finally someone as pin point that without an hexeditor animation wont work in game i knew that since the beginning and i wasted countless hours trying to make animation work in game.

So since i am not good at all at hex editor can you just show me how to change that value to fix my animation? If i type the number in File Offset of S3D in Hex editor will it show me the required information to change?

Edit: After some test i follow DD advice on identification tag for 3d model and the animation is working in game wahoooo just have to make the correct statemachines class to make it work under damage state conditions.




A thousand thank DD you did it again mate.

Best regards Hans
__________________





Last edited by Hans Witteman; 04-17-11 at 11:30 PM.
Hans Witteman is offline   Reply With Quote
Old 04-18-11, 05:00 PM   #13
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by DivingDuck View Post
Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.



  2. You can use your right mouse button to create new nodes/chunks in S3D. As I don´t know what routine S3D uses to create unique IDs I prefer method #1
Second step: you have to make sure the 3d_model type/identifier is set to 0x02. (see pic below) Otherwise you will see the base mesh only without animation.




Third step: select the 3d_model node and import your *.obj file sequence.
This is the easiest way to bring an ever looping animation into the game.


If you don´t want the animation to loop constantly, you´ll have to split and put the data into several files. See pic below.




This last pic says it all. If there´s still something missing, ask!


Regards,
DD
You have to excuse me since it's been too long, but I'm a bit confused by that statement, because as far as I know S3D does allow editting those ID's... I don't see anything weird, the 4/100 chunk has 3 id's in a row, the id, parent id and model id. The model chunk has just one id, it's own. Your hex screenshots show all of them, and S3D understands (and shows) all of them... So really, I am confused that you say S3D does not understand them

I need no hex work to make animations work - even more advanced ones - it can all be done in S3D... (I mean, I did it myself)

And yea, the funny misplaced box in the model pane was some left over unfinished (but useful) thingy that I left in, but totally forgot about...

Tip: you can copy existing structures by pressing CTRL+SHIFT+C on the top node, and then pasting in new DAT (or ANM), and then just assign new ID's in S3D (the 'New' button next to the ID-field). If you have trouble starting from scratch, this may help.
skwasjer is offline   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 07:22 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.