Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
screen type #401466
05/20/12 06:40
05/20/12 06:40
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
Hi Guys,
now i want to adjust my panels and bmaps to the different screen types
how did you to handle that?
i mean 16:9 and 4:3 screen

Re: screen type [Re: GameScore] #401645
05/22/12 21:24
05/22/12 21:24
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline
Member
flatron  Offline
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
use this:

loadingpan.scale_x=screen_size.x/bmap_width(loadingpan.bmap);
loadingpan.scale_y=screen_size.y/bmap_height(loadingpan.bmap);

Re: screen type [Re: flatron] #401664
05/23/12 08:00
05/23/12 08:00
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
i know that, this will scale the bmap to the actual screensize

but the problem is, when u have a 1280*1024 bmap
and you use 16:9 screen the bmap looks overstreched

Re: screen type [Re: GameScore] #401673
05/23/12 08:51
05/23/12 08:51
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Then you have to draw another bitmap laugh

Re: screen type [Re: PadMalcom] #401685
05/23/12 11:09
05/23/12 11:09
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
did you know how to prove the user have a 4:3 or 16:9 screen?

Last edited by GameScore; 05/23/12 11:09.
Re: screen type [Re: GameScore] #401691
05/23/12 12:03
05/23/12 12:03
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Read out http://www.conitec.net/beta/video_aspect.htm
or do the math by yourself (screen_size.x/screen_size.y)


no science involved
Re: screen type [Re: fogman] #401871
05/25/12 12:32
05/25/12 12:32
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline
Member
flatron  Offline
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
there is a solution but have some problems.
if you use layerd entity(ent_createlayer) , no need to resize images .
problems:if you use camera.arc or shader on screen , objects will afected.

another idea:
if you use some image for menu,use a constant resolution like 1024*768 and in game use user choiced resolution.

but finally i have same problem to streaching image and quality.
any one know how other game and game engine solve this problem?


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