Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stretched output > non 4:3 displays > FS mode #128827
05/09/07 08:56
05/09/07 08:56
Joined: Jul 2005
Posts: 27
A
andibeh Offline OP
Newbie
andibeh  Offline OP
Newbie
A

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 Offline
Expert
Happy Birthday xXxGuitar511  Offline
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: xXxGuitar511] #128829
05/10/07 06:44
05/10/07 06:44
Joined: Jul 2005
Posts: 27
A
andibeh Offline OP
Newbie
andibeh  Offline OP
Newbie
A

Joined: Jul 2005
Posts: 27
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.

Re: Stretched output > non 4:3 displays > FS mode [Re: andibeh] #128830
05/18/07 11:16
05/18/07 11:16
Joined: Jul 2005
Posts: 27
A
andibeh Offline OP
Newbie
andibeh  Offline OP
Newbie
A

Joined: Jul 2005
Posts: 27
Has nobody experienced the same problem? Is it a bug of 3DGS (v6.50)?

Re: Stretched output > non 4:3 displays > FS mode [Re: andibeh] #128831
05/29/07 17:34
05/29/07 17:34
Joined: May 2005
Posts: 155
C:\Program files\GStudio6
alphaindigo Offline
Member
alphaindigo  Offline
Member

Joined: May 2005
Posts: 155
C:\Program files\GStudio6
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...


beware the sock! - tLempoary...
Re: Stretched output > non 4:3 displays > FS mode [Re: alphaindigo] #128832
05/29/07 20:27
05/29/07 20:27
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
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


Always learn from history, to be sure you make the same mistakes again...
Re: Stretched output > non 4:3 displays > FS mode [Re: Uhrwerk] #128833
06/04/07 14:59
06/04/07 14:59
Joined: Jul 2005
Posts: 27
A
andibeh Offline OP
Newbie
andibeh  Offline OP
Newbie
A

Joined: Jul 2005
Posts: 27
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))

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
G
garv3 Offline
User
garv3  Offline
User
G

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
G
garv3 Offline
User
garv3  Offline
User
G

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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1