Frame blurs parts of image out along sides on Windows, but not on OSX.

Bug #781394 reported by Jake Staines on 2011-05-11
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ren'Py
Medium
Tom Rothamel

Bug Description

A Frame has been constructed using the attached image and the following code:

   init:
       $ style.window.background = Frame('frame.png', 22, 22)

The 'knots' at the corners of the frame image are 1 [empty] pixel away from the boundary between the 'corner' part and the stretched 'side' part of the Frame; however, on more than one Windows machine, the edge of the knot is 'smeared' out some distance into the stretched 'side' portion of the frame, as can be seen on the attached screenshot.

The same image and code on OSX does not have the problem; the same problem was observed on more than one Windows machine, but in particular on one which has very similar hardware to the OSX machine tested on. The workaround to avoid the problem is simply to add more empty padding pixels between the two 'knots' on the frame image and make the Frame margins larger, but this has the undesirable side-effect of making the minimum Frame height larger.

Tom Rothamel (renpytom) wrote :

I've committed a change to Ren'Py that might affect this. I've been unable to get this going on any of my machines, but I did discover a problem that prevented the bottom borders of OpenGL textures from being created properly.

This fix will be an updated 6.12.1 that will be released in the next couple of days.

Changed in renpy:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Tom Rothamel (renpytom)
SleepKirby (yoshifan) wrote :

I'm still seeing the border smearing in Ren'Py 6.13.12.1728.

For me, the smearing happens in OpenGL mode, but not in Software rendering mode. I don't have Angle for DirectX so I haven't tried that.

I've attached an example project that demonstrates the issue, which includes:

- A second, simpler example of a frame that smears when the borders are set correctly - game/dialogue_box.png. The borders are 2 pixels on each side. When the Frame's border is set to 2 pixels on each side, there is smearing; when set to 3 pixels on each side, there's no smearing.

- Screenshots taken while running the test with OpenGL on my computer - .png's outside the game folder

- My log.txt when running in OpenGL, outside the game folder

To try a few different tests, comment out one of lines 18-20 in game/say_screen.rpy.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers