![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Sea Lord
![]() Join Date: Aug 2007
Location: Too far from the Pacific right now...
Posts: 1,634
Downloads: 0
Uploads: 0
|
![]()
Hi folks... Ok, I'm banging my head on this one...
![]() Does anyone know what the "O" prefixed texture files are for? For example: NDD_Akizuki_O01.dds, NDD_Akizuki_O02.dds ... :hmm: I'm working on new content for SH4 http://www.subsim.com/radioroom/showthread.php?t=111177 and having a problem figuring out what they do and how they were made. My assumption is that they are used as lighting maps but I'm not sure. Can anyone who may have messed about modding SH4 textures shed some light on these? Thx! ![]() |
![]() |
![]() |
![]() |
#2 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
http://www.subsim.com/radioroom/showthread.php?t=120918
The O files actually map the SHAPES on the object, unlike the T file which seems to be the texture, but parts of it are borrowed by different areas. tater |
![]() |
![]() |
![]() |
#3 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
Let me explain:
The Oxx textures are a combination of 2 textures. The RGB channel is an ambient occlusion map (prerendered details/shades/scratches/rust), and is mapped onto the model using a secondary UV-set (from TMAP). It gives large surfaces more diversity (which would look very plain with only 1 texture, see ship hulls in SH3) and the prerendered shadows can emphasize dark areas. The alpha channel is a height map, and is used for bumpmapping (as are Nxx textures) which is a way to 'fake' depth on a flat surface (for instance door handles, window frames, rivets). Here's a screenshot of the Txx texture and Oxx texture (RGB-channel!) mapped onto the Yamato: http://www.subsim.com/radioroom/show...7&postcount=26
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#4 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
The O layers actually show various hull form shapes, though. It seems like the only wat to put a specific pattern on a ship, for example. The T layer reuses the textures all over the ship. I am totally baffled by them
|
![]() |
![]() |
![]() |
#5 | |
Sea Lord
![]() Join Date: Aug 2007
Location: Too far from the Pacific right now...
Posts: 1,634
Downloads: 0
Uploads: 0
|
![]()
Thx guys... after I posted I did an experiment and got pretty much the same results as skwasjer did... then I opened the .cfg in data/Roster/Japan/Sea and lo and behold! :
[Texture 1] TextureName=data/Sea/JPGunBoat02/JPGunBoat02_T01.tga LightmapTextureName=data/Sea/JPGunBoat02/JPGunBoat02_O01.tga ![]() NormalmapTextureName=data/Sea/JPGunBoat02/JPGunBoat02_N01.tga StartDate=19380101 EndDate=19451231 Frequency=1 Helps to have your Wheaties early in the morning... BEFORE posting... ![]() Quote:
Will keep you posted... |
|
![]() |
![]() |
![]() |
#6 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
Why baffled?
A single texture is too small to contain details for an entire (big) ship. That's why it mostly contains 'material' type sections (metal/wood/some doors/some windows/etc), and is applied to entire areas. It will not give alot of details, see it as an overall paint job. The Oxx texture comes into play here. Big areas (like the hull) can be given more detail now. See this as the finishing paint brush job. 20 doors that would otherwise look the same or a hull with repeating metal look, can now be touched up by blending different scratches, rust and shades over it.
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#7 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
I understand what is going on (sort of) but it's damn confusing to make a skin. I wanted to dazzle paint a merchant. Yeesh. In the ships with such paint in the stock game, it is all done in the O layers.
On another add a japanese flag on the side. I found the middle section in the O file, but it's like an alpha channel, you can't paint with white. tater |
![]() |
![]() |
![]() |
#8 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
OK, looked at them a little to remember what confused me.
Take the T file. The stuff is broken into texture areas that get used and reused around the ship. I understand that. Now open the O file. The shapes of every little part of the ship is on there. Cool, I can paint a section a color, then see where it is on the ship. That is fine, too. What is confusing is this. If I open Levels, and I drop the outputs on R/G/B to zero, I see a version of the T file (different, but everything is in the same place). I understand that base layer, but what confuses me is that the little parts in the other channels---all the various surfaces of the ship---in no way relate to the T or O file in terms of what texture gets used for what part. So I cannot understand how to do dazzle paint, for example. Or even somethign as trivial as a meatball in a white field on the side of a black hull. I spent hours trying. |
![]() |
![]() |
![]() |
#9 | |
Sea Lord
![]() Join Date: Aug 2007
Location: Too far from the Pacific right now...
Posts: 1,634
Downloads: 0
Uploads: 0
|
![]() Quote:
![]() True IF you declare 255,255,255 as the color of your alpha. Change your flag background color to 255,255,254 (or similar) and you should be able paint. The user won't notice the difference... ![]() I've been adding and merging layers in my tests on the new vessels for exactly the same purpose... adding 2D details to keep the poly counts down... |
|
![]() |
![]() |
![]() |
#10 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
The alpha channel is a height map and represents information (0-255 height), not actual pixels. Don't use it to control opacity, because it's not what it is for...
As far as the RGB channel, again, this uses a different UV-set, which is why it is layout out differently... Pack3D does not export these UV coordinates. Read up on some of my old threads, or ones where I contribute to understand more about models and how the game renders them. It has all been discussed before...
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#11 | ||
Sea Lord
![]() Join Date: Aug 2007
Location: Too far from the Pacific right now...
Posts: 1,634
Downloads: 0
Uploads: 0
|
![]() Quote:
![]() Quote:
I guess the other aspect is this: How much of the SH3 mods and info are relevant to SH4? I notice a fair number of SH4 mod links refer to SH3. I didn't play SH3 so I'm at a loss in regards to the mods there... Last edited by DeepIron; 09-11-07 at 11:16 AM. |
||
![]() |
![]() |
![]() |
#12 | |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]() Quote:
![]() Pack3D exports all Vt coordinates ... Pack3D does not export Vt (Vn!) indexes sequence from section TMAP, and read all as Vt coord's ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 11-20-07 at 09:06 AM. |
|
![]() |
![]() |
![]() |
#13 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
Pack3D is still useless to export the extra UV-sets. I was giving them an easy answer...
![]()
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
|
|