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 01-17-13, 03:48 PM   #17
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Been working on the ability to add new subsets to a mesh. This ability currently exists but only when you are importing (loose) 3D data to replace an existing mesh. Now I have coded in the ability to add subsets to a mesh by selecting an OBJ file to add to the mesh You are not limited to the number of subsets you can add to a mesh. However many subsets are in the OBJ file are the number of subsets that will be added to the selected mesh. The materials for the new subsets currently will not be created or imported. You'll have to do that manually.

Here I have the small boat GR2 file opened and I'm going to add some new subsets to it.



When you decide to add new subsets to a mesh this is the first window you will see:



Pretty self explanatory. After you click Import you will be presented with an open file dialog so you can select the OBJ file. NOTE: do not select the AO OBJ file. Select the non-AO OBJ file. If you elected to import UV2 data (AO) the app will read the non-AO OBJ file and the AO OBJ file (same file name as non-AO OBJ file but with _AO appended to the end).

I selected an OBJ file that has 5 subsets in it. These subsets are what makes up the periscope. I elected to import UV2 data also as you can see from the screenie above.

And here was the result:





Saved the file. Reopened with app and no problems. Opened with Granny Viewer and no problems. Excellent

This though has exposed something I never thought of. The ability to import subsets is excellent but there is no way to move individual subsets so you can place them where you want. Currently you have to move the entire mesh (which encompasses all of it's subsets). This of course is a slight problem that I am currently pondering how to implement
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 04:40 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.