Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FSX Camera View in an XML gauge ?

Featured Replies

Hi,I'm looking for a way to to open/close a camera view (defined in the aircraft.cfg with a hot-key) in a XML gauge.But: within the space defined by the gauge definition in the panel.cfg(i.o.w.: so I can include a camera view anywhere in the panel).Any idea if this is possible ??And if so, how ??If not possible:Is there a way to control the screen position/size of a new view, from a configuration file ?At least, that gives me the possibility to automate the manual dragging/resizing of a new view, e.g. onto a transparant spot in a 2D panel or panel-window.Thanks, Rob

  • 2 weeks later...

Hi Rob,by using the custom parameters FS9VIEW you can define a cockpit view like in the old days of the fixed window view in FS9. You can define:ZOOM, pitch, bank, heading ........ look at the SDK. Along with a nice bmp as a background you will get a nice passenger window view for example.Is that what you are looking for ??Dietmar

Hi Dietmar. I looked in the SDK and can't find any info on a gauge with FS9VIEW in it. Is there an example for such a gauge? Regards, Bob.

Hi Bob,you must have an example in your gauge collection. You may remeber, I sent you a little gauge, I think I called it "MIrror". The gauge provides a mirror view to the tail of your aircraft. And this gauge uses the FS9VIEW function. In the SDK you will find it under Custom Parameter ( C: ).Dietmar

  • Author
Hi Rob,by using the custom parameters FS9VIEW you can define a cockpit view like in the old days of the fixed window view in FS9. You can define:ZOOM, pitch, bank, heading ........ look at the SDK. Along with a nice bmp as a background you will get a nice passenger window view for example.Is that what you are looking for ??Dietmar
Hi Dietmar,Thanks.Not sure if this is what I want ;) Have to experiment with it a bit first (never used a C: var before)Rob

Rob, An example is in FS9, Spirit of St Louis Aircraft / Panel / Spirit_of_StLouis.cab.. Named spirit_periscope.xml .. Note -- Not all the attributes worked in FS9 for fs9view:view. From what I've been hearing ( taken with a grain of salt ) they all work in FSX..RomanHere's The code

<!-- ======================= The View =========================== -->  <Element>    <Position X="364" Y="23"/>    <CustomDraw Name="fs9view:view" X="84" Y="77" Zoom="1.0" Pitch="0" Bank="0" Heading="0" OffsetUp="1" OffsetForward="1">  <On>(L:PeriscopePos, percent) 0 ></On>  <OffsetRight>(L:PeriscopePos, percent) -0.03 *</OffsetRight>    </CustomDraw>  </Element>   <!-- ======================= Periscope =========================== -->

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Hi Rob,this is a example for a panel VIEW RIGHT. Again it is a FS9 fixed window function, which is normaly not supported any more in FSX.<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="TEST"> <Descr>AceXML Document</Descr> <Filename>VIEWFS9_RRight.xml</Filename> <SimGauge.Gauge id="Gauge" ArtDirectory="."> <FloatPosition>0.000,0.000</FloatPosition> <Size>1024,768</Size> <Image id="wrb.bmp" Name="wrb.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> </Image> <Element id="Element"> <FloatPosition>0.000,0.000</FloatPosition> <Visibility>1</Visibility> <CustomDraw id="CustomDraw" Name="fs9view:view"> <Size>1024,768</Size> <Bright>True</Bright> <CustomDrawParam id="ZOOM" Name="ZOOM"> <Value>0.8</Value> </CustomDrawParam> <CustomDrawParam id="Pitch" Name="Pitch"> <Value>0</Value> </CustomDrawParam> <CustomDrawParam id="Bank" Name="Bank"> <Value>1</Value> </CustomDrawParam> <CustomDrawParam id="Heading" Name="Heading"> <Value>140</Value> </CustomDrawParam> <CustomDrawParam id="OffsetUp" Name="OffsetUp"> <Value>0</Value> </CustomDrawParam> <CustomDrawParam id="OffsetForward" Name="OffsetForward"> <Value>0</Value> </CustomDrawParam> <CustomDrawParam id="OffsetRight" Name="OffsetRight"> <Value>0</Value> </CustomDrawParam> </CustomDraw> </Element> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>1024,768</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <Script>98 (>K:PANEL_ID_Close)52 (>K:PANEL_ID_Open)Main_Panel (>K:Panel_ID_Open)</Script> </MouseClick> <Tooltip id="Tooltip"> <DefaultScript>ViewReset</DefaultScript> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document> The code is ACE XML. In case of a model with cloned wings, you can provide a nice passenger window view with a gauge. BestDietmar

  • Moderator
Hi Rob,this is a example for a panel VIEW RIGHT. Again it is a FS9 fixed window function, which is normaly not supported any more in FSX.
Reposted XML script with code tags to preserve formatting and indents!
<?xml version="1.0" encoding="UTF-8"?><SimBase.Document		Type="AceXML"		version="1,0"		id="TEST">	<Descr>AceXML Document</Descr>	<Filename>VIEWFS9_RRight.xml</Filename>	<SimGauge.Gauge id="Gauge" ArtDirectory=".">		<FloatPosition>0.000,0.000</FloatPosition>		<Size>1024,768</Size>		<Image id="wrb.bmp" Name="wrb.bmp">			<Transparent>True</Transparent>			<Bright>True</Bright>		</Image>		<Element id="Element">			<FloatPosition>0.000,0.000</FloatPosition>			<Visibility>1</Visibility>			<CustomDraw id="CustomDraw" Name="fs9view:view">				<Size>1024,768</Size>				<Bright>True</Bright>				<CustomDrawParam id="ZOOM" Name="ZOOM">					<Value>0.8</Value>				</CustomDrawParam>				<CustomDrawParam id="Pitch" Name="Pitch">					<Value>0</Value>				</CustomDrawParam>				<CustomDrawParam id="Bank" Name="Bank">					<Value>1</Value>				</CustomDrawParam>				<CustomDrawParam id="Heading" Name="Heading">					<Value>140</Value>				</CustomDrawParam>				<CustomDrawParam id="OffsetUp" Name="OffsetUp">					<Value>0</Value>				</CustomDrawParam>				<CustomDrawParam id="OffsetForward" Name="OffsetForward">					<Value>0</Value>				</CustomDrawParam>				<CustomDrawParam id="OffsetRight" Name="OffsetRight">					<Value>0</Value>				</CustomDrawParam>			</CustomDraw>		</Element>		<MouseArea id="MouseArea">			<FloatPosition>0.000,0.000</FloatPosition>			<Size>1024,768</Size>			<CursorType>Hand</CursorType>			<MouseClick id="MouseClick">				<Script>					  98  (>K:PANEL_ID_Close)					  52  (>K:PANEL_ID_Open)					  Main_Panel (>K:Panel_ID_Open)				</Script>			</MouseClick>			<Tooltip id="Tooltip">				<DefaultScript>ViewReset</DefaultScript>			</Tooltip>		</MouseArea>	</SimGauge.Gauge></SimBase.Document>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Hi Roman, Dietmar,Just tried the FS9 code of the Spirit periscope in FSX-Accel, with some adapted values.Works perfect !!(I use it to control a camera mounted on the bottom of a VTOL-capable aircraft, pointing downward, to assist with Vertical landings).I'll try the syntax described in the FSX-SDK as well (still have a problem understanding how that is specified), but with some experiments I'll get there :)Thanks so much, you've made my day !!Cheers, Rob

Hi Rob,great we could help. If you download from AVSIM my gauge mmmap_v1.0.zip you will have a view option, I guess exactly you are looking for. It provides a top view in a window from the aircraft to the terrain of FSX. Just as a hint, the background must be transparent if the window is being opened on the panel. Means, you must move the mmmap window to the cockpit window, or the position on the panel where you want to see the map window must have a transparent background. Hope this helps in addition.Dietmar

  • Author
Hi Rob,great we could help. If you download from AVSIM my gauge mmmap_v1.0.zip you will have a view option, I guess exactly you are looking for. It provides a top view in a window from the aircraft to the terrain of FSX. Just as a hint, the background must be transparent if the window is being opened on the panel. Means, you must move the mmmap window to the cockpit window, or the position on the panel where you want to see the map window must have a transparent background. Hope this helps in addition.Dietmar
Hi Dietmar,Yes, I already figured out the transparancy requirements :)What I'm using now
<Element>  <Position X="2" Y="2"/>  <Element>    <CustomDraw Name="fs9view:view" X="296" Y="296" Bank="0" OffsetRight="0">	  <On>(L:CD_OFF,number) !</On>	  <Zoom>(L:CD_ZOOM,number)</Zoom>	  <Pitch>(L:CD_PITCH,number)</Pitch>	  <Heading>(L:CD_HEADING,number)</Heading>	  <OffsetUp>(L:CD_UP,number)</OffsetUp>	  <OffsetForward>(L:CD_FORWARD,number)</OffsetForward>    </CustomDraw>  </Element></Element> 

works perfectly for what I want my camera to do in FSX.However, I tried to convert this code to the syntax specified in the FSX-SDK (with the C:FS9VIEW:...... type of syntax)But whatever I try, I can't get it to work ....I must be missing the obvious ..So if someone can educate me on how to convert the above code snapshot into proper FSX-SDK syntax .... Thanks in advance..Best, Rob

So if someone can educate me on how to convert the above code snapshot into proper FSX-SDK syntax .... Thanks in advance..Best, Rob
I don't think there is a proper FSX-XML schema for FS9View. You will have to stick to the FS9 style code, which you've already tested as working OK.Tom

Hi Rob,the code I sent you (see above ) is a FSX XML code generated by the ACE tool. As you can see, you have for each parameter like ZOOM, Pitch etc. one extra Custom Draw staement. The C: parameters for the view call is the same as in your code ( Name="fs9view:view" ). Why not just using the ACE tool and your code is converted in 5 minutes and in FSX XML if you like.Dietmar

  • Author

Hi Rob,

 

the code I sent you (see above ) is a FSX XML code generated by the ACE tool. As you can see, you have for each parameter like ZOOM, Pitch etc. one extra Custom Draw staement. The C: parameters for the view call is the same as in your code ( Name="fs9view:view" ). Why not just using the ACE tool and your code is converted in 5 minutes and in FSX XML if you like.

 

Dietmar

 

Hi,

 

The reason is quite simple: I have never used the ACE tool up to now; mainly because I found the old-style XML syntax easier to read and/or maintain.

But maybe it's time for me to learn some new tricks :)

 

Best, Rob

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.