(Help) Does Ren'py have a tenacity to lower image quality?

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
Midi
Regular
Posts: 47
Joined: Sat Aug 18, 2012 11:57 pm
Projects: Limerick Castle
Location: New Jersey
Contact:

(Help) Does Ren'py have a tenacity to lower image quality?

#1 Post by Midi » Thu Aug 23, 2012 7:52 pm

Cause this is really weird to me. I'm 100% Sure my images are sharp, and crisp, png Images. But looking at them in game..

IMAGES
(How It's Displaying)
(How it should be)


It's NOT looking the way it should... And I'm really confused. Maybe I'm coding wrong...or the size is bad. But please do look at it and tell me what's wrong. Blurry Images drive me insane.

Code: Select all

#██▓▒░ CUSTOM NAMEBOX ░▒▓███████████████████████████████████
    style.say_who_window.background = Frame("name box.png", 20, 20) #Background skin
    style.say_who_window.xalign = 0.0
    style.say_who_window.yalign = 1.0
    style.say_who_window.xpos = 220 #For precise placement
    style.say_who_window.ypos = 110 #For precise placement
    style.say_who_window.left_padding = 15
    style.say_who_window.top_padding = 15
    style.say_who_window.right_padding = 15
    style.say_who_window.bottom_padding = 15
    style.say_who_window.xminimum = 150
    style.say_who_window.yminimum = 15
    style.say_who_window.xfill = False

    style.say_label.color="#835631"
    style.say_label.drop_shadow = [(1, 1)]
    style.say_label.drop_shadow_color = "#b69e84"
    style.say_label.size = 18
    style.say_label.text_align = 0.5
    style.say_label.xpos = 29
    style.say_label.xalign = 0.5

Code: Select all

#██▓▒░CUSTOM TEXTBOX ░▒▓███████████████████████████████████

    ## The background of the window. In a Frame, the two numbers
    ## are the size of the left/right and top/bottom borders,
    ## respectively.

    style.window.background = Frame("text box.png", 45, 45)

    ## Margin is space surrounding the window, where the background
    ## is not drawn.

    style.window.left_margin = 0
    style.window.right_margin = 0
    style.window.top_margin = 0
    style.window.bottom_margin = 0

    ## Padding is space inside the window, where the background is
    ## drawn.

    style.window.left_padding = 215
    style.window.right_padding = 35
    style.window.top_padding = 75
    style.window.bottom_padding = 35

    ## This is the minimum height of the window, including the margins
    ## and padding.

    style.window.yminimum = 254
My Thanks ~~~[/color]

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#2 Post by PyTom » Thu Aug 23, 2012 8:20 pm

There are cases where Ren'Py can blur images:

1) Is the OS window rescaled? You may want to go into preferences and click "window" to ensure that everything is being displayed at 1:1 resolution.

2) Is the say window being resized? Frame will resize things if it proves necessary, which may cause blurring.

You can try:

Code: Select all

    style.window.background = "text box.png"
to stop this blurring from occuring.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Midi
Regular
Posts: 47
Joined: Sat Aug 18, 2012 11:57 pm
Projects: Limerick Castle
Location: New Jersey
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#3 Post by Midi » Thu Aug 23, 2012 9:07 pm

PyTom wrote:There are cases where Ren'Py can blur images:

1) Is the OS window rescaled? You may want to go into preferences and click "window" to ensure that everything is being displayed at 1:1 resolution.

2) Is the say window being resized? Frame will resize things if it proves necessary, which may cause blurring.

You can try:

Code: Select all

    style.window.background = "text box.png"
to stop this blurring from occuring.
Okay, I followed the directions and it's no longer framed, and it's not resized either...

But the image still seems to be softened looking.

User avatar
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#4 Post by Hijiri » Thu Aug 23, 2012 9:32 pm

Try it at full screen and see if it still appears like that?
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

User avatar
Midi
Regular
Posts: 47
Joined: Sat Aug 18, 2012 11:57 pm
Projects: Limerick Castle
Location: New Jersey
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#5 Post by Midi » Thu Aug 23, 2012 10:06 pm

Hijiri wrote:Try it at full screen and see if it still appears like that?
That makes it even more softened. ^^;

User avatar
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#6 Post by Hijiri » Thu Aug 23, 2012 10:16 pm

Code: Select all

    style.window.yminimum = 254
This might be the problem then. (Saw the textbox was 260) You may have to add padding so that the text aligns to where you want it.
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

User avatar
Midi
Regular
Posts: 47
Joined: Sat Aug 18, 2012 11:57 pm
Projects: Limerick Castle
Location: New Jersey
Contact:

Re: (Help) Does Ren'py have a tenacity to lower image qualit

#7 Post by Midi » Fri Aug 24, 2012 3:46 pm

It looks better now, my thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot