High Resolution Background is Zoomed In [Solved]

Started by Anralore, Sun 29/08/2021 16:06:41

Previous topic - Next topic

Anralore

I have a background that is 4032x2272. It is very zoomed in and I cannot work out how to zoom it out so I can see the whole image and not just a small section.

Is this possible?

Crimson Wizard

Are you speaking about working with this background in the editor, or seeing more room when the game is running?

What is your game's resolution?

Anralore

Quote from: Crimson Wizard on Sun 29/08/2021 16:14:44
Are you speaking about working with this background in the editor, or seeing more room when the game is running?

What is your game's resolution?

It is the background of a room. I want to be able to see all of it but it is zoomed in to a small section at the top right.

In the visuals section it says width: 4032 and Height: 2272

Crimson Wizard

Quote from: Anralore on Sun 29/08/2021 16:26:15
It is the background of a room. I want to be able to see all of it but it is zoomed in to a small section at the top right.

I get it, but do you want to zoom out your room in the room editor, for easier editing, or you want to see more of the room while playing the game? These are two different use cases.

Quote from: Anralore on Sun 29/08/2021 16:26:15
In the visuals section it says width: 4032 and Height: 2272

That's probably room's size.
You may find the game's resolution in "General Settings", "Basic properties", where it sais "Resolution". That defines how much do you see in game, by default. Note that this also defines the resolution of your game's GUI and on screen text.

You may also zoom out by changing camera's size. For example, if you have smaller game resolution but larger room, and you want to show more of it for a particular scene, you may increase the camera's size in script. This is done by calling "Game.Camera.SetSize(width, height);". You could do that in "Enter room before fade-in" room event, for instance.

Anralore

Quote from: Crimson Wizard on Sun 29/08/2021 18:22:39
Quote from: Anralore on Sun 29/08/2021 16:26:15
It is the background of a room. I want to be able to see all of it but it is zoomed in to a small section at the top right.

I get it, but do you want to zoom out your room in the room editor, for easier editing, or you want to see more of the room while playing the game? These are two different use cases.

Quote from: Anralore on Sun 29/08/2021 16:26:15
In the visuals section it says width: 4032 and Height: 2272

That's probably room's size.
You may find the game's resolution in "General Settings", "Basic properties", where it sais "Resolution". That defines how much do you see in game, by default. Note that this also defines the resolution of your game's GUI and on screen text.

You may also zoom out by changing camera's size. For example, if you have smaller game resolution but larger room, and you want to show more of it for a particular scene, you may increase the camera's size in script. This is done by calling "Game.Camera.SetSize(width, height);". You could do that in "Enter room before fade-in" room event, for instance.

I want to be able to see the whole room when playing the game.

I have found the resolution in "Basic Properties", it is set to 320x200 but will not let me change it. How do I do that?

Crimson Wizard

#5
Quote from: Anralore on Sun 29/08/2021 18:51:45
I have found the resolution in "Basic Properties", it is set to 320x200 but will not let me change it. How do I do that?

There's "..." button to the right, you click it to open the selection dialog.

Quote from: Anralore on Sun 29/08/2021 18:51:45
I want to be able to see the whole room when playing the game.

4032 x 2272 is really huge, may I ask why do you need it that big? Is it a special room of some kind, or your whole game will be like that?

I must mention that AGS is not very well suited for graphics of that high resolution.

Also, if you set your game to 4032 x 2272, most computers will not be able to run it in that size, and will have to downscale, reducing the quality of image.

Anralore

Quote from: Crimson Wizard on Sun 29/08/2021 19:01:33

4032 x 2272 is really huge. Is it a special room of some kind, or your whole game will be like that?

I must mention that AGS is not very well suited for graphics of that high resolution.

Also, if you set your game to 4032 x 2272, most computers will not be able to run it in that size, and will have to downscale, reducing the quality of image.

It works, thank you.

I shall down scale it.

Is there a way that I can zoom out further in the editor?

Crimson Wizard

Quote from: Anralore on Sun 29/08/2021 19:07:22
Is there a way that I can zoom out further in the editor?

Well, there's a zoom slider on top, its min is 25%, which should zoom 4032 x 2272 image out to 1008 x 568, I hope that would be enough.

Anralore

Quote from: Crimson Wizard on Sun 29/08/2021 19:16:58

Well, there's a zoom slider on top, its min is 25%, which should zoom 4032 x 2272 image out to 1008 x 568, I hope that would be enough.

Not really, but if I downscale the image it should be fine. Thank you for your help.

Khris

You should definitely pick a suitable game resolution and aspect ratio first, then draw/scale your background images accordingly.

For highres games I recommend 1280x720; there's still lots of people with 1366x768 laptop screens and using a higher resolution than 720p is not really beneficial anyway, especially when using AGS.

This means (leaving aside the new camera/viewport system) that 1280x720 pixels of the background image will be visible, and a bigger image will scroll inside the game, depending on the player's position.

SMF spam blocked by CleanTalk