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 12-03-13, 05:59 PM   #24
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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.
  Reply With Quote
 


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:20 AM.


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.