Please
Support X-Plane.org by Clicking the Advertisement Below

Blank bitmaps
Mark Fisher (c)2003
Background:
If there is NO custom panel (named "yourplanehere_panel.bmp"), X-Plane
will
-
draw the outside scenery.
-
draw a default panel, using the specified "panel type" from PlaneMaker,
-
layer the BMP images of the desired instruments as defined in PlaneMaker
ove the top.
-
X-Plane will then draw the fixed position animated parts (such as switches)
using the "panel_test_linear.bmp" file, and rotating images (such as needles)
from the "panel_test_nearest.bmp" file. (The names refer to the OpenGL
layering system used.)
If you have custom images for any of this (defined as "yourplanehere_panel.bmp",
"yourplanehere_test_linear.bmp,or "yourplanehere_test_nearest.bmp"), X-P
will use those images.
To use these files:
-
Move the "blank" folder under "bitmaps." This contains the blank versions
of the .BMP files that will be used to "animate" the panel, specifically:
|
|
|
|
-
"Panel_compass_rose.bmp".
|
-
Create a folder named "stock" under "bitmaps," and copy your
original files (as listed below) from the root "bitmaps" folder to the
new "stock" folder.
|
|
|
|
-
"Panel_compass_rose.bmp".
|
-
Move the "panel_mask" file to the "panels" folder.
Using a blank panel to get calibrated instruments:
The principle is that, without a custom panel, a screen shot
of the operating aircraft will show the instruments in their correct relation,
and fully calibrated. It will NOT, however, be ready to use as a custom
panel.
The panel image will:
-
have magenta (255 255 0) areas marking transparent portions of the panel,
-
will show all switches in the "off" position,
-
and will have no needles.
Toget an image that is ready to be captured as a pattern for the custom
panel, we substitute the blank versions of the animating .BMP files in
the place where X-Plane expects to see data to animate the panel. (Actually,
since some elements of these .BMP files are used to draw the calibrations,
they are not entirely blank.)
The steps are as follows:
Making a custom panel - easy(er) method:
-
Make sure there is NO file named "yourplanehere_panel.bmp","yourplanehere_test_linear.bmp,or
"yourplanehere_test_nearest.bmp" in the aircraft's folder. If you HAVE
been working on them, temporarily rename them (adding an "X" works).
-
Make sure that you have the desired background in the "resources\bitmaps\panels"
folder.
-
Copy all files in the "blank" folder to the root "bitmaps" folder.
(Did I say to back up the original files in the "stock" folder first?)
-
Start X-Plane, and load your "yourplanehere" model. Make sure that your
screen resolution is 1024 x 768, time is near noon, with clear skies. You
should see a fairly normal panel, except that the needles are missing.
In fact, switches will not react if you click on them either.
-
Go to "map view," and place your plane at ~ 50,000 feet. The outside view
should be smooth grey.
-
Hit the "prnt scrn" key, or press <Ctrl-(period)>
-
Open the screen dump in your favorite graphics program, and replace all
"sky" areas with magenta (255, 255, 0). Look out for "anit-ailiasing."
This is a feature where diagonal transition are shaded. This must be turned
"off" for the transition between the masked areas and the panel.
-
Save the panel as "yourplanehere_panel.bmp".
-
Replace the .BMP files in the root "bitmap" forlder from the "stock" folder.
Making a custom panel - more flexible method:
-
Develop your own blank panel art. For 6.xx panels, the image should be
1024 x 750. There is no need to draw instruments.
-
Make sure there is NO file named "yourplanehere_panel.bmp","yourplanehere_test_linear.bmp,or
"yourplanehere_test_nearest.bmp" in the aircraft's folder. If you HAVE
been working on them, temporarily rename them (adding an "X" works).
-
Go to the "resources\bitmaps\panels" folder. Rename the specified default
panel type for your model (add "stock" to the name, for instance)
-
Rename the "panel_mask.bmp" to match the specified default panel type.
-
Copy all files in the "blank" folder to the root "bitmaps" folder.
(Did I say to back up the original files in the "stock" folder first?)
-
Start X-Plane, and load your "yourplanehere" model. Make sure that your
screen resolution is 1024 x 768, time is near noon, with clear skies. You
should see a blue screen with fully drawn instruments, except that the
needles are missing. In fact, switches will not react if you click on them
either.
-
Hit the "prnt scrn" key, or press <Ctrl-(period)>
-
Open your favorite graphics program, and open the blank panel art you have
developed. Paste the screen dump as a new object, and movie it until
the bottom edge of the screen dump is at the bottom of the panel
image. Invoke a "color mask" function. You want to delete all mask areas
while leaving the instruments behind.
-
Save the panel as "yourplanehere_panel.bmp".
-
Replace the .BMP files in the root "bitmap" folder from the "stock" folder.
Further Information:
http://www.cuuby.co.uk/XPlane/documentation/Paintingandmakingpanels.htm