Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

The Topographic Apprentice

Control Panel Library

Architecture

Issue: 3.4 (March/April 2005)
Author: Joe Nastasi
Author Bio: Joe Nastasi is the president of Pyramid Design, a software development firm and the developers of A-OK! Spacecraft Simulation System and FTP Suite.
Article Description: No description available.
Article Length (in bytes): 4,509
Starting Page Number: 38
RBD Number: 3417
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

In keeping with the theme of "a picture is worth a thousand words," I offer Figure 1, which illustrates how the control panel library treats a typical gauge (an altimeter in this case) internally. The panel background image is the furthest from the camera with a Z position of -4. Note that the actual values in the Z axis might vary depending on how many layers you have in your instruments. For example, if this were a 3 needle gauge, we'd need to make the panel's Z position -5 instead. The altimeter background image is next with a Z position of -3. The black background is part of the masking scheme and will be transparent when displayed. We'll discuss masking in a later issue.

Figure 1: Panel Elements

The next two images are the 100 and 1000 foot needles, occupying Z positions of -2 and -1, respectively. Finally, a center cap occupies Z position 0. The X and Y position of the altimeter elements determines the position of the instrument relative to the center of the control panel background. All elements have the same X and Y position values so that they remain centered when displayed.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com