![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
12-03-13, 05:59 PM
|
#24 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Well since I lost all the original code somehow? I've started over.
That's not all bad as I have figured out a few more things that I had overlooked before. The most recent issue is with some obj files gap is working with. The textures are getting destroyed so We started takeing a good hard look at the problem. I'm convinced at this time that it's the way his tex co-ords and faces are being written to file. It confuses TDW's program and some information is being lost on import. I did 2 seperate work arounds to get an import that was good and I'm going to explain the best (IMO) of the 2. There are limitations that we will need to work with by hand editing a few files for now. Those will be corrected once I get some more codeing done on the Sorter. It's good enuff to do what is needed for now but not finished yet. It only sorts things into place where TDW's program expects to find them. A good example of this is to do an export from Meshlab and try to import that. gap has a copy of the Sorter and I'm sure he is just waiting to get started. ![]() First a few things about Meshlab. It does not like tga or dds files so have your textures also saved as jpg images. We also need to change the mtl file as it hates those also. Here's an edited version that will work. newmtl Balloon Ka 0.200000 0.200000 0.200000 Kd 1.000000 1.000000 1.000000 Ks 1.000000 1.000000 1.000000 Tr 0.000000 illum 2 Ns 0.000000 map_Kd Barrage_Balloon.jpg newmtl Rope Ka 0.200000 0.200000 0.200000 Kd 0.850980 0.850980 0.850980 Ks 1.000000 1.000000 1.000000 Tr 0.000000 illum 2 Ns 0.000000 map_Kd Barrage_Balloon.jpg Don't worry that it's different as we only use it for Meshlab so we get proper 'colors' when we export. Future updates to the Sorter will pre-adjust any mtl files, send the info to Meshlab, grap and then sort the exported file. You'll have no need to do all the editing we're doing now. Last edited by Madox58; 12-03-13 at 06:31 PM. |
|
|
|
