Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Support & Bugs
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Support & Bugs Support & bug reports for Orbiter addons.

Reply
 
Thread Tools
Old 03-31-2017, 08:22 PM   #1
bcirka
Orbinaut
Default Tiny XR2 panels in 4K resolution

So I seem to be stuck with scaling issues in the XR2. I've tried two things:

1. Launching in my monitor's native resolution of 3840 2160. When I do, the XR2 2d panel is far too small to read.

2. Changing Orbiter's Full Screen launch resolution to 1900x1200. The panel looks fine here, but my screen doesn't stretch the image to fit the entire monitor, instead I have a small version of orbiter running in the center of my screen with black bars around the outsides.

It's odd that I don't have the same problem in the standard DG--the panels look perfect.

Has anyone solved the 4k resolution/tiny panels problem?
bcirka is offline   Reply With Quote
Old 04-01-2017, 03:51 AM   #2
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

That is because the default DG uses a mesh to render its panels (which I presume auto-stretches to fit the screen resolution), whereas the XR vessels use a fixed panel size. What you can do is click "Parameters" in the Orbiter launchpad and increase the "Panel Scale" value to scale up the rendered panel size (although this will not increase the actual resolution of the panels: they will remain at 1920 pixels wide -- they will just be stretched to better fit the screen). If you set the Panel Scale to 2.0, that will double the width and height of the panels, making each of them 3840 pixels wide and twice as high as normal.
dbeachy1 is offline   Reply With Quote
Old 04-01-2017, 06:00 AM   #3
Linguofreak
Orbinaut
Default

[QUOTE=bcirka;555526]S

2. Changing Orbiter's Full Screen launch resolution to 1900x1200. The panel looks fine here, but my screen doesn't stretch the image to fit the entire monitor, instead I have a small version of orbiter running in the center of my screen with black bars around the outsides.
/QUOTE]

Dbeachy's solution is going to be what you want, but if your monitor's native resolution is 3840 2160, I'd be *very* surprised if 1900x1200 is available and 1920x1080 isn't (which shouldn't pillarbox as it's the same aspect ratio as the native resolution). You may also want to check your monitor's settings. Most monitors let you choose whether to stretch or center the image when there's an aspect ratio mismatch.
Linguofreak is offline   Reply With Quote
Old 04-01-2017, 01:23 PM   #4
bcirka
Orbinaut
Default

Fantastic solution, this worked perfectly.

Let me ask, if there anything I can put in the .cfg files of the DG and XR2 to have it change the panel scaling depending on which vessel is used?

Otherwise, I have to manually change the scaling depending on whether I will be flying the DG vs. the XR2.

No big deal if not, but it would be nice if there was a .cfg solution to handle this automatically.

Thank you!
bcirka is offline   Reply With Quote
Old 04-01-2017, 05:05 PM   #5
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

I don't know of any configuration settings to adjust the panel scale on a per-vessel basis: panel scaling is all handled by the Orbiter core. I believe the default DG is the only vessel that uses a 2D mesh to render its panels, though, so that should be the only vessel where the increased panel scale makes the panels too large.

In fact, I would argue that it's a an Orbiter core bug that the Orbiter core applies the Panel Scale setting to 2D mesh instrument panels since it already auto-stretches any 2D mesh instrument panels to fit the current resolution (which is what happens with the default DG). But that's a topic for another thread.
dbeachy1 is offline   Reply With Quote
Old 04-02-2017, 09:18 AM   #6
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
I believe the default DG is the only vessel that uses a 2D mesh to render its panels, though, so that should be the only vessel where the increased panel scale makes the panels too large.
I don't think so. Basically any panel that was developed from scratch after 2010 is likely to be using this method. The original IMS already does, for example.
I assume you have a framework for XR-panels that pre-dates Orbiter 2010. It might be worth thinking about refactoring them. The changes aren't actually that big, drawing and event handling should be unaffected. You just slap your textures onto a mesh plane, orbiter handles the rest.
jedidia is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Support & Bugs


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 02:05 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.