Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, dpn), 1,346 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Widescreen fullscreen aspect issue questions #179879
01/25/08 09:55
01/25/08 09:55
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
Hello Conitec,

i just have one simple question. Why does the engine strech the scene whenever i use video_set to switch to a widescreen resolution in fullscreen. If i use the same command to swith to widescreen in windowed mode, everything looks okay as it should without any streching.

So why does the engine not display the same scene result? To my understanding it should not matter if you run windowed or fullscreen. The result should be the same, but unfortunately it is not.

The only way to get proper results in fullscreen is to set the camera.aspect = 1.2 and then move the camera up to see more from the scene. I did a lot of screenshots to get this value look at the following screenshots (ignore the green values they are just debug messages and do not represent the current resolution).

This is the result of 1024x768 fullscreen with camera.aspect = 1
http://www.ackbytes.com/upload/1024a1.jpg

This is the result of 1280x800 fullscreen with camera.aspect = 1
http://www.ackbytes.com/upload/shot_1280.jpg

Finally this is 1280x800 fullscreen with camera.aspect = 1.2 and the camera set 197 quants higher to get the same scene horizontal
http://www.ackbytes.com/upload/1280a1_2.jpg

Now my intention is to find out why i have to set the aspect to 1.2 in widescreen fullscreen, is this a possible engine bug? Because again, i don't have to do this in window mode. Or am i doing something wrong? It does not have to do with my monitor, because i took screenshots to verify this.

Thanks for your response,

Greetings!

Re: Widescreen fullscreen aspect issue questions [Re: ulf] #179880
01/25/08 12:56
01/25/08 12:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Well, when your monitor stretches the image so that a pixel is not square anymore, you need to set the aspect - that's what the aspect was invented for. The engine can not know the shape of your monitor.

Re: Widescreen fullscreen aspect issue questions [Re: jcl] #179881
01/25/08 13:29
01/25/08 13:29
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
Thanks for your response, i can follow you, that the engine can not determine the shape of my monitor but that was not what i meant.

One simple example, i do start the engine in 1024x768 fullscreen on my widescreen monitor. Now everything looks streched - because my monitor streches the pixels, but here the point comes now i take a screenshot with F6. Once i exit the engine and look at this screenshot it has the perfect measures. Because my monitor just streched those smaller engine resolution. I just did it again, here it is: http://ackbytes.com/upload/normal.jpg Have a look at the ackfont in the top left to see the resolution and notice nothing is streched there. To my understanding taking a screenshot just grabs the data, the gfxcard sends to the monitor. This must not correspond to what you see, but it does correspond to what the engine is sending out. Right?

Okay now the same game with 1280x800 at my widescreen monitor. Again everything looks streched, i take a screenshot, exit the game and boom, this is what i got.
http://ackbytes.com/upload/wide.jpg Notice that everything except the ackfont is streched in the screenshot. How can that be? Thats not logical to me, because in windowed mode everything would look not streched at this resolution.
Please look very closely to ackfont top left corner again you can see the font is not streched but the 3d scene is. So this must have to do with the engine and
not with my monitor, if it would - that ackfont must have been streched too!
Can you please explain this please? Thanks very much!

Greetings

edit: You can perfectly see the difference in the streching of only the 3d scene, once you open both pictures at once or overlay them starting at the top left corner.

Last edited by ulf; 01/25/08 13:58.
Re: Widescreen fullscreen aspect issue questions [Re: ulf] #179882
01/28/08 09:52
01/28/08 09:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, sorry, I have not expressed myself clearly - what I meant was: The engine assumes a 4:3 monitor aspect ratio. If your aspect is different, as is the case with wide screen displays, you need to adjust the view.aspect value accordingly.

Re: Widescreen fullscreen aspect issue questions [Re: jcl] #179883
01/29/08 06:13
01/29/08 06:13
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Quote:

why i have to set the aspect to 1.2 in widescreen fullscreen



I think the view.aspect do the fine job, in 4:3 screen, the ration is 1.333, in wide screen 1280x800, it is 1.6; so 1.6/1.333 you will got 1.2, which is the aspect ratio for wide screen.

What I ask for, is additional engine function to retrieve the native resolution of screen, before opening the video device. So I can set the correct aspect manually.

Re: Widescreen fullscreen aspect issue questions [Re: Frederick_Lim] #179884
01/29/08 07:46
01/29/08 07:46
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
Thanks jcl.

Frederick, you can already get the native screen resolution wich the user has set in windows with sys_metrics:

Code:

int desktop_size[2]; // store resolution
desktop_size[0] = sys_metrics(0); // SM_CXSCREEN X
desktop_size[1] = sys_metrics(1); // Y



Last edited by ulf; 01/29/08 07:47.
Re: Widescreen fullscreen aspect issue questions [Re: ulf] #179885
01/29/08 07:55
01/29/08 07:55
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Oh thanks, I am still a newbie

Re: Widescreen fullscreen aspect issue questions [Re: Frederick_Lim] #179886
01/31/08 19:48
01/31/08 19:48
Joined: Sep 2002
Posts: 1,065
Germany, Jena, Thüringen
3D_Train_Driver Offline
Serious User
3D_Train_Driver  Offline
Serious User

Joined: Sep 2002
Posts: 1,065
Germany, Jena, Thüringen
Hi!
If you want the correct aspect ratio in any of your screen resolutions just add:

Code:
  
camera.aspect = screen_size.x/screen_size.y/(4/3);





Re: Widescreen fullscreen aspect issue questions [Re: 3D_Train_Driver] #179887
01/31/08 23:03
01/31/08 23:03
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
Cant acknex simply automate this functionality, and set the aspect given the fraction screenHight/ScreenWith ?

Re: Widescreen fullscreen aspect issue questions [Re: Damocles] #179888
02/01/08 10:18
02/01/08 10:18
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It could, but it won't. First, it would not solve the problem when your monitor has a different aspect. Second, users won't appreciate functions that suddenly behave differently than before.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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