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

One thing I did notice about the MeshAnimationData2?
There are 2 Frames numbered as Frame 0!


I'd delete the second one and see what happens.
It may be a transitional frame?

Another reason to bring this thread up?
Hans is mistaken thinking SH3 uses bones.
It's all mesh animimations based on keyframes.

It's quite simple if you follow the basics layed out.
To make it more that it is?
You are just confuseing yourselves.

Last edited by Madox58; 04-05-11 at 07:08 PM.
  Reply With Quote
Old 04-06-11, 02:42 AM   #47
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

great to see this is further investigated!...i wish i would have more time to help. sad one, i know. but i would love to try your finds!

thanks a lot for the work so far!

__________________


urfisch is offline   Reply With Quote
Old 04-06-11, 06:55 AM   #48
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin,
Quote:
Originally Posted by privateer View Post
Quite by accident I have found a way to do this.
I've started useing a new Hex Editor that allows Custom Templates and Custom Scripts.

So one could create the needed Templates and/or Scripts to extract the information from a file, then add it to an SH3 .dat file.

It's roughly $50 U.S. paperbacks to buy for non-commercial work.
Not bad for a Tool that has unlimited uses in many areas.
I've seen several Games being Modded with this Editor already!
Laying out a bait? Give us a name to put to that holy hex editor!

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-06-11, 07:12 AM   #49
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by DivingDuck View Post
Moin,


Laying out a bait? Give us a name to put to that holy hex editor!

Regards,
DD

http://www.sweetscape.com/010editor/

I've already started templates and scripts to extract 3D models from 'PT Boat' files.
The goal being to create an extraction/importation Tool.
  Reply With Quote
Old 04-06-11, 07:24 AM   #50
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Thanks for the quick reply, mate.
Check your gmx account. You have mail. RING! RING!

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-06-11, 07:35 PM   #51
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Looking at the files?
I kind of see what is going on with Data2.

It will take a few more days probably to have the answer as to what is actually going on.

Then it may require more then S3D to work with.
  Reply With Quote
Old 04-07-11, 04:29 AM   #52
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
One thing I did notice about the MeshAnimationData2?
There are 2 Frames numbered as Frame 0!


I'd delete the second one and see what happens.
It may be a transitional frame?

Another reason to bring this thread up?
Hans is mistaken thinking SH3 uses bones.
It's all mesh animimations based on keyframes.

It's quite simple if you follow the basics layed out.
To make it more that it is?
You are just confuseing yourselves.
Hi mate,

Nice to see you are still on this because i did a lot of reading in the past week and what i mean by bones is that the based mesh is always animated with bones system and if we can export the whole rig in the 3d application we can then modify the based mesh at will this mean brand new character crew and animations.

It is done frequently on many others game they just write an import/export script for the proper 3d application.

I have characters already rig with bone system and morph target for lipsynch they are rig the same ways that current studios are making them.

Just wish we will be able to put them in SH3 they are waiting for this moment

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-07-11, 05:57 AM   #53
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

...seems as something great is beeing done here...

once again...

a really great community here. really...

__________________


urfisch is offline   Reply With Quote
Old 04-07-11, 07:27 AM   #54
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

MeshAnimationData2 successfully exported, modified, and re-imported with NO distortions.


I'll do a few more to verify the process then we should be off and running!


Now, there are NO bones to export nor import for SH3!
How you animate the characters does not matter.
But you must export each frame as a seperate .obj file.
Those frames are then imported with S3D or whatever Tool you happen to use.
  Reply With Quote
Old 04-07-11, 09:49 AM   #55
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
MeshAnimationData2 successfully exported, modified, and re-imported with NO distortions.


I'll do a few more to verify the process then we should be off and running!


Now, there are NO bones to export nor import for SH3!
How you animate the characters does not matter.
But you must export each frame as a seperate .obj file.
Those frames are then imported with S3D or whatever Tool you happen to use.
Hi mate,

Ok now i get it s3d just take the keyframe generated by the bones animation

But so far we still cannot modify the based mesh?

Also when exporting animation frame in s3d what your workflow to make it work in game?

So if i do some morph animation then i just export it as keyframe or do i need to used the morph controller?

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-07-11, 11:44 AM   #56
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by privateer View Post
MeshAnimationData2 successfully exported, modified, and re-imported with NO distortions.


I'll do a few more to verify the process then we should be off and running!


Now, there are NO bones to export nor import for SH3!
How you animate the characters does not matter.
But you must export each frame as a seperate .obj file.
Those frames are then imported with S3D or whatever Tool you happen to use.
Quote:
Originally Posted by Hans Witteman View Post
Hi mate,

Ok now i get it s3d just take the keyframe generated by the bones animation

But so far we still cannot modify the based mesh?

Also when exporting animation frame in s3d what your workflow to make it work in game?

So if i do some morph animation then i just export it as keyframe or do i need to used the morph controller?

