![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
01-17-13, 03:48 PM
|
#17 |
|
Black Magic
![]() |
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
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
