Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, Ayumi, VHX, monarch), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
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"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
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 | 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