Best regards Hans
Great news Privater, hope this method will allow Hans and (everyone else working on animations) to get his new characters into SH3. What a day that will be
reaper7 is offline   Reply With Quote
Old 04-07-11, 12:50 PM   #57
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin Hans,
Quote:
Originally Posted by Hans Witteman View Post
Hi mate,

Ok now i get it s3d just take the keyframe generated by the bones animation

But so far we still cannot modify the based mesh?

Also when exporting animation frame in s3d what your workflow to make it work in game?

So if i do some morph animation then i just export it as keyframe or do i need to used the morph controller?

Best regards Hans
It does not matter how you create your animation. Use a bone system if you like. The SH engine will not care. All you need is a set/sequence of sequentially named *.obj files, e.g. Part_001.obj, Part_002.obj, ....

As your animation will consist of a sequence of frames, all you have to do is to export each of these frames to *.obj file format using sequential numbers. The very first *.obj file however must come with a corresponding *.mtl file. All other *.mtl files are obsolete and will be ignored by S3D.

The *.datīs 3d_model node will hold the base frame/3d object while the rest of the animation will be put into the corresponding sub node holding all needed information about the deviation of each vertex during the animation, but no 3d model data at all. Thatīs why it is vital that the number of vertices is exactly the same for all *.obj files.

So, you can alter the based mesh, as you name it. But you canīt alter this one alone. As a result the animation will not work. There is one exception though. When you extract the base mesh and alter it without changing the number of vertices and without changing the triangles regarding their vertex dependencies (donīt know if thatīs the right term) it will work. But to what use? This approach would be useful only if you want to change the texture mapping coords for the base texture or for the lightmap.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-07-11, 01:18 PM   #58
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,


It does not matter how you create your animation. Use a bone system if you like. The SH engine will not care. All you need is a set/sequence of sequentially named *.obj files, e.g. Part_001.obj, Part_002.obj, ....

As your animation will consist of a sequence of frames, all you have to do is to export each of these frames to *.obj file format using sequential numbers. The very first *.obj file however must come with a corresponding *.mtl file. All other *.mtl files are obsolete and will be ignored by S3D.

The *.datīs 3d_model node will hold the base frame/3d object while the rest of the animation will be put into the corresponding sub node holding all needed information about the deviation of each vertex during the animation, but no 3d model data at all. Thatīs why it is vital that the number of vertices is exactly the same for all *.obj files.

So, you can alter the based mesh, as you name it. But you canīt alter this one alone. As a result the animation will not work. There is one exception though. When you extract the base mesh and alter it without changing the number of vertices and without changing the triangles regarding their vertex dependencies (donīt know if thatīs the right term) it will work. But to what use? This approach would be useful only if you want to change the texture mapping coords for the base texture or for the lightmap.

Regards,
DD
Hi DivingDuck,

Thank for replying, what i mean by modifying the base mesh ex; Body01 i was just trying to move the vertices around without modifying their count and the purpose was to reshape the base mesh to make ex; pant straight instead of pant in boots and to reshape the waist area to get a proper mesh to apply a reefer jacket on officers.

Even if i don't modify the vertices amount just moving them slightly screwed the mesh in game!

And i would be satisfy even without modifying the animation, simply put i want to add a better 3D crew model in game.

So far now no one was capable of modifying those crews 3D models

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-07-11, 01:26 PM   #59
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Make sure your 3d proggy does not optimize while exporting. They usually do and weld close vertices together. Thus youīll end up with a lower poly count.

Btw, Iīve puzzled together the animation of one crew in a single *.dat more than a year ago. Thus I could check a particular crew animation in S3D. Therefore Iīm sure it is possible to alter. The major problem, the bodies stored in the respective *.dat file(s) serve as a base for all crew animations used ingame. And there are many!

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-07-11, 01:41 PM   #60
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
Make sure your 3d proggy does not optimize while exporting. They usually do and weld close vertices together. Thus youīll end up with a lower poly count.

Btw, Iīve puzzled together the animation of one crew in a single *.dat more than a year ago. Thus I could check a particular crew animation in S3D. Therefore Iīm sure it is possible to alter. The major problem, the bodies stored in the respective *.dat file(s) serve as a base for all crew animations used ingame. And there are many!

Regards,
DD
Hi mate,

Maybe you point me in the right direction because if i am not mistaking i think S3D editor do optimization automatically by reducing vertices count?

I also remember i did try to change the Unwrap UVW layout on those body01 because ubi put the pant and sleeve overlapping so we cannot texture the pant part independently, so i just separated the pant and sleeve in independent UVW chunk but again only changing this screwed the mesh in game.

Will try to see where i can disabled the vertices optimization in S3D editor and will try again to move those vertices on mesh.

Only by moving the vertices i can achieve a lot better crew models.

Best regards Hans
__________________




Hans Witteman 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 03:10 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.