Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Outline Shader for Ren'Py

Apply dynamic outlines in-engine to buttons, images, and more. · By Feniks

Cropped imageBlurry

A topic by NC131 created 54 days ago Views: 72 Replies: 4
Viewing posts 1 to 2

Hello!

So there's an issue with this shader
- The image is blurry when it's not fullscreen


- And this is when fullscreen


And as you can see, it's cropped, maybe because the image has no transparency area, since that sprite is not full...? I don't know the word
but basically, the image size is perfectly the size of that sprite.

And I have no idea what's with the blur when it's not full-screen.
This is the sprite size (69 x 190)

And I use it on a button with offset on the image (not sure if the offset also causes that to happen)

This is the code that I use in the button

at transform:

                outline_transform(0, "#fff", 0)

                on idle:

                    ease 0.1 outline_transform(0, "#fff", 0)

                on hover:

                    ease 0.1 outline_transform(3, "#fff", 3.0,)



So I don't think I can use this shader for now...

Developer

Hello! You should turn on gl_drawable_resolution to fix this - it's an argument you can pass to the outline_transform transform via drawable_res=True.




Still a bit blurry, and still cropped...

I guess for the cropped part is because the image doesn't have more transparent area?
Developer(+1)

You need to use mesh padding or increase the transparency around your image to accommodate the outlines, yes. Mesh padding will change the size of the image, so I recommend padding the image with transparency outside of the engine.

You'll always have at least a small quality change when resizing images in Ren'Py also, which isn't under my control/it will look like that regardless of the outline being applied if you've toggled the drawable resolution property on.

Alright, thanks for the input!