![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-08-11, 02:23 AM
|
#1 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
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.
__________________
|
|
|
04-08-11, 06:14 AM
|
#2 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
Moin Hans,
did a few tests with S3D myself this morning. While exporting the 3d model and importing it straight back a lot of texture coordinates data got changed. Working with a crew body mesh the amount of texture coordinates got reduced while other objects from CR.dat (use a non modded version!) ended up with a remarkably higher amount of texture coords than before. So, the question is, will the tex coords be screwed on export via S3D or on import via S3D. I´ll have a look at that in hex asap. Regards, DD
__________________
|
|
|
04-08-11, 12:43 PM
|
#3 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Yes texture coordinates even with slight modification they tend to change a lot for some obscure reason in the UVW algorithm. I guess you already aware of that but take in consideration that S3D editor have a built in feature that optimized the vertices from UVW layout and you have to de activated on import process in import window to make sure the UVW vertices count won't be alter. Best regards Hans |
|
|
|
04-08-11, 12:47 PM
|
#4 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
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 |
|
|
|
04-08-11, 02:19 PM
|
#5 |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
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. |
|
|
04-08-11, 03:47 PM
|
#6 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
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.
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. |
|
|
04-08-11, 04:43 PM
|
#7 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
@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. |
|
04-08-11, 07:12 PM
|
#8 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
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 |
|
|
04-09-11, 12:22 PM
|
#9 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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! |
|
04-09-11, 02:17 PM
|
#10 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
... 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. |
|
|
|
04-09-11, 10:00 PM
|
#11 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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. |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
