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, 12:40 PM   #1
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,655
Downloads: 137
Uploads: 0


Default

Post #2060 is one place I talk about the GR2 files when We export them to obj.
Jeff-Groves is offline   Reply With Quote
Old 02-04-19, 12:58 PM   #2
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
Post #2060 is one place I talk about the GR2 files when We export them to obj.
This one:

Quote:
Originally Posted by Madox58 View Post
I talked with gap about the file size on export and how RAD has the files stored in the GR2 files.
Don't recall if it was by PM, E-mail, or in a thread here somewhere.

I refer to it as 'shuffeling' or adding redundant verts to balance file sizes.

Importing the files into most 3D programs gets those thrown out as most programs optimize by default.
I remember you discussing about the importance of these "redundant vertices", though to be totally honest I never fully understood what's the point about them
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-04-19, 01:12 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,655
Downloads: 137
Uploads: 0


Default

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.

Last edited by Jeff-Groves; 02-04-19 at 01:38 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 06:34 PM.


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.