5 registered members (AndrewAMD, alibaba, Konsti, 2 invisible),
1,418
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Stretched output > non 4:3 displays > FS mode
#128827
05/09/07 08:56
05/09/07 08:56
|
Joined: Jul 2005
Posts: 27
andibeh
OP
Newbie
|
OP
Newbie
Joined: Jul 2005
Posts: 27
|
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?
Last edited by andibeh; 05/09/07 08:58.
|
|
|
Re: Stretched output > non 4:3 displays > FS mode
[Re: andibeh]
#128828
05/10/07 02:13
05/10/07 02:13
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
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.
xXxGuitar511 - Programmer
|
|
|
Re: Stretched output > non 4:3 displays > FS mode
[Re: andibeh]
#128834
09/28/07 14:05
09/28/07 14:05
|
Joined: Jan 2005
Posts: 605 Deutschland, NRW
garv3
User
|
User
Joined: Jan 2005
Posts: 605
Deutschland, NRW
|
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
GameStudio Version: A7 Pro v7.86
|
|
|
Re: Stretched output > non 4:3 displays > FS mode
[Re: garv3]
#128835
09/28/07 14:16
09/28/07 14:16
|
Joined: Jan 2005
Posts: 605 Deutschland, NRW
garv3
User
|
User
Joined: Jan 2005
Posts: 605
Deutschland, NRW
|
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
GameStudio Version: A7 Pro v7.86
|
|
|
|