How to prevent images from scaling up in fullscreen mode?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
How to prevent images from scaling up in fullscreen mode?
Hi, folks!
So, Ren'Py is doing nice job for us scaling images up and down when we change the game's window size. But if the game has low resolution, the images on rather big monitor are looking blurry. And I wonder, is there any way to prevent images from scaling up when window size became bigger than game resolution (like having images in their original size in the middle of the game window)?
So, Ren'Py is doing nice job for us scaling images up and down when we change the game's window size. But if the game has low resolution, the images on rather big monitor are looking blurry. And I wonder, is there any way to prevent images from scaling up when window size became bigger than game resolution (like having images in their original size in the middle of the game window)?
Re: How to prevent images from scaling up in fullscreen mode
Just don't use fullscreen mode? If you want it to display 1:1, windowed mode already does that.
Re: How to prevent images from scaling up in fullscreen mode
This counts as a workaround... but how would it be done for the fullscreen mode that is the question... 
Re: How to prevent images from scaling up in fullscreen mode
I only see this through screenshot, because I never play the game. But Magical Diary did it somehow. They have a different version of the screen at full window mode, and the sprite remain unscaled. I can't find anyway to do it in Ren'Py, so it could have been done by modifying the engine.
Re: How to prevent images from scaling up in fullscreen mode
Can you attach conditions to the images you display depending on whether you're using windowed mode? It seems to me if any options could be connected to features you manipulate in the options that maybe it might be possible, I personally don't know enough about the engine yet to know if that's possible at a high level, so I'm just guessing.
Otherwise you kinda have to leave it up to the user to pick the display method that works best for the images. I know if I dont like the way something is stretched in full screen, I'll either adjust my resolution or leave it windowed just to avoid the complication.
Otherwise you kinda have to leave it up to the user to pick the display method that works best for the images. I know if I dont like the way something is stretched in full screen, I'll either adjust my resolution or leave it windowed just to avoid the complication.
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: How to prevent images from scaling up in fullscreen mode
afaik, there's no way to do with current ren'py other than disabling hardware acceleration.
A critical problem is:
If monitor size > game screen size > monitor size - 102, then it's impossible to show the game screen in actual pixel.
(You can't make 1280x720 games for 1366x768 monitor in actual pixel, 1600x900 for 1680x1050, e.t.c.)
A critical problem is:
If monitor size > game screen size > monitor size - 102, then it's impossible to show the game screen in actual pixel.
(You can't make 1280x720 games for 1366x768 monitor in actual pixel, 1600x900 for 1680x1050, e.t.c.)
Re: How to prevent images from scaling up in fullscreen mode
Oh, thanks for replies...))
Ren'Py gives the player ability to choose the better screen mode and it works great. And this issue was just a question - "is it possible at all?" 'cause the result might be not so usefull (black screen with game image in the middle - it's not so different from window-mode).
Anyway, I've tried to check if the actual game screen size is bigger than my images and if so - change the screen resolution to phisical size of the window and clip all the layers in the middle of the screen make them the size of my images (http://lemmasoft.renai.us/forums/viewto ... ip#p266459). But I'm failed at it (first of all, I'm unable to clip all the layers - not some of them). This certainly the result of my misunderstanding of how things work. So, if anybody could try this method or maybe find another one (that doesn't require different sets of images for different screen resolutions) and share it...
Ren'Py gives the player ability to choose the better screen mode and it works great. And this issue was just a question - "is it possible at all?" 'cause the result might be not so usefull (black screen with game image in the middle - it's not so different from window-mode).
Anyway, I've tried to check if the actual game screen size is bigger than my images and if so - change the screen resolution to phisical size of the window and clip all the layers in the middle of the screen make them the size of my images (http://lemmasoft.renai.us/forums/viewto ... ip#p266459). But I'm failed at it (first of all, I'm unable to clip all the layers - not some of them). This certainly the result of my misunderstanding of how things work. So, if anybody could try this method or maybe find another one (that doesn't require different sets of images for different screen resolutions) and share it...
Who is online
Users browsing this forum: Google [Bot]
