Question about making HD game

For questions about using Classic.

Post » Wed Jul 21, 2010 2:39 pm

Hi

I try to make a game with HD graphics (1080p, 1920x1080). However when I try to run the game with fullscreen Construct says that display resolution is not supported.

My monitor is 1680x1050 so yes full HD resolution is too big for me but I think it should be possible to downscale the resolution in runtime so that me and other guys with lower resolution could run the game?
B
5
S
2
G
8
Posts: 53
Reputation: 3,222

Post » Wed Jul 21, 2010 4:49 pm

Why would you make a HD game when you don't even have the display?
Besides your going to lock out ALLOT of players at that resolution cause they can't run it(wheter because of the monitor or graphics card)
You could use some zooms and whatnot but its going to be a pain to make it synchronized and smooth
If you want the extra rez go in the 1280x720/800/1024 range
It still is a bit high but you want the detail(right?)
Also HD ratios are rare cases for something like pc and you can't compile for consoles either
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Wed Jul 21, 2010 5:17 pm

[quote:wiucgt9y]Why would you make a HD game when you don't even have the display?[/quote:wiucgt9y]
Because I would like to remade one of my favorite indie game with high resolution graphics. Have you heard about those Monkey Island Special Editions? They have high resolution graphics and although my monitor's resolution is not as high as 1920x1080 I can still play them. I can even play them with my laptop (1280x800) because the game downscales the size.

[quote:wiucgt9y]Besides your going to lock out ALLOT of players at that resolution cause they can't run it[/quote:wiucgt9y]
Downscaling would be the solution. For example I watch Full HD videos with my laptop (1280x800) and my media player automatically downscales the video size to my laptop screen.
B
5
S
2
G
8
Posts: 53
Reputation: 3,222

Post » Wed Jul 21, 2010 5:35 pm

Just allow multiple resolutions. For starters, always rendering the game in 1920x1080 on a computer with a monitor that doesn't support that resolution would be a waste of processing power. Secondly, it's a wise thing to do in case the game doesn't run well on older computer.

The key for this to work well is to make sure that your graphics are dynamically scaled proportionally to the chosen screen resolution. For example, if you're designing all of your graphics for 1920x1080, then the scaling factor for your graphics would be:

DisplayWidth / 1920

You'd apply this scaling factor(multiplied by 100) to the display zoom level. This will ensure that all graphics, when displayed at full screen regardless of resolution, appear the same size.

I hope that helps. If you want, I could whip up a quick example later tonight.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Wed Jul 21, 2010 6:28 pm

Yes I'm designing all graphics in 1920x1080. A little example file would be great if you have time to do that :)
B
5
S
2
G
8
Posts: 53
Reputation: 3,222

Post » Thu Jul 22, 2010 4:44 am

Okay, here's an example of changing the graphics scaling based on the resolution of the screen:

Resolution based scaling

As you can see, no matter what the resolution, the scaling of the graphics compared to the resolution is proportional to when the resolution is 1920x1080. In this way, everything stays the proper size no matter what the resolution.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Thu Jul 22, 2010 2:29 pm

Hmm, yes it works in window but I can't still use full screen mode?

EDIT:
Oh, I can use fullscreen AFTER I have set the correct resolution. However try to add some 1920x1080 background to your application and change resolution, there is some white area?

EDIT 2:
I turned unbounded scrolling off, set layout color to black and now I can see the whole window area. However there is only one black aspect ratio bar and it's below the image. Like this:


EDIT 3:
Here is my example. Works well but contains only one black aspect ratio bar:
[color=#0000FF:7gy4mb95][url:7gy4mb95]http://www.voimalaitos.org/download/examples/HDRes.cap[/url:7gy4mb95][/color:7gy4mb95]

EDIT 3:
Here is another example. I turned unbounded scrolling on and set ScrollX to 1920 / 2 and Scroll Y to 1080 / 2. I think it should work now, image is in the middle of the screen.
[color=#0000FF:7gy4mb95][url:7gy4mb95]http://www.voimalaitos.org/download/examples/HDRes2.cap[/url:7gy4mb95][/color:7gy4mb95]
B
5
S
2
G
8
Posts: 53
Reputation: 3,222

Post » Thu Jul 22, 2010 9:29 pm

Your HDRes2.cap displays perfectly on my 5:4 ratio 1280x1024 display. Looks nice.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Fri Jul 23, 2010 10:43 am

There are 2 reasons why Downscaling is bad
First it can crawl or not run at all on some pc if there cards don't support textures larger then 1024
which can happen on some sprites,also there is the problem of memory on the graphics card which is again limited
In that wallpaper example it could probably crash if my graphics card didn't support 2048 textures and also the example takes whooping 16mb vram
The second problem is the downscaling itself which you can lose allot of details and can look like crap
For example if one runs 1028 768 a 1080p image could lose allot of details and produce allot of artifacts as opposed to a 720 which is closer in range and as thus better defined
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Fri Jul 23, 2010 11:03 am

my take is while it is probably best to have sprites at mutiple detail levels so you can load the lo res ones and not waste vram on large sprites at lower resolution. But its not a requirement that every 2d game run on the oldest pc's. There are precious few 2d games that take advantage of modern hardware. Some people invest in better hardware, and are happy to see games that take advantage of it
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests