Stretched output > non 4:3 displays > FS mode

Posted By: andibeh

Stretched output > non 4:3 displays > FS mode - 05/09/07 08:56

I am currently adapting an application to be capable to run on computers with different desktop resolution, including standard 4:3 but also 5:4 and 16:10 aspect ratios.

While that works perfectly for the 2D Interface I am facing a strange problem with the 3D views:

When using fullscreen mode the output is perfect when using 4:3 aspect ratios (e.g. 1024x768px), but stretched for 16:10 (e.g. 1680x1050px) and narrowed for 5:4 (e.g. 1280x1024px) aspect ratios. To mention: I use the "video_set" instruction. Apparently the output is always in a 4:3 aspect ratio and then stretched / narrowed to the desktop resolution used.


When making a window that covers all the desktop ("video_windows", "video_set > windowed" instruction) the output apears perfectly for all resolutions.

Is it an engine limitation? I am using 3DGS 6.50.5.
As I would like to use fullscreen mode, has anybody an idea how to overcome these limitations? Use view.aspect for compensation?
Posted By: xXxGuitar511

Re: Stretched output > non 4:3 displays > FS mode - 05/10/07 02:13

It's a hardware issue. Your monitor's not meant to display those resolutions like that.

Try it on a system thats meant for widescreen aspects, and it shuuld work fine.
Posted By: andibeh

Re: Stretched output > non 4:3 displays > FS mode - 05/10/07 06:44

What do you mean by hardware issues? I am not sure if I understand you correctly.

Just to mention: I am testing the application on different systems which are running in their native resolution, e.g. 16:10 aspect ratios on a widescreen Dell Laptop running on 1680x1050px, 4:3 / 5:4 aspect ratios on Desktop PC running at 1600x1200px / 1280x1024px.
And if the application is not running in fullscreen mode it works.

The question that arises for me is if 3DGS is not designed to run application not using 4:3 aspect ratio in fullscreen mode.
Posted By: andibeh

Re: Stretched output > non 4:3 displays > FS mode - 05/18/07 11:16

Has nobody experienced the same problem? Is it a bug of 3DGS (v6.50)?
Posted By: alphaindigo

Re: Stretched output > non 4:3 displays > FS mode - 05/29/07 17:34

i think you may need to change the view arc for the different resolutions. the standard arc in intended for 4:3 res ans therefore you will have to change it for different ratios .... just an idea...
Posted By: Uhrwerk

Re: Stretched output > non 4:3 displays > FS mode - 05/29/07 20:27

You have to change the view.aspect variable. The view.arc parameter has nothig to do with that. This issue has already been discussed here:

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/753124/an/0/page/1#Post753124
Posted By: andibeh

Re: Stretched output > non 4:3 displays > FS mode - 06/04/07 14:59

Thank you for your input!

View.aspect was exactly the property which I used for compensating the the streched output on non 4:3-displays.

But again, I think it is just a compensation of an engine bug or limitation. The more as I do not have to compensate it when using the same scene inside a window (video_window (size of whole desktop, no border), video_set(window mode))
Posted By: garv3

Re: Stretched output > non 4:3 displays > FS mode - 09/28/07 14:05

Hi!

I have got exactly the same problem. I tried to change the view.aspect parameter.
I got strange results. Which value has to be set for 16:10 displays. I thought it might be 16:10 = 1.6. But this does not work. 1.3 comes closer to the correct aspect. But how to calculate the correct value?

Thanks
garv3
Posted By: garv3

Re: Stretched output > non 4:3 displays > FS mode - 09/28/07 14:16

Ah, i got it:

If you have a 16:10 display use the following line:
camera.aspect = (16/10) / (4/3);

This should work for any ratio like if modified like:
camera.aspect = (16/9) / (4/3); // For a 16:9 ratio
camera.aspect = (5/4) / (4/3); // For a 5/4 ratio
© 2024 lite-C Forums