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 09-29-07, 11:05 AM   #1
l3th4l
Planesman
 
Join Date: May 2005
Posts: 180
Downloads: 10
Uploads: 0
Default

did anybody try just adding a ...N01... texture to the folder? it's just a thought, but maybe there already is a normal map referenced inside the model but not found..

i'd try creating a grayscale heightmap on top of the regular texture (for alignment); then running the normalmap filter over it, flatten and save under the same name except replacing the "T" with an "N"...

if anybody already tried this then please forget i said anything
l3th4l is offline   Reply With Quote
Old 09-29-07, 11:41 AM   #2
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

Quote:
Originally Posted by l3th4l
did anybody try just adding a ...N01... texture to the folder? it's just a thought, but maybe there already is a normal map referenced inside the model but not found..
No, i already tried that doesn't work. And using S3D, i can't find where's the texture reference. I believe it doesn't quite read textures right in the dat files
__________________

kapitan_zur_see is offline   Reply With Quote
Old 09-29-07, 12:50 PM   #3
l3th4l
Planesman
 
Join Date: May 2005
Posts: 180
Downloads: 10
Uploads: 0
Default





look in "NSS_Porpoise.upc". you'll find the "NormalmapTextureName" parameter is NULL. Set it to "data/Submarine/NSS_Porpoise/NSS_Pclass_N01.tga" and the normalmaps appear if you've created them correctly and put them in the right place.

the are a few parts that are not covered by that normal map, but i imagine there is a place somewhere else where you can activate those.
l3th4l is offline   Reply With Quote
Old 09-29-07, 01:03 PM   #4
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Quote:
Originally Posted by kapitan_zur_see
Quote:
Originally Posted by l3th4l
did anybody try just adding a ...N01... texture to the folder? it's just a thought, but maybe there already is a normal map referenced inside the model but not found..
No, i already tried that doesn't work. And using S3D, i can't find where's the texture reference. I believe it doesn't quite read textures right in the dat files
S3D does read them right. Don't know why you assume this. Because you don't see a hardcoded path or embedded texture does not mean S3D is doing wrong. Besides, you can always ask in my S3D thread...

