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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-20-12, 06:05 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Working with BIGREG has shown that even Wings3D can shuffle around subset ordering. Thus I needed to code in a way to force subset ordering:



When importing and 'Force subset ordering' is checked the app will (try) and keep the subsets in numerical order as they are read from the OBJ file(s). I'll get to why I say (try) here in a few.

When the app exports mesh data to OBJ files it adds "_subsetx" to the end of every 'g' entry in the OBJ file. 'g' entries signify mesh subsets in the OBJ files. As I've seen from BIGREG's files Wings3D can scramble up the order of the subsets - no longer are they in _subset0 to _subsetx numerical order. Thus is 'Force subset ordering' is checked then the app will rearrange the subsets so that they are in numerical order as they are read from the OBJ file.

If some 'g' entries have "_subsetx" entries and some do not then the app will place all the "_subsetx" entries at the front (numerically lower) and then will place all the non "_subsetx" entries after those as they are found.
TheDarkWraith is offline   Reply With Quote
 

Thread Tools
Display Modes

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 05:16 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.