Hi,
For the F-16 I am modelling an altitude indicator that uses a scrolling
number bar (0 ... 9) to display the altitude. I've modified the code
slightly to support a modulator, but when shifting the numbers they are
visible above the inmstrument in some cases:
Erik Hofman writes:
How is an instrument build up at this time, is everything drawn in a
texture and is this texture placed on the panel, or is everything drawn
directly on the panel itself?
The 2D panel code creates an instrument out of a collection of
stacked, textured rectangles. I'm
Andy Ross wrote:
Erik Hofman wrote:
Is there a way to truncate textures to the instrument size?
Here's an idea for a clever hack: split the number scroller up into
two textures, one for the top half and another for the bottom. Clamp
each so that it can't scroll any farther than just past the
Erik Hofman wrote:
That's not possible at the moment. The min and max settings do clamp
the values, but that makes the modulator useless (the value is never
reached).
I fuzzy on what the modulator does. To my mind, there shouldn't be
any need for C++ code at all; just use a different
John Check wrote:
There is/was a special function that draws the mag compass ribbon
that does what you need. I experimented with making analog
odometer style numbers at one time. AFAIK the code was never
modularized. I forget the exact location but if you grep for
compass-ribbon.rgb you'l find
Andy Ross wrote:
Erik Hofman wrote:
That's not possible at the moment. The min and max settings do clamp
the values, but that makes the modulator useless (the value is never
reached).
I fuzzy on what the modulator does. To my mind, there shouldn't be
any need for C++ code at all; just use a