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 11-06-12, 11:42 AM   #1
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Hi Pintea, thank you for your head-up.

I've opened that file and all is see is a pattern of sprayed-like white/grey spots on a black background.
Can you explain how does this file work?
That texture represents the tree distribution over an area of 5km x 5km (one pixel for each 4 meters). It is tiled everywhere, so the texture should be tileable, otherwise it will look bad.

Black = no trees
Grey to White = probability of trees, the whiter the more probable a tree will be there.
Pintea is offline   Reply With Quote
Old 11-06-12, 12:22 PM   #2
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Again, thank you Pintea.

Echolot is offline   Reply With Quote
Old 11-06-12, 12:33 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Pintea View Post
That texture represents the tree distribution over an area of 5km x 5km (one pixel for each 4 meters). It is tiled everywhere, so the texture should be tileable, otherwise it will look bad.

Black = no trees
Grey to White = probability of trees, the whiter the more probable a tree will be there.
Thank you very mutch Pintea!

Since we are at it, I've always wandered how TerrainTypes.raw is related with the ID's found in Terrain.cfg. Any idea?
gap is offline   Reply With Quote
Old 11-06-12, 04:07 PM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Works a treat , i just added some squigly white lines to give more trees look on flat ground without added many more trees but it also gives an agricultural look if looking at a slope . My personal use only , waiting for someone to do the actual mod .
THE_MASK is offline   Reply With Quote
Old 11-06-12, 04:35 PM   #5
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Thank you very mutch Pintea!

Since we are at it, I've always wandered how TerrainTypes.raw is related with the ID's found in Terrain.cfg. Any idea?
I believe I have an idea
TerrainTypes.raw is a representation of the climate zones around the globe.
The link between TerrainTypes.raw and in-game textures is made through Terrain.cfg, but I guess you figured that out already.

Now, open TerrainTypes.raw in photoshop and set Image->Mode->IndexedColor.
After that use the color picker to find out the color index value.
In Terrain.cfg you'll see something like

[IdxConversion]
IDX 1=2 ;Polar Deserts
IDX 2=2 ;Arctic Tundra
IDX 3=3 ;Typical Tundra
IDX 4=3 ;Southern Tundra

Where IDX 1, IDX 2 etc are color indices from TerrainTypes.raw.
Pintea is offline   Reply With Quote
Old 11-06-12, 05:08 PM   #6
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Hello sober.

I will play around with the file in photoshop tomorrow, but I'm not sure with raw files, have to learn it. Time for some experiments.

Best regards.

Echolot.



Thank you for the explanations Pintea.

Echolot is offline   Reply With Quote
Old 11-06-12, 06:18 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Pintea View Post
I believe I have an idea
TerrainTypes.raw is a representation of the climate zones around the globe.
The link between TerrainTypes.raw and in-game textures is made through Terrain.cfg, but I guess you figured that out already.

Now, open TerrainTypes.raw in photoshop and set Image->Mode->IndexedColor.
After that use the color picker to find out the color index value.
In Terrain.cfg you'll see something like

[IdxConversion]
IDX 1=2 ;Polar Deserts
IDX 2=2 ;Arctic Tundra
IDX 3=3 ;Typical Tundra
IDX 4=3 ;Southern Tundra

Where IDX 1, IDX 2 etc are color indices from TerrainTypes.raw.
Pintea, you just gave me one missing piece of the puzzle, you are my hero!

I was sure that color values in the raw map had to be in relation with indices listed in Terrain.cfg, but until today mutch as I tried and tried again I couldn't find a way to match them.

Converting the map to indexed color mode, as suggested by you, finally made the trick! Am I correct in assuming that terrain's seasons settings are taken from cfg files found in the Env folder for each zone defined ClimateZones.tga?

I have one more question, if you don't mind: is it possible to set the game to use different seaweed and submerged rocks' textures, depending on season and terrain type, as done with seabottom sand, emerged rocks, and land vegetation textures?
gap is offline   Reply With Quote
Old 11-07-12, 05:28 AM   #8
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Pintea, you just gave me one missing piece of the puzzle, you are my hero!
Glad to help !
I haven't had too much time lately to keep an eye on the forums so I may have missed some discussions, but if anyone has any modding questions you can PM me.

Quote:
Originally Posted by gap View Post
Am I correct in assuming that terrain's seasons settings are taken from cfg files found in the Env folder for each zone defined ClimateZones.tga?
Yes, you are correct.
The vegetation type distribution is done through the TerrainTypes.raw/Terrain.cfg files, and the seasons for each vegetation type is defined in the Climatezones.tga/cfg files.
This is done because some vegetation types are used in multiple areas around the globe, but the seasons are not the same everywhere.

Quote:
Originally Posted by gap View Post
I have one more question, if you don't mind: is it possible to set the game to use different seaweed and submerged rocks' textures, depending on season and terrain type, as done with seabottom sand, emerged rocks, and land vegetation textures?
Unfortunately it's not possible, those are not linked with the climatezones/season data.
Pintea is offline   Reply With Quote
Old 01-08-13, 04:52 AM   #9
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

THE_MASK is offline   Reply With Quote
Old 01-08-13, 12:47 PM   #10
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

^^



__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 01-08-13, 04:48 PM   #11
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

More trees
http://www.subsim.com/radioroom//dow...o=file&id=3880
THE_MASK is offline   Reply With Quote
Reply

Tags
environment, small, tree, trees

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 04:01 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.