Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / UV offsetting causing flicker

Author
Message
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 25th Aug 2017 14:45
Trying to make a scrolling grid using UV offsets. It flickers hard when moving, and causes odd color shifting with small offset changes. Possibly related to my earlier post on how DrawLine is drawing white as grey at different times.

What am I doing wrong here?

Example code:


Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 27th Aug 2017 14:34 Edited at: 27th Aug 2017 14:37
Check this out. I was only able to solve it by setting mipmaps on.

https://forum.thegamecreators.com/thread/220176#msg2607541

I would only use mipmaps on scaled images. I found having it on every image degraded the quality.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Aug 2017 15:34 Edited at: 27th Aug 2017 15:36
SetGenerateMipmaps( 1 )
+ a bigger image

in your first example the gray lines can reduced by SetSpriteTransparency off
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)

Attachments

Login to view attachments
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 29th Aug 2017 13:27
Thanks all. I will try this when I have the issue next time. I switched to using a tilemap and just some smaller randomized sprites for background. So that got rid of this issue for me for now...

Login to post a reply

Server time is: 2024-11-24 09:35:42
Your offset time is: 2024-11-24 09:35:42