00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Edits to post #26436410 by 3p0ch

Edited

At 1/10/20 01:16 PM, mayorDump wrote:
At 1/10/20 12:15 PM, mayorDump wrote: Through testing this game on this site and itch.io, I've noticed a problem with my games resolution. In every resolution settings area I can think of (HTML5 build resolution, host site embed resolution, index file canvas, even my computer's registry tied to "DefaultCompany") I've set my game to 720 x 480. In the Unity editor and as a standalone Windows build, it displays at this correct resolution. However, when I upload the HTML5 build to this site or itch.io, it seems to be upscaled to 900 x 600, resulting in the game looking more blurry since it's still being rendered at the smaller, intended resolution. I have no clue how to fix it. Anyone have an idea of what might be going on?
I tried making a new Unity project and changing the resolution first and foremost, but the same problem happened. Based on that, I beliebe the problem doesn't have to do with the build file holding on to an older or default resolution setting.

And the solution isn't as simple as giving up and just setting the resolution to 900 x 600. Tried that, and it upscaled it even more. So it seems that Unity's publishing to HTML will always upscale the resolution. Has anybody else noticed this?? I can't find any solutions anywhere.


IDK, it sounds like you've already tried the only thing I know of that would affect WebGL builds but not standalone builds -- under Project Settings, pick Player on the left, within that window make sure the WebGL tab is selected, and open the Resolution and Presentation box where it has sizes. But if that's not working, the other thing you could maybe try is after you build the game then open the index.html file in a text editor and look for the gameContainer div near the end and set the width and height there? I guess it depends on exactly what's happening -- if the game's viewport is 900x600 while the game is still being rendered tiny at 720x480, or if it's showing up at 900x600 and scaled properly, or being rendered at 900x600 and cropped 'cuz the container is too small. Maybe you could do some sort of hack depending on that and screwing with the settings within Unity and in the html it generates, although figuring out the actual underlying problem would be a lot better.


At 1/10/20 01:16 PM, mayorDump wrote:
At 1/10/20 12:15 PM, mayorDump wrote: Through testing this game on this site and itch.io, I've noticed a problem with my games resolution. In every resolution settings area I can think of (HTML5 build resolution, host site embed resolution, index file canvas, even my computer's registry tied to "DefaultCompany") I've set my game to 720 x 480. In the Unity editor and as a standalone Windows build, it displays at this correct resolution. However, when I upload the HTML5 build to this site or itch.io, it seems to be upscaled to 900 x 600, resulting in the game looking more blurry since it's still being rendered at the smaller, intended resolution. I have no clue how to fix it. Anyone have an idea of what might be going on?
I tried making a new Unity project and changing the resolution first and foremost, but the same problem happened. Based on that, I beliebe the problem doesn't have to do with the build file holding on to an older or default resolution setting.

And the solution isn't as simple as giving up and just setting the resolution to 900 x 600. Tried that, and it upscaled it even more. So it seems that Unity's publishing to HTML will always upscale the resolution. Has anybody else noticed this?? I can't find any solutions anywhere.


IDK, it sounds like you've already tried the only thing I know of that would affect WebGL builds but not standalone builds -- under Project Settings, pick Player on the left, within that window make sure the WebGL tab is selected, and open the Resolution and Presentation box where it has sizes. But if that's not working, the other thing you could maybe try is after you build the game then open the index.html file in a text editor and look for the gameContainer div near the end and set the width and height there? I guess it depends on exactly what's happening -- if the game's viewport is 900x600 while the game is still being rendered tiny at 720x480, or if it's showing up at 900x600 and scaled properly, or being rendered at 900x600 and cropped 'cuz the container is too small. Maybe you could do some sort of hack depending on that by screwing with the settings within Unity and in the html it generates, although figuring out the actual underlying problem would be a lot better.