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

Reply
 
Thread Tools Display Modes
Old 01-18-22, 09:12 AM   #1
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Before I go into details on how a simple Wings3D import/export cycle can mess up a pair of UV1/UV2 obj files, and how we can fix the mismatches, I recommend you to get some theory on obj file architecture. Please read carefully the following post by me and report back if any point is not perfectly clear to you:

https://www.subsim.com/radioroom/sho...75#post2786275
Quite hard for me to understand. Vertice, vertex, what's the difference ? What's that ? Else, I know what a face is, and what a normal is (or I think). So, my problem would come from the second number in each triplet ?

Quote:
Originally Posted by gap View Post
Maybe this is happening because S3d expects an .mtl file with the same name as the .obj file to be available in the same folder, but the *_AO.obj file (renamed by you *_UV2.obj) still points to a .mtl file with the _AO suffix. To fix this issue open the obj file in notepad and change manually the following line:

mtllib *_AO.mtl

to:

mtllib *_UV2.mtl
No, mtllib *-uv2.mtl

Edit : This solved the issue on the funnel.

Last edited by Mister_M; 01-18-22 at 09:25 AM.
Mister_M is offline   Reply With Quote
Old 01-18-22, 11:27 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Mister_M View Post
Quite hard for me to understand. Vertice, vertex, what's the difference ? What's that ?
Isn't vertices the plural form of vertex? I.e. the points which, being connected by edges, compose faces. In a triangulated model, three vertices (or vertexes using an alternative spelling of the same word) delimit a single face.

Quote:
Originally Posted by Mister_M View Post
Else, I know what a face is, and what a normal is (or I think). So, my problem would come from the second number in each triplet ?
Hard to say as I don't know how the information contained in obj files is read by S3d and how it is stored in a dat file, nonetheless, the most likely causes of wrong secondary UV map import are:

- different number/order of texture vertices (vt lines) in the UV2 model compared to the main model.

- different order of face definitions (f lines) in the UV2 model compared to the main model.

What I can tell you for sure is that if the main and the UV2 model are identical in all the respects except vt coordinate values, there is a 100% probability of success. With this idea in mind I have created an Excel spreadsheet which sorts vt coordinates for us. It is a rather crude tool, it requires a lot of manual data filtering, cutting and pasting; any mistake will cause wrong results, but if used correctly it does its job just fine.

If you are interested into testing it, I can upload it somewhere and post its link in the Almagest thread where it belongs more than here. Sorry kapuhy for kidnapping one of your threads again

Quote:
Originally Posted by Mister_M View Post
No, mtllib *-uv2.mtl

Edit : This solved the issue on the funnel.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-18-22, 12:13 PM   #3
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

EDIT. I've posted this into the Almagest thread. Sorry Kapuhy for hijaking your thread.

By the way, I love your small tramp steamer "Armora", both for 3D model and texture. It's very clean without being too heavy. Great work !

Mister_M is offline   Reply With Quote
Reply

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 09:56 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.