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-08-11, 12:47 PM   #76
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 urfisch View Post
hey hans.

the "splattered-mesh-effect" is nothing new. its produced by the game, when changing a mesh. seems as if the coordinates are mixed up. privateer stated once the new mesh can not consist of more vertices than the former model. otherwise the game mixes them up.

its just, what i experienced years ago, when trying to change the decals on the crew. it was simply impossible. even just changing the position of a vertice caused this effect.

Hi mate,

Yes it is because the vertex is move and it doesn't correspond anymore to the original vertices x,y,z, position in world space coordinates.

Take note that i didn't change the vertices count only move the uvw chunk layout.

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-08-11, 02:19 PM   #77
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Have you have compared vertices section of body model (in dat-file) before and after editing of UV coordinates and importing via S3D into dat-file (using hex editor)?

p.s.
http://www.subsim.com/radioroom/show...0&postcount=14
Maybe I write not clear?
The reason is known for a long time.
__________________
Alex ®


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

Last edited by Anvart; 09-17-13 at 05:05 AM.
Anvart is offline   Reply With Quote
Old 04-08-11, 03:47 PM   #78
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin,

I´ve checked the 3d models against each other in hex after exporting and re-importing them without any changes applied to them. Here are my findings.
  1. number of vertices + number of tris stays the same
  2. number of tex coords reduces from 15206 to 3718

I´ve cut out the tex coords from the stock model and pasted them over the new tex coords. As a result the crew´s mesh ingame is still totally screwed up.

I´ve deleted the MeshAnimation Node. ---> the crew models look fine ingame, but are motionless in base pose with strechted out arms. So the basic crew mesh is not screwed as long as no animation is involved.



I´ve cut the vertices data off both models (before/after) and compared them against each other. They do not match the way they should. The vertices are stored in a different order. Some seem to depict the same value but at a different precision.

Accordingly the triangle data do not match either. Each triangle data block matches it´s vertex data block, but they can not be interchanged.

The animation base mesh is, although having the same shape and number of vertices+tris, a different one. As we know the AnimationDataChunk does not store 3d objects but the information about the movements of each vertex around it´s initial position. As the correlation between base mesh vertices and their dependent data gets lost/broken by using a different order to store the vertex data, the mesh get´s distorted as soon as the animation starts.

So, the problem lies with the export/import routine of S3D, I reckon.



[EDIT]

@Privateer:

MeshAnimationData and the second appearance of FrameNumber 0, my understanding:

I reckon the first appearance of Frame #0 is what we are used to see/call the 3d_model base mesh for a non crew animation. The second appearance of Frame #0 is equal to Frame #0 of every "usual" frame set/animation. As we never see the "real" crew base model with strechted out arms, this first appearance of frame #0 became necessary to avoid the animation to loop through this Leonardo DaVinci like pose.

As a result we´d have to apply the very same changes to the first appearance of frame #0 as we apllied to the base 3d_model. Since the animation data chunk does not contain any tex coords this should basically work. Although I must admit that I didn´t have a look at the first frame #0 in hex yet. A major problem remains though, the CH alone comes along with more than 60 MeshAnimationData2 Chunks. Therefore, provided my approach would be successfull, one had to change the 3d_model and alter ALL 60+ 'frame #0's accordingly. Challenging.

[/EDIT]





Regards,
DD

Last edited by DivingDuck; 04-08-11 at 04:16 PM.
DivingDuck is offline   Reply With Quote
Old 04-08-11, 04:43 PM   #79
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

@DD,

I cut a whole Data2 block and planted it in a dat with the Body01 model.
So no export nor import was done.
The animation shows the distortion anyway.
That's what leads me to believe a transitional pose is needed?


It's only the MAD2 that has this double 0 frame thing.
MAD does not have it.

And by the way?
It's great to have you back looking into this stuff!

You taught me alot in the 'way back' days.

Last edited by Madox58; 04-08-11 at 05:18 PM.
  Reply With Quote
Old 04-08-11, 07:12 PM   #80
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Hi shipmates,

Yes indeed it is great to see DD back looking at the last modding frontier for SH3.

The character crew was a part we all craved to modify at will.

I think with all the brain power here at work in cooperation we will finally get the dream crews character on that bridge.

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-09-11, 12:22 PM   #81
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Well, haveing 2 frame 0's is no problem.
Exporting and then re-importing the animations is also no problem.
It's the weird Texture count thing with the SH3 crew models.
Now if one were to redo every animation used by SH3 Crew?
The Crew animations can be changed as far as I've tested to date.
I'm wondering if those extra texture coords are left over from the failed dynamic shadows stuff.


