Jump to content
Sign in to follow this  
joepoway

How to Permanently Custom Place Pop Up Windows in VR

Recommended Posts

I was looking for a way to permanently place pop up windows in VR so not to have to move them or run into the issue where the new rain effects capability on many aircraft prevents the cursor from reaching through the glass to be able to select or move the pop up windows. Working with LM developers I was provided with a few lines of code to add to the cfg files to do just that. These additions do not change the positioning of the 2D windows, only VR pop ups. Since I have been experimenting with various values I thought I would share some of my results. I have manged to relocate the default ATC VR window in all aircraft by modifying the missionpanel.cfg file and many aircraft pop up windows by modifying their panel.cfg files. Below are a few examples of the values I am currently using based on my preferences:

P3D  Default ATC Window Pop up  located  P3D > gauges > missionpanels.cfg

[Window11]
//window_size         = 0.2, 0.53
window_size             = 0.2, 0.2            ;Joe changed the height to be shorter in 2D
position                      = 6                     ;Joe changed to Bottom Left for 2D
background_color    = 0, 0, 0
alpha_blend               = 0.00
visible                = 0
zorder                          = 100
ident                            = ATC_WINDOW
scaleform_file            = MenuWindow        ; Use the generic menu window scaleform content 
scaleform_instance_name = ATC                 ; Provide a unique instance name

3DP_CAMERA_TRANSFORM_REFERENCE=Virtual Cockpit       ;Joe added makes all aircraft the same
3DP_SIZE=0.5,0.5                                                                           ;Joe added to adjust size
3DP_WORLDSPACE_POS_OFFSET=-0.2,-0.25,0.28                   ;Joe added X,Y,Z offsets
3DP_PBH_OFFSET=5,0,-45                                                           ;Joe added


A2A  C-172  Pop Window mods    A2A > Simobjects > Airplanes > A2A_C172 > panels > panel.cfg

          Add this to any of the A2A pop up windows to better place VR pop ups below is an example

                it also works great for the GTN 750 pop up window which is usually the last window in the panel.cfg file

[Window03]
Background_color=0,0,0 
size_mm=649,689
pixel_size=649,689
window_pos= 0.51, 0.2      
position=1
visible=1
ident=FUEL_PANEL
sizable=0
gauge00=A2A_C172!manager,  1,0,649,689

3DP_CAMERA_TRANSFORM_REFERENCE=Virtual Cockpit      ;Joe added all VR positions use VC
3DP_SIZE=0.5,0.5                                                                           ;Joe added
3DP_WORLDSPACE_POS_OFFSET=0.27,-0.4,0.38                    ;Joe added X,Y,Z offsets
3DP_PBH_OFFSET=10,0,30                                                          ;Joe added pitch, bank and heading offsets


Aerosoft A320    Aerosoft > Aerosoft A320 > SimOjects > Airplanes > Aerosoft A320.. > Panel > panel.cfg

   Add this to ANY of the Airbus pop up windows to better place VR pop ups below is an example


[Window01]
file=../../Aerosoft A320-A321 Professional Base/Panel_Fallback/MCDUIMG.bmp
file_1024_night=../../Aerosoft A320-A321 Professional Base/Panel_Fallback/MCDUIMG_NIGHT.bmp
Background_color=0,0,0 
size_mm=430,726
visible=0
ident=10021
window_size= 0.290, 0.750
window_pos= 0.000, 0.250

3DP_CAMERA_TRANSFORM_REFERENCE=Virtual Cockpit       ;Joe added all VR positions use VC
3DP_SIZE=0.5,0.5                                                                            ;Joe added
3DP_WORLDSPACE_POS_OFFSET=0,-0.30,0.39                        ;Joe added X,Y,Z offsets
3DP_PBH_OFFSET=5,0,0                                                               ;Joe added pitch, bank, and heading offsets

 

Original reply I received from LM regarding VR window placement:

http://www.prepar3d.com/forum/viewtopic.php?p=190803#p190803

 

Useful P3D VR Link:
https://www.prepar3d.com/SDKv4/LearningCenter.php

 

Useful P3D positioning link:
http://www.fstipsandaddons.com/understanding-cameras-fsx/

 

I hope others find this useful. Make sure to use NotePad++ to do your editing (inserting of the 4 new lines) and save a backup copy in case you have an issue.

Joe


 

 

 


 

 

Edited by joepoway
  • Like 5

Joe (Southern California)

SystemI9-9900KS @5.1Ghz/ Corsair H115i / Gigabyte A-390 Master / EVGA RTX 2080 Ti FTW3 Hybrid w 11Gb / Trident 32Gb DDR4-3200 C14 / Evo 970 2Tb M.2 / Samsung 40inch TV 40ku6300 4K w/ Native 30 hz capability  / Corsair AX850 PS / VKB Gunfighter Pro / Virpil MongoosT-50 Throttle / MFG Crosswind Pedals /   LINDA, VoiceAttack, ChasePlane, AIG AI, MCE, FFTF, Pilot2ATC, HP Reverb G2

Share this post


Link to post

Interesting. Thanks for sharing your experiences. I'll have to try this out. 


Dave Garwood.

Share this post


Link to post

Awesome Joe, thanks for posting, I’ve been wrestling with this same issue. The key/mouse combinations to move windows are ours are impossible inside the headset. 


Kent

i7 4790k @4.7Ghz 32Gb DDR3 1333 RTX 2070 GPU Win10 Pro

Share this post


Link to post

Awesome Joe thanks. At least we don't have to take the HMD off to make these adjusts now that the virtual desktop is available for Oculus and Steam. Thankfully the aircraft just has to be reloaded to update values not the simulator.

This is what I used for the Flight1 Kingair B200 in VR:

PANEL.CFG

//--------------------------------------------------------
[Window03]
Background_color=0,0,0 
size_mm=823,560
window_size_ratio=1.000  
position=0
visible=0
ident=190
window_size= 0.340, 0.424
window_pos= 0.654, 0.010
zorder=5

gauge00=Flight1_GarminG1000_KingAir!GCU477,  0,0,823

3DP_CAMERA_TRANSFORM_REFERENCE=Virtual Cockpit
3DP_SIZE=0.11,0.11

//X > right ,Y < down,Z > back
3DP_WORLDSPACE_POS_OFFSET=0.15,-0.2,0.6

//pitch, bank and heading offsets
3DP_PBH_OFFSET=0,0,0

//--------------------------------------------------------
[Window04]
file=autopilot.bmp 
file_1024=autopilot.bmp 
size_mm=1204,210
window_size_ratio=1.000  
position=0
visible=0
ident=110
window_size= 0.590, 0.186
window_pos= 0.415, 0.260
zorder=4

gauge00=Flight1_GarminG1000_KingAir!GMC710,  1,1,1204,210
gauge01=F1_KingAir!winclose110,  1155,11,40,36

3DP_CAMERA_TRANSFORM_REFERENCE=Virtual Cockpit
3DP_SIZE=0.17,0.17

//X > right ,Y < down,Z > back
3DP_WORLDSPACE_POS_OFFSET=0.01,-0.17,0.6

//pitch, bank and heading offsets
3DP_PBH_OFFSET=0,0,0

//--------------------------------------------------------

Share this post


Link to post

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  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...