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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-14-19, 02:08 AM   #1
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,717
Downloads: 452
Uploads: 0


Default Texture matching 3D object

Hi,

How can i see precisely my 3D object shape matching the TGA file for texture?

Like in the example below, this object is using the texture on second pict, but how can i be sure it will take the correct place on the TGA?





That puzzle me from some time, and would be able to fix some

Second question:

What is the interest to have embedded TGA instead of TGA inside the data/texture folder? Or both?

Thanks for pointing me in the right direction

Last edited by Fifi; 05-14-19 at 02:46 AM.
Fifi is offline   Reply With Quote
Old 05-15-19, 11:51 AM   #2
JapLance
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
How can i see precisely my 3D object shape matching the TGA file for texture?

Like in the example below, this object is using the texture on second pict, but how can i be sure it will take the correct place on the TGA?
Not sure if I understand your question properly, but if you move to node 310 (in your first pic) you can view the 3D object with the texture clicking in Model preview.
  Reply With Quote
Old 05-15-19, 12:25 PM   #3
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,717
Downloads: 452
Uploads: 0


Default

No, sorry, hard to me to translate it correctly

When you look at the TGA of second picture, we see there are more than one texture for more than one item.

Looking at first picture (the UV map preview) it will take some texture part of the TGA of second picture.
But how can i see precisely wich texture part of TGA it will take?

Best would be to have a superposition of the UV map upon the TGA...but even resizing the UV map to same resolution as the TGA, it’s everywhere but the right place
Fifi is offline   Reply With Quote
Old 05-15-19, 01:54 PM   #4
JapLance
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

If both are at the same resolution, they should match.

In your two pics, the map channel is at 256x256, while the texture is 1024x1024. Increase the map channel to 1024x1024 (UV map preview), and then it will match the texture size. If everything is correct, the coordinates of the 3D object position will match the texture. If they don't, you're probably looking at the wrong texture.

And don't worry, I too have lots of problems translating from my language into English. When I learned English there was nothing like all this stuff, so I have problems trying to explain myself as well.
  Reply With Quote
Old 05-15-19, 02:09 PM   #5
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,717
Downloads: 452
Uploads: 0


Default

UV map width and height are locked in S3D, so i guess i have to export it (via the save in blue) and resize it in photoshop?... and then superpose it on the TGA...
Fifi is offline   Reply With Quote
Old 05-15-19, 02:23 PM   #6
JapLance
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Click on the small lock, it will allow you to specify any resolution.
  Reply With Quote
Old 05-15-19, 04:18 PM   #7
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,717
Downloads: 452
Uploads: 0


Default

Fifi is offline   Reply With Quote
Reply


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 07:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.