realbasic-games
[Top] [All Lists]

Re: On screen console

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: On screen console
From: "Joseph J. Strout" <joe at strout dot net>
Date: Fri, 13 Jan 2006 15:20:24 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <323e4b84d2d48fc5cc4e349a67c879fe at pyramiddesign dot us> <a0620073fbfedba4b0432 at [10 dot 0 dot 1 dot 13]> <02983bb1b03366d97fef90447de11466 at pyramiddesign dot us>
At 4:13 PM -0500 1/13/06, Joseph Nastasi wrote:

I should have been clearer... It will probably be an overlay that has a set of properties listed in a label: value pair. The actual number of properties can change, but not in real time; they would be selected in a window at another time.

OK, then let's see... it seems to be mostly a numeric display, so one option would be to create a TriMesh that has a separate little pair of triangles for each digit to be shown. Attach to this a texture that has all ten digits in a strip. Then, at runtime, you can show any digit in any position by just setting the UV coordinates of the appropriate triangles. This is a bit of work to code, but it would be blazing fast because you're not changing the texture (image) at all, and yet the whole display (or at least, the changing parts) is still one object.

A somewhat poorer approach would be to make a separate Object3D for each digit, which means you could simply add the ten digits with AddShapePicture and switch what is shown by assigning to the Shape property. But you're likely to have trouble getting them to all line up seamlessly next to each other.

HTH,
- Joe

--

Joseph J. Strout
joe at strout dot net
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>