Jump to content

Welcome to OZx Forum

Welcome to OZx Forum guest,

Wouldn't it be nice if I would call you by your name or nickname of your choice ? 

Like most online communities you must register to post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of OZx Forum by signing in or creating an account.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Sign in to follow this  
deccas1391

Isolating a bombing range

Recommended Posts

Hi

I'm using Maps2Bgl to make the Salt Ash bombing range near Newcastle, so I've made a new Google Earth Polygon. Here's a screenshot:

SABR.jpg

Yet I'm still getting a square of the area. How can I get just the bombing range?

Thanks

Share this post


Link to post
Share on other sites

Hi

I'm using Maps2Bgl to make the Salt Ash bombing range near Newcastle, so I've made a new Google Earth Polygon. Here's a screenshot:

Yet I'm still getting a square of the area. How can I get just the bombing range?

Thanks

You need a blend mask. A 256col Grey-scale the same size as your original .bmp

First up work on a COPY of your original, cut out the bits you don't want by painting or filling them in as black...

sabrcutput.jpg

By tony_a at 2010-05-26

(Probably a good idea to save this under another name. It could come in handy later.)

then select the black background, invert your selection and paint or fill the inside section white. Blur up the edges a bit and you should get this....

sabrblendmask.jpg

By tony_a at 2010-05-26

Save this as a 256 col, Greyscale TIFF. with the same name as your original image with "_BlendMask" tacked onto the end (without the inverted commas.) You will need to include it in your .inf file. It tells the compiler to include the white area and leave out the black area.

[source]

Type = MultiSource

NumberOfSources = 2

[source1]

Type = BMP

Layer = Imagery

SourceDir = "."

SourceFile = "xxxxxxx-Orig.bmp"

Variation = All

Channel_BlendMask = 2.0

NullValue = 255,255,255

SamplingMethod = Gaussian

ulyMap = -34.6015631772408

ulxMap = 148.002319335938

xDim = 2.14576721191248E-05

yDim = 1.76598536437644E-05

[source2]

Type = TIFF

Layer = None

SourceDir = "."

SourceFile = "xxxxxxx_Blend.TIF"

SamplingMethod = Gaussian

ulyMap = -34.6015631772408

ulxMap = 148.002319335938

xDim = 2.14576721191248E-05

yDim = 1.76598536437644E-05

[Destination]

DestDir = "."

DestBaseFileName = "whatever_YYYY_PR"

DestFileType = BGL

LOD = Auto

CompressionQuality = 85

I don't use Maps2BGL so don't know where the program keeps the .INF file. Good Luck and let's know how you get on.

Cheers Tony.

P.S. Don't use the UlyMap, UlxMap, xDim or Ydim above. Use the ones Maps2BGL produces.

Share this post


Link to post
Share on other sites

Sure :)

[source]

Type = MultiSource

NumberOfSources = 2

[source1]

Type = BMP

Layer = Imagery

SourceDir = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Addon Scenery\Salt Ash\texture"

SourceFile = "Area_Lp1_SnapOff_S032450075_S032455272_E151541425_E151551945.bmp"

Variation = All

Channel_BlendMask = 2.0

NullValue = 255,255,255

SamplingMethod = Gaussian

ulyMap = -32.7546

ulxMap = 151.9131

xDim = 1.07160652003769E-05

yDim = 9.54409334985584E-06

[source2]

Type = TIFF

Layer = None

SourceDir = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Addon Scenery\Salt Ash\texture"

SourceFile = "Area_Lp1_SnapOff_S032450075_S032455272_E151541425_E151551945_Blend.TIF"

SamplingMethod = Gaussian

ulyMap = -32.7546

ulxMap = 151.9131

xDim = 2.14576721191248E-05

yDim = 1.76598536437644E-05

[Destination]

DestDir = "."

DestBaseFileName = "Salt Ash"

DestFileType = BGL

LOD = Auto

CompressionQuality = 85

Share this post


Link to post
Share on other sites

Your xDim & yDim values in Source1 and Source2 should be identical. You've used the values from Tony's example above in your Source2. So change that to match Source1 and you should be OK.

I'd also suggest changing the NullValue = 255,255,255 line to NullValue = ,,,,0 and also adding fbe line into Source2.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  



×