SH4 does not show a reduction of the same type info when one exports and imports Crew models.
(It's a totally different problem there!)

And remember, S3D was aimed mostly at SH4.

Anvart is correct in the fact that exporting as an obj from other programs
changes the order of stuff.
SH3 used kashmir which did all the changes to dat format.
Who knows how that was coded to read and change the files!
  Reply With Quote
Old 04-09-11, 02:17 PM   #82
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by privateer View Post
...
Who knows how that was coded to read and change the files!
Using Archiver (IIRC, ZIP or RAR) extract Pack3D and explore the code (on java) ...
...
My rule for S3D:
for import - uncheck all items in Geometry section;
for export - uncheck all items in Geometry section.

P.S.
Sorry i badly understand your english... is my problem...
__________________
Alex ®


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

Last edited by Anvart; 04-09-11 at 04:10 PM.
Anvart is offline   Reply With Quote
Old 04-09-11, 10:00 PM   #83
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Hi Anvart,
Some where I have the source code for Pack3D!
Or did have at one point in time.
It may have been on a DVD I threw away.

I never got into Java code much so never followed up on it.

Further on the tex coords stuff..........
The Body02 does not have as many and loses less on export/import.
So it seems to point even more to Dynamic Shadow uses that are not needed.

Last edited by Madox58; 04-09-11 at 11:41 PM.
  Reply With Quote
Old 04-10-11, 04:21 AM   #84
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
Hi Anvart,
Some where I have the source code for Pack3D!
Or did have at one point in time.
It may have been on a DVD I threw away.

I never got into Java code much so never followed up on it.

Further on the tex coords stuff..........
The Body02 does not have as many and loses less on export/import.
So it seems to point even more to Dynamic Shadow uses that are not needed.
Hi mate,

Body02 is only seen outside maybe that why seem to loose less on import/export just a guess!


Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-10-11, 05:16 AM   #85
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by privateer View Post
Hi Anvart,
Some where I have the source code for Pack3D!
Or did have at one point in time.
It may have been on a DVD I threw away.
You know, I can't access to my disks...
and I don't recall any links to Pack3D.
Quote:
I never got into Java code much so never followed up on it.
...
I watched Pack3D code a very long time ago... but I think, you can see some low-level tricks of work with numbers ... (as source code)... but it's not Kashmir.
__________________
Alex ®


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

Last edited by Anvart; 04-10-11 at 05:27 AM.
Anvart is offline   Reply With Quote
Old 04-10-11, 09:35 PM   #86
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Most of the stuff from Pack3D has been replaced by S3D for most newer modders.
Older modders tend to use both for different reasons.
And some of us still Hex alot.
Both Pack3D and S3D have limits.
Hexing has only the limits of ones knowledge.
Even that is not enuff at times.

It is a fact that we can not alter the base model for any animation and expect the animations to work properly after doing so.
That has been a fact for years now.

The very best minds I have ever seen here at SubSim have proven that beyond a shadow of a doubt!

The only way to have new Crew Animations is to rebuild each and every animation used in SH3.
From the base models to every animation called by them.

The first order of business should be to determine which of the many animations are actually used in Game.
There are animations never used!
  Reply With Quote
Old 04-12-11, 09:00 PM   #87
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


The only way to have new Crew Animations is to rebuild each and every animation used in SH3.
From the base models to every animation called by them.
Hi mate,

I could managed to do them in reasonable short time because the kind of animation they had was really basic and look more like robots then human to me.

Simple loop of those differents animation sequence is really no big deal to do but could we replaced the base mesh with those new ones?

Also i can make them move like real human and give them a more random type loop like on watch.

If so i will start to do them on the spot but first i need to know if it would be possible to put them in game.

Best regards Hans
__________________




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

Moin Hans,

this wouldn´t be an easy task at all. This ...





... is the complete set of animations of the ChiefHelmsman alone, put together into a single *.dat. Don´t get me wrong. It´s not a set of animation frames you see, but all animations for the CH, frozen. They just don´t dance for everybody. LOL. Had no opportunity to capture a video. If need will be, I can do so and upload it.

I have not counted them for the CH, neither have I for the other crew members. But there are a lot. Some of them I have never seen ingame.


As every crew animation calls upon the same base mesh from <Body01.dat> / <Body02.dat> you´d have to remake ALL animations for all crew at once. There would be no sense in just giving it a try for one crew member as either the new crew or the rest of them would crash due to distorted links between base mesh and animation data.

So, as long as we are not able to export the 3d object and re-import it without screwing the order of vertices, there is no way to do it easily.

I have not looked into the exported model in hex to check whether the coords got mixed up on export or import. If time permits I´ll have a look. But I guess it will come down to hex editing the object in/out.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-12-11, 10:58 PM   #89
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default


Someone has been busy!!


If you export the base mesh and the animations, open them in max by useing the mass importer, export them useing the mass exporter, then re-import to the dat?
The animations work fine.
I've not planted them back in Game to see if those lost tex coords cause problems yet.

But aside from that?
The heads are all keyframed animations!
Not mesh animations. As are the hats, and binos.


BIG JOB!
  Reply With Quote
Old 04-13-11, 10:19 PM   #90
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin,
Quote:
Originally Posted by privateer View Post

Someone has been busy!!

...
the busy German needed something to clear his mind. Besides I wanted to make Hans reconsider his plans.

Quote:
...
If you export the base mesh and the animations, open them in max by useing the mass importer, export them useing the mass exporter, then re-import to the dat?
The animations work fine.
I've not planted them back in Game to see if those lost tex coords cause problems yet.
...
Additional tex coords should not bother the SH engine. They will be ignored as the MAD/MAD2 do not hold any / does not refer to them in any way.


Quote:
...
But aside from that?
The heads are all keyframed animations!
Not mesh animations. As are the hats, and binos.

...
Adjusting the paths of the heads might turn out to be even worse than creating and importing all the animations.



Quote:
BIG JOB!
too big for my liking.


DD
DivingDuck 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 07:31 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.