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 09-10-13, 04:33 PM   #1
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
I can answer this question:

often diffuse textures are tiled along a model. This is especially true for big models like ships, which otherwise would require huge textures. As long as textures used are homogeneous enough, and UV maps are placed wisely, you won't notice the repetitions, and the same pixels can be used on various parts of the model. This involves overlapping UV maps.

AO maps are another matter though: being caculated on the base of models' topology, there is a little chance that their texels can be used effectively on more than one area of their 3d model. Even if the model had many similar elements (which would correctly use the same portion of a diffuse texture) they would probably receive different internal shadows, depending on other surrounding elements, and they would therefore require each its own portion of the texture. On the other hand, shadows baked in AO maps don't need to be as detailed as the particulars usually painted on diffuse maps: for their nature shadows tend to be blurry anyway. As a consequence, a good AO map should contain little or no overlapping, with many small elements crammed over a relatively small texture area.

The obj format don't support multiple UV sets. The workaround used by GR2 Editor and by s3d, is importing the two UV sets from two copies of the same model, with identical vertex coordinates but with different UV maps. Nonetheless, if you are not going to use an AO map, or if your AO map uses the same coordinates as the diffuse one, you can discard the second UV set (thus reducing file size), and eventually overlap the AO on the diffuse texture as I did with the barrage balloon.
Ah, now everything makes sence! Thank you, sir! I believe this will help me in the future on the major scale. Especially with importing uboats from SH3 (for now at least) as their AO maps absolutely cannot be done on the regular UVs.
Well, in that case, I'll see what is going on with the uvs coordinates between the two files and why are you having such oddness.
Targor Avelany is offline   Reply With Quote
Old 09-10-13, 05:00 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Targor Avelany View Post
Ah, now everything makes sence! Thank you, sir! I believe this will help me in the future on the major scale. Especially with importing uboats from SH3 (for now at least) as their AO maps absolutely cannot be done on the regular UVs.


you can use the same concept, just the other way around, for a possible new release of your lifeboat mod: take the AO map, overlap it to the diffuse map using the multiply blend mode, and just discard the AO texture together with the second UV channel.

One last reminder: vertex coordinates of the two objects used for diffuse and AO maps must be identical. Move one vertex in one of the models by one hundredth of unit, and GR2 Editor will throw an error (experienced it myself ).

Quote:
Originally Posted by Targor Avelany View Post
Well, in that case, I'll see what is going on with the uvs coordinates between the two files and why are you having such oddness.
Thank you Targor, I was going to ask you to send your 3ds-exported obj file my way, for me to do the comparison
gap is offline   Reply With Quote
Old 09-10-13, 06:39 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Your file is missing tex-coords for the dmg cable object

That may be what is causing the mess.
  Reply With Quote
Old 09-10-13, 07:03 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by privateer View Post
Your file is missing tex-coords for the dmg cable object

That may be what is causing the mess.
Need collision models to be UV-mapped?

In any case that cannot be the problem: I still haven't started importing the model that you are talking about. The messed UV coordinates are the ones of the main balloon (see the last version of the GR2 file included in the package I sent you).
gap is offline   Reply With Quote
Old 09-10-13, 11:07 PM   #5
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

so far was not able to find anything. I'll throw the file back at you tomorrow and see if we can narrow it down.
Targor Avelany is offline   Reply With Quote
Old 09-11-13, 02:08 AM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Targor Avelany View Post
so far was not able to find anything. I'll throw the file back at you tomorrow and see if we can narrow it down.
Okay, I am waiting for the file
gap is offline   Reply With Quote
Old 09-11-13, 10:35 AM   #7
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

gap, your inbox is full again!
Targor Avelany is offline   Reply With Quote
Reply

Tags
awesome, campaign, graf zeppelin, harbour, new bases, new ships, ohii

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:18 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.