Re: [Flightgear-devel] Instrument/Panel Design (zooming instruments)

2004-10-26 Thread Lee Elliott
On Tuesday 26 October 2004 09:23, Boris Koenig wrote:
> Hi !
>
> I was going to give implementing a simple transponder-like
> instrument a go, as there doesn't seem to be one yet (?)
>
> While I browsed through the Aircrafts folder in order to look
> into the file format I wondered whether it's also possible to
> specify an enlargement/zoom transformation upon mouse events.
>
> Particularly, I wanted to optionally make certain instruments
> zoom when I either move the mouse over a specific region or
> upon clicking on a hotspot region.
>
> Simply because it's partially kind of hard to really READ the
> instruments/panel - that way I might not have such a bad time
> when trying to actually "hit" a hotspot ;-)
>
> So, being able to optionally make instruments or panels "zoom
> in" would also increase the potential  instrument density for
> the whole panel, while everything  would still be comfortable
> to use ...
>
> If there is a way to zoom in  on a certain event I'd like to
> get some pointers or even examples :-)
>
> Another question is whether it's currently possible to make
> FlightGear change its default cursor whenever the cursor
> passes over a particular hotspot region, so that it is more
> obvious that there IS indeed a functionality connected  to a
> certain hotspot - I found it quite hard to tell where exactly
> it is that I need to click in order to make something happen
> ...
>
>
> ---
> Boris

Are you thinking of 2d or 3d instruments?

I've thought about looking into pop-up dialogues for 2d 
instruments and animating 3d instruments into a more readable 
position but both of these would require triggering events.

If it were possible to change the mouse cursor as it passed over 
a hot-spot it could also trigger the pop-ups or animations.

Haven't actually tried anything yet, of course...

LeeE

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Instrument/Panel Design (zooming instruments)

2004-10-26 Thread Boris Koenig
David Culp wrote:
Look at the T-38 or OV-10, which have a radar instrument that can appear in 
two different states.  In one state it is "minimized" and looks like a 
button, and in the other state it is "maximized". 

You could use the same XML code to make an instrument appear "unzoomed" or 
"zoomed". 
Thanks David, I was hoping to find something like that - my next
question would be whether I can parameterize the process of changing
the dimensions of an abitrary instrument/panel by using a corresponding
Nasal function - so that I don't need to manually implement the
resizing functionality, but could rather simply provide a nasal function
with the property path to the instrument that is supposed to be
(temporarily) resized.
The function itself wouldn't be the problem, rather I wonder whether
each instrument's properties (dimensions, position etc.) are also
made available globally within the property tree so that I could
theoretically  modify them using something like:
setprop("/instrument/gauge/width","100");
setprop("/instrument/gauge/height","100");
So that I would ultimately only need to put this into a
wrapper function that I can then call using the action
tag.
Also, is it (currently) possible to deal with "mouseover"-events
using the XML files ?
---
Boris

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Instrument/Panel Design (zooming instruments)

2004-10-26 Thread David Culp

> Particularly, I wanted to optionally make certain instruments zoom when
> I either move the mouse over a specific region or upon clicking on a
> hotspot region.

Look at the T-38 or OV-10, which have a radar instrument that can appear in 
two different states.  In one state it is "minimized" and looks like a 
button, and in the other state it is "maximized". 

You could use the same XML code to make an instrument appear "unzoomed" or 
"zoomed". 


Dave
-- 

David Culp
[EMAIL PROTECTED]


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Instrument/Panel Design (zooming instruments)

2004-10-26 Thread Roy Vegard Ovesen
On Tuesday 26 October 2004 10:23, Boris Koenig wrote:
> Particularly, I wanted to optionally make certain instruments zoom when
> I either move the mouse over a specific region or upon clicking on a
> hotspot region.
>
> Simply because it's partially kind of hard to really READ the
> instruments/panel - that way I might not have such a bad time
> when trying to actually "hit" a hotspot ;-)

I often use x/X to zoom in on the instruments/panel. This of course is only 
possible in the 3D cockpits.

>
> So, being able to optionally make instruments or panels "zoom in"
> would also increase the potential  instrument density for the whole
> panel, while everything  would still be comfortable to use ...
>
> If there is a way to zoom in  on a certain event I'd like to
> get some pointers or even examples :-)

I'm sure you could change the field of view (zoom) with a nasal script upon 
clicking a hotspot. Again, only for 3D cockpits.

-- 
Roy Vegard Ovesen

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Instrument/Panel Design (zooming instruments)

2004-10-26 Thread Erik Hofman
Boris Koenig wrote:
Another question is whether it's currently possible to make FlightGear
change its default cursor whenever the cursor passes over a particular
hotspot region, so that it is more obvious that there IS indeed a
functionality connected  to a certain hotspot - I found it quite hard to
tell where exactly it is that I need to click in order to make
something happen ...
You can visualize all the hotspots by pressing Ctrl-C
Erik
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d