Setting depth

Are you working on a scenery and having problems getting it right? This is where you should ask for help.

Re: Setting depth

Postby itsme » Fri Jan 09, 2009 10:07 am

Cheers, Reino.
User avatar
itsme
 
Posts: 820
Joined: Mon Jun 16, 2008 5:32 pm

Re: Setting depth

Postby Charlotte » Fri Jan 09, 2009 10:58 am

Well the instructions don't really explain everythiing you need to know though.

The Depth.bmp file:

The depth.bmp file is a simple bmp file with 1024x1024 pixels and 256 colors, the file was made similar to an ordinary map on purpose, each pixel has a color which is directly related to it's height above sea level.

Here is a small portion of the map file enlaged to make the pixels visible,and the color palette used to make it appear as a topographic map.

(images were here)

The brighter the color is the deeper the sea will be at this point, as the pixel value is used just as the values of the map.bmp file, but only in depth instead of elevation.


To know what the actual depth will be you need to multiply the index value with the scenery_alt value found in the scenery.cfg. You can't get exact depths, only in increments of the scenery_alt value and the interpolation of those.
Charlotte
Image
User avatar
Charlotte
Site Administrator
 
Posts: 746
Joined: Wed Jun 25, 2008 2:40 pm
Location: Norway
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby danim » Fri Jan 09, 2009 11:35 am

while we are on the topic what colour would I use to get a base of 40ft below sea level
User avatar
danim
 
Posts: 801
Joined: Mon Jun 16, 2008 11:38 am
Location: Livingston, Scotland, UK
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby Charlotte » Fri Jan 09, 2009 11:46 am

Daniel, did you see the last part of my previous post? You have to find the land_alt (or whatever it is called) in the scenery.cfg. Then take 40 and divide it by that number. You will just have to round up or down your index value to the nearest whole number.
Charlotte
Image
User avatar
Charlotte
Site Administrator
 
Posts: 746
Joined: Wed Jun 25, 2008 2:40 pm
Location: Norway
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby danim » Fri Jan 09, 2009 12:10 pm

I have now got the number 9 so what colour would I use for the depth.bmp
User avatar
danim
 
Posts: 801
Joined: Mon Jun 16, 2008 11:38 am
Location: Livingston, Scotland, UK
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby Charlotte » Fri Jan 09, 2009 1:21 pm

In your colour selecter (as in the below image), start counting from the top left. The first one is index #0, then 1, 2 etc. until 255 (there are 256 colours).

40 feet / 9 = 4.44 so your closest number is 4. This will make the depth 36 feet (or is it meters, I forget)

topo6.gif
topo6.gif (14.85 KiB) Viewed 3999 times
Charlotte
Image
User avatar
Charlotte
Site Administrator
 
Posts: 746
Joined: Wed Jun 25, 2008 2:40 pm
Location: Norway
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby danim » Fri Jan 09, 2009 1:44 pm

the problem that I am having is that the depth of the firth of forth is 40ft but in VS it has the depth at 800m so how would I fix it
this is what it looks like at the moment
Image
User avatar
danim
 
Posts: 801
Joined: Mon Jun 16, 2008 11:38 am
Location: Livingston, Scotland, UK
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby danim » Fri Jan 09, 2009 3:21 pm

it is also known as k_alt
User avatar
danim
 
Posts: 801
Joined: Mon Jun 16, 2008 11:38 am
Location: Livingston, Scotland, UK
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby Charlotte » Fri Jan 09, 2009 3:55 pm

It would be nice if you started your own topic instead of hijacking Daniel's topic.

Daniel, what graphics program do you use?
Charlotte
Image
User avatar
Charlotte
Site Administrator
 
Posts: 746
Joined: Wed Jun 25, 2008 2:40 pm
Location: Norway
Preferred Sim: Vehicle Simulator

Re: Setting depth

Postby Charlotte » Fri Jan 09, 2009 4:13 pm

Sorry, my bad.
Charlotte
Image
User avatar
Charlotte
Site Administrator
 
Posts: 746
Joined: Wed Jun 25, 2008 2:40 pm
Location: Norway
Preferred Sim: Vehicle Simulator

Next

Return to Scenery Dev Support

Who is online

Users browsing this forum: No registered users and 1 guest