[Solved] fix Point Sampling (w/ Pixel Rounding) flickering!

Discussion and feedback on Construct 2

Post » Thu Jul 27, 2017 4:10 pm

@newt
First of all, its placeholder so that the real ones wont get stolen. Exactly the same happens on real sprites. Are you suggesting that the fix would be not to use one pixel lines and make every line fatter? Thats a bit weird and limits visual design quite a bit

Second of all, how would you explain same lines appearing of the grass, where there are no 1 pixel lines?

(Thank you for spotting the source of the problem tho)
Last edited by HellMax on Thu Jul 27, 2017 5:46 pm, edited 1 time in total.
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 4:28 pm

@newt
And why, again, Construct is drawing lines between whole points if i've got Pixel rounding on?
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 5:18 pm

It can happen to straight lines of any width, it can happen to a line of any length, and while you may have pixel rounding on, the scroll, and the upscale mean you still have sub-pixel placement.
The scale probably has less to do with it than the scroll.
That can be avoided using integer positions, which will probably look jerky.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Thu Jul 27, 2017 5:25 pm

@newt
First of all, thanks for paying attention.
1. The "camera" object to which the ScrollTo is done is only located on integer positions, but flickering still occurs on some scales. Is there a way to make it "more integer"

2. Did I get it right that the existence of render lines depends on window size? (if letterbox scale is used?)
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 5:33 pm

OMG absolutely 0 flickering if you disable scaling completely. O_o
...
..
.
How do I make the game resizeable then :D
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 5:46 pm

Well I think you're scaled in a little close there. You can upscale graphics before you import them for better results, but straight lines will always have that effect.
Also be aware different monitors will show it at different places.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Thu Jul 27, 2017 6:06 pm

@newt
Sorry, did not quite get what you meant by "scaled in a little close"

Also, any flickering vanishes when you use "off" on scaling in browser. Since Letterbox integer is not suitable for PC games, I need an alternative way to scale it :/
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 6:56 pm

The scale you are using is too small for fullscreen imo.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Thu Jul 27, 2017 8:36 pm

You mean the 1280x720 resolution being too small?
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Thu Jul 27, 2017 10:42 pm

Nope.
The size of the objects, and texture in relation to the layout size.
You have an eight pound cat, in a 1 gallon bag.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests