Sign in to follow this  
ibennett

window nobezel bug found

Recommended Posts

Hi,

 

In x-plane 11 I am trying to get the Window view with no bezel, but when I set this up nobezel = true in the ini file nothing is shown any more, its strange because I can catch the edged to resize but nothing is shown.

 

I tried the same in x-plane 10 and it works fine.

 

Could you please look into this I think its a question of layer or z coordinate of the GNS530, as if it is behind and not infront of the x-plane 11 external view.

 

Thanks

 

Ian

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Ian,

 

Thank you for the report we'll test it out. What XP11 beta # is this?

 

Is this the popup window or the 2d/3d panel render?

Share this post


Link to post
Share on other sites

Hi,

 

I have finally understood why my window GNS disappears some time:

 

In fact with a nobezel window GNS530W (I have not tried with the other models) when I turn off the Avionics the display disappears totally

 

attached is my ini file, please try this ini file and turn on and of the avionics, you should see the GNS window disappear.

 

Ian

 

ini file:

 

[GNS]
; comma separated list of gauges
gauges = GNS_530_1

[GNS_530_1]
; comma separated list of render targets.
drawto = WINDOW, PANEL2D
; is the master device if true.
MasterDevice = true
; connects GPS to copilot side if true.
CopilotSide = false
; selects COM/NAV Radios '1' or '2'.
RadiosPair = 1
; uses computer time if true, simulator time otherwise.
ComputerTime = false
; selects the integral lighting rheostat: 0 to 3
Rheostat.Display = 1
; selects the integral lighting rheostat: 0 to 3
Rheostat.Buttons = 1
; connects GPS to HSI if true.
LinkHsi = true
; connects GPS to HSI course if true.
LinkCrs = true
; connects HSI OBS to GPS if true.
LinkObs = true
; connects GPS to VOR if true.
LinkVor = false
; connects GPS to Autopilot if true.
LinkOto = true
; connects CDI key to NAV/GPS switch if true.
AutoNavGps = true
; selects VLOC NAV '1' or '2'. '0' selects same source as 'RadiosPair'.
AutoNavSource = 0
; connects GPS to Shadin Air Data computer if true.
UseAirData = true
; connects GPS to Shadin Fuel Data computer if true.
UseFuelData = true
; connects GPS to RYAN 9900BX if true.
UseRyanTcad = true
; sets TCAD sound alerts volume in percent: 0 to 100.
RyanTcadVolume = 50
; connects GPS #1 to GPS #2 if true (both required).
UseCrossFill = false
; sets fuel type: AVGAS,JETA,JETB
FuelType = AVGAS
; sets TAWS type: TERR,TAWS
TawsMode = TAWS
; sets TAWS surface: HARD,HARD_SOFT,WATER,ANY
TawsSurface = HARD_SOFT
; TAWS minimum runway length (feet)
TawsMinLength = 40
; sets master sound volume in percent: 0 to 100.
MasterVolume = 100
; selects the CPU running the trainer process: 1 to 32
; 0: last core, -1: automatic.
CpuAffinity = -1
; connects to: 'PFC_STACK','PFC_430','PFC_530' or any '#PID' (#D002 for PFC_430)
; no value connects to first found, 'OFF' disables connection.
HardwareDevice =
; hardware selector number or -1 to disable.
HardwareIdx = -1

[GNS_530_1.WINDOW]
; display window if true.
visible = true
; show screen only gauge if true.
nobezel = true
; display type: WINDOW,PANEL2D,PANEL3D
frame.type = WINDOW
; display position and dimension (left,top,width,height)
frame.rect = 1121,600,800,600
; freeze display position if true.
frame.lock = true
; screen only border size (pixels).
border.size = 0
; screen only border color (#RGB or #RGBA).
border.rgba = #000000
; display window tooltips if true.
tooltips = false

[GNS_530_1.PANEL2D]
; display window if true.
visible = false
; show screen only gauge if true.
nobezel = true
; display type: WINDOW,PANEL2D,PANEL3D
frame.type = PANEL2D
; display position and dimension (left,top,width,height)
frame.rect = 0,0,0,0
; freeze display position if true.
frame.lock = false
; screen only border size (pixels).
border.size = 0
; screen only border color (#RGB or #RGBA).
border.rgba = #000000
 

Share this post


Link to post
Share on other sites

Thank you for the investigation, it makes sense now: when off the screen doesn't render useless black rectangle, since the gauge bezel image screen is black already. With 'no bezel' option, there is no black layer under the screen!

 

Good catch, this will be included in the next update.

Share this post


Link to post
Share on other sites

I found an issue where the aspect ratio of the gauge changes when operating in Window mode with 'no bezel' option vs with bezel. Also I can't resize the gauge height-wise or width-wise separately in this mode, the gauge only grows or shrinks while maintaining the new aspect ratio. This is not the case when running the gauge with the bezel active.

 

Am I missing something? 

Share this post


Link to post
Share on other sites

We've changed implementation with the GNS.

 

It used to be 'free-form' resize, otherwise, with the SHIFT key pressed, it is 'keep-ratio' resize.

 

It is now reversed: it is 'keep ratio' resize and SHIFT key pressed override while resizing for free-form!

 

We might have overlooked something so I'll review the code which computes the ratio in screen only.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this