How to prevent images from scaling up in fullscreen mode?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

How to prevent images from scaling up in fullscreen mode?

#1 Post by Alex » Thu Oct 03, 2013 3:41 pm

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)?

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: How to prevent images from scaling up in fullscreen mode

#2 Post by AxemRed » Thu Oct 03, 2013 4:12 pm

Just don't use fullscreen mode? If you want it to display 1:1, windowed mode already does that.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: How to prevent images from scaling up in fullscreen mode

#3 Post by Alex » Thu Oct 03, 2013 4:55 pm

This counts as a workaround... but how would it be done for the fullscreen mode that is the question... ;)

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: How to prevent images from scaling up in fullscreen mode

#4 Post by Elmiwisa » Sat Oct 05, 2013 3:17 am

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.

User avatar
PN04
Regular
Posts: 34
Joined: Thu Oct 07, 2010 4:46 am
Contact:

Re: How to prevent images from scaling up in fullscreen mode

#5 Post by PN04 » Sat Oct 05, 2013 4:38 am

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.

User avatar
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

#6 Post by nyaatrap » Sat Oct 05, 2013 6:53 am

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.)

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: How to prevent images from scaling up in fullscreen mode

#7 Post by Alex » Sat Oct 05, 2013 8:41 am

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... :roll:

Post Reply

Who is online

Users browsing this forum: Google [Bot]