In SH4 pretty much all textures are external and their file/path is determined based on the label of the material (for ships etc. remove cfg#TXR_ and you've got the filename...). Second, the game uses a file search method where it first searches the directory where the .dat is located, then it will search the textures folder.

[edit] The sub textures are only for the hulls. To have a complete look, you'll also have to add normal maps for conning towers and other objects... You'll also want to add a height map (alpha channel Oxx texture)...

Last edited by skwasjer; 09-29-07 at 01:13 PM.
skwasjer is offline   Reply With Quote
Old 09-29-07, 01:30 PM   #5
l3th4l
Planesman
 
Join Date: May 2005
Posts: 180
Downloads: 10
Uploads: 0
Default

to add the conning towers you gotta look inside UPCData\UPCUnitsData and then the unitparts file you're interested in. look for the conning tower normal map overrides (idk where the parameter is first defined maybe skwasjer can point you in the right direction?). you also need to create those normal maps based on the textures found in textures/tnormal/tex of course.

Quote:
Originally Posted by skwasjer
You'll also want to add a height map (alpha channel Oxx texture)...
what is that used for if we already have a normal map? And is the name "LightmapTexture" which those Oxx textures are called inside the upc files a leftover from sh3? I haven't seen a illuminated surface (or are they simply used for making shadows?) and I thought the Oxx textures were used for specularity?
l3th4l is offline   Reply With Quote
Old 09-29-07, 04:29 PM   #6
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Quote:
Originally Posted by l3th4l
to add the conning towers you gotta look inside UPCData\UPCUnitsData and then the unitparts file you're interested in. look for the conning tower normal map overrides (idk where the parameter is first defined maybe skwasjer can point you in the right direction?). you also need to create those normal maps based on the textures found in textures/tnormal/tex of course.

Quote:
Originally Posted by skwasjer
You'll also want to add a height map (alpha channel Oxx texture)...
what is that used for if we already have a normal map? And is the name "LightmapTexture" which those Oxx textures are called inside the upc files a leftover from sh3? I haven't seen a illuminated surface (or are they simply used for making shadows?) and I thought the Oxx textures were used for specularity?
A normal map is not the same as a height map. I can go ahead and explain everything but there's a many good resources out there. Below some from wikipedia.

Bump mapping in general: http://en.wikipedia.org/wiki/Bump_mapping
Height map: http://en.wikipedia.org/wiki/Heightmap
Normal map: http://en.wikipedia.org/wiki/Normal_mapping

An interesting summary page with screenshots: http://www.modwiki.net/wiki/Texturing

The height map is stored in the alpha channel of the Oxx.
The normal map is stored in RGB of the Nxx.
The ambient occlusion/shadow map is stored in RGB of Oxx (http://en.wikipedia.org/wiki/Ambient_occlusion)

The 'LightmapTexture' is the ambient occlusion/shadow map. In a 3D editor you speak of ambient occlusion, but the baked texture that is used in the game is a 'lightmap'. SH3 only uses ambient occlusion for interiors iirc, not for exterior/ships/etc... It does NOT use bump/normal mapping...
skwasjer is offline   Reply With Quote
Old 09-29-07, 04:49 PM   #7
rcjonessnp175
Weps
 
Join Date: Jul 2006
Location: Panzer barracks, Germany
Posts: 363
Downloads: 82
Uploads: 0
Default

im a noob but from that pict this looks promising, so is this basically just a edit a config type file to activate this, or is thier much more to this puzzle? Either way goodjob tracking down what has been found
__________________


The mother ship,Coolermaster HAF, I7 intel overclock 4ghz, , 6gb mem, 5870 crossfire, soundblaster Xfi titanium , Oh and 52 inch samsung 750 120hz. 7.1 onkyo 1200 wattss system

Last edited by rcjonessnp175; 09-29-07 at 05:29 PM.
rcjonessnp175 is offline   Reply With Quote
Old 09-30-07, 03:23 AM   #8
l3th4l
Planesman
 
Join Date: May 2005
Posts: 180
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by rcjonessnp175
so is this basically just a edit a config type file to activate this, or is thier much more to this puzzle?
that and creating the texture itself of course

Quote:
A normal map is not the same as a height map. I can go ahead and explain everything but there's a many good resources out there.
i'm aware of what each is. the heighmap usually is the basis from which a normal- or bump-map (after all normal maps are basically more detailed bumpmaps because all channels are used to store information) is calculated.

question is, what is that "heightmap" used for by sh4? sh4 doesn't support prallax or displacement mapping (where a heightmap of some kind would be required) and the bump-mapping is done via normalmap as far as i know. That's why i thought it's not a heightmap at all but used for another purpose like specularity for example.

as for the light-(or rather shadow-)map: did i understand correctly that it is used the put pre-calculated shadows on objects like a multliply layer in photoshop?

edit:
for anyone interested, i've made a normalmap for the porpoise class. if you're new to this you can use it as a guideline for creating new normalmaps :
http://files.filefront.com/NSS+Porpo.../fileinfo.html
this is just a demonstration - right now i'm not planning to do each and every sub and its parts. unless i change my mind, of course the png is there to see how the heightmap i created the normalmap from looked like before to give you a better idea.

Last edited by l3th4l; 09-30-07 at 04:44 AM.
l3th4l is offline   Reply With Quote
Old 09-30-07, 09:06 AM   #9
sergbuto
Pacific Aces Dev Team
 
Join Date: Sep 2002
Location: Sweden
Posts: 1,331
Downloads: 15
Uploads: 0


Default

Quote:
Originally Posted by skwasjer
SH3 only uses ambient occlusion for interiors iirc, not for exterior/ships/etc... It does NOT use bump/normal mapping...
Bump mapping is indeed used in SH3 but only for the crew if I remember correctly.
__________________
Serg's SH4 and SH3 pages
sergbuto is offline   Reply With Quote
Old 09-30-07, 03:24 PM   #10
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

Great finding
__________________

kapitan_zur_see 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 06:16 PM.


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