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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-04-19, 04:23 PM   #1
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 30,049
Downloads: 24
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
Gap is NOT his user name. It's gap.
Get it? Got it? Good!
GOOD gOD YOU'RE RIGHT! I'LL INFORM THE SWEATSHIRT MANUFACTURER IMMEDIATELY!
__________________

"Only two things are infinite; The Universe and human squirrelyness?!!
Aktungbby is offline   Reply With Quote
Old 02-04-19, 04:29 PM   #2
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default



Jeff-Groves is offline   Reply With Quote
Old 02-04-19, 04:52 PM   #3
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,103
Downloads: 451
Uploads: 2


Default

Already he is working on his "Funniest Post of 2019" award...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 02-04-19, 04:57 PM   #4
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Well he is being technical with his stuff.
Not sure how that goes over with Mrs. Aktungbby and I ain't gonna ask!
Jeff-Groves is offline   Reply With Quote
Old 02-04-19, 05:20 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Say we have 50 verts with their 50 normals.
But it has only 30 vts. (texture coords)
Faces don't matter as those are stored in a separate area.

GR2 stores with vt, vn, and vt in a structure.
So we run out of vt's!
TDW did some crazy stuff which does account for that but increases file size in a wild way.

So all you need to do is add to the vt count to have a balanced file.
They can be zero coords or re-use already used coords. It don't matter!
Now Exported meshes from a GR2 HAVE this extra info!
Once imported into say 3D Max? Max DUMPS the redundant stuff!
So an export with NO modifications to the file WILL NOT have the extra info.

That forces you to use TDW's strange import function and the result is a file MUCH larger then it needs to be.
I believe there's a 'clean' import or something? That sees the file as proper for import and no extra processing is needed.
Thus smaller file sizes.

Somewhere in the Exporter thread or else where I PROVED this and gave the answer!
I'll see if I still have objsort code and add to it to adjust for this.
Okay that starts making sense to me but...

If a closed mesh gets unwrapped, I would expect some its edges to be split and its vertex number to be bigger than before. In other words, vt should be always more or equal in number than v and vn, not the contrary. Does that make sense?

Are you sure that that's the only problem we have?
I assume that for the two obj files composing a main-model / AO-model pair to be imported correctly, their vertices and faces must be identical and in the exact same orde, right?
Now suppose that we want two or more objects that have already been unwrapped and textured for the diffuse texture (very common case with models we import from SHIII or with free models available on the web) to share the same AO map and to be baked together (as a ship hull, superstructure, funnels, masts, lifeboats, etc). The easiest way to accomplish that, would be by combining all the meshes into one big object, then one should auto-remap (or resize/re-sort) the UV map of the combined object so that the unwrapped faces will cover the whole UV space without overlapping with each other, bake the AO map and finally separate the combined object and recombine the resulting meshes so to recompose the original models that we had combined. Now what I wonder is, are we sure that after the combining-separation-recombining of the original models, all their faces and vertices are exactly in the same order as before?

Quote:
Originally Posted by Aktungbby View Post
^FIXED! TO INCLUDE WHOLE SENTENCES! NATURALLY, I PREFER A THREAD WITH ''THINGS IN A SORDID WAY''... BUT WE'VE WOLFERZ'S "THE BILGE" FOR THAT ALREADY!
Quote:
Originally Posted by Jeff-Groves View Post
One thing gap (NOT Gap) and I have talked about is TDW's Editor.
I'd like anyone using it to discuss issues in this thread.
Details such as which version and so on. There is no real easy to find information on which version you should use to do different things.
I'd like to see if we can compile that data.
Quote:
Originally Posted by Aktungbby View Post
GOOD gOD YOU'RE RIGHT! I'LL INFORM THE SWEATSHIRT MANUFACTURER IMMEDIATELY!
Quote:
Originally Posted by propbeanie View Post
Already he is working on his "Funniest Post of 2019" award...
Quote:
Originally Posted by Jeff-Groves View Post
Well he is being technical with his stuff.
Not sure how that goes over with Mrs. Aktungbby and I ain't gonna ask!
LOL, I don't want to sound too technical, but I confirm, I am gap. That's actually the acronyme of my full name, but without dots and with all lower case letters. I like it more like this, but I take no offense if someone wants to capitalize it lol
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-04-19, 05:45 PM   #6
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

VT can be lower.
I have an obj file open now with 28566 vertices but has 1520 texture coordinates.
To make it GR2 compatible we would need to add texture coords.
Those can be a repeat or just 0. That should allow TDW's program to import as a 'clean'. I think that's his term.
Jeff-Groves is offline   Reply With Quote
Old 02-04-19, 05:51 PM   #7
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

You can combine meshes into one obj file. They are still separate meshes If done right.

Then Bake. You only need the UV's (VT) for each mesh. Faces should not change.
Don't know if Wings3D or other programs can export UV's only or if you can have more then one texture channel in them.

Now. UV's are a quick way to change texture coords (VT) in Max. I burn AO in a different program, save the UV's, then import to Max.

To do the same if your program does not export just the texture information? Export the burned obj and copy paste the VT's when needed.
And before anyone asks? I can decode 3D Max UV's to vt's.

Read up on how the obj file handles faces. It's really simple once you fully understand it.
3 verts make a face. The f tells you what v gets what vt
f v1/t1 v2/t2 ....

Last edited by Jeff-Groves; 02-04-19 at 06:30 PM.
Jeff-Groves 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:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.