Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Widescreen fullscreen aspect issue questions [Re: jcl] #179889
02/01/08 15:16
02/01/08 15:16
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
you could add a "camera_adapt_aspect();" function

Re: Widescreen fullscreen aspect issue questions [Re: Damocles] #179890
02/02/08 14:31
02/02/08 14:31
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
I simply create 2 more mode for 1280x800 (16:10) and 1280x720 (16:9).
Code:
		switch(res)
{
case 13:
video_set(1280, 800, 0, 1);
break;
case 14:
video_set(1280, 720, 0, 1);
break;
default:
if (res < 6 || res > 12)
{
res = 6;
}
video_switch(res,0,1);
}
if (integer(sys_metrics(0)/sys_metrics(1)*100) > 133)
{
camera.aspect = (sys_metrics(0)/sys_metrics(1))/(4/3);
}


I haven't test it on wide screen yet.

Re: Widescreen fullscreen aspect issue questions [Re: Frederick_Lim] #179891
02/03/08 03:31
02/03/08 03:31
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
I tested this code and the aspection width was to small and all objects looked bad. This is a Problem with to low values.
Here is the code that works better with 16:10 and works also with window mode not only in fullscreen!

video_set(1680,1050,0,1);
wait(1);
camera.aspect = (screen_size.x/4) / (screen_size.y/3);

The wait(1) is to ensure that the vector screen_size is set to the new width and height of the 3D window/screen.


Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)
Re: Widescreen fullscreen aspect issue questions [Re: HPW] #179892
02/06/08 04:01
02/06/08 04:01
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
OK I found what's wrong, change the line to this
Code:
camera.aspect = (sys_metrics(0)/4)/integer((sys_metrics(1)/3));



Now you can add any mode you want and you will got correct aspect.

Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | 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