The
line tool in collision detection (CD) module was designed to test
that module, by drawing a line segment and checking if it hits land.
To use it:
* With the bitmap not stretched, scroll the chart to the desired place (using the scroll bars).
* Click the first point in the white area (sea).
* Click a second point. A line segment is drawn. If it crashes into land, a
beep sounds
and the line will not reach the second point, stopping at the crash site
(meaning of course that a collision was detected).
Tip: The line becomes part of the bitmap in memory,
so you may use those lines to define sea areas you want to exclude
from routing ( like the wrong side of a mark ).
Draw a couple lines to make a barrier.
Note that the lines do
not become part of bitmap file (are not persistent).
If you restart VRTool or click
load to reload the bitmap, the lines disappear.
You may add the lines to a copy of the CD bitmap using image edition software
like Windows Paint or Photoshop. This will make the lines persistent.
Make sure:
* Use fat lines (at least 2 pix of line width)
* Save the bitmap in 1 bit-per-pixel BMP format (Windows monochrome bitmap).
*
Photoshop seems to change the bitmap palette, switching black and white.
Because of a bug in current VRTool code, land becomes sea.
I will correct this in the next release.
In the mean time, as a
workaround, you may use Photoshop command
Image>Adjustments>Invertto obtain a negative map.
The size of that bitmap is another concern. Of course you want a large bitmap,
with the best possible resolution. But if it is too big, Windows will not allow
it to be loaded. I found 24000 x 12000 pixels to be ok for most computers.
30000 x 20000 will work in recent computers with enough memory,
but Windows Paint fails to open it. You cannot go beyond 30000.
One way to reach better resolution is to make a detail bitmap
covering only the area of interest.
I have no idea which resolution the VR games use.
This is up to you to find out. Seems to be pretty high.