Jump to content


Photo

Graphical error, has always seemed to effect me


  • Please log in to reply
5 replies to this topic

#1 Tylerburrito

Tylerburrito

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 09 May 2012 - 01:48 AM

Okay, so I'm making a game, and it doubles the actual screen size so that the game is more visible. (I have used both 200% fixed width in the settings and using view ports)

I've used Game Maker for about 7 years, and I'm just now noticing this.

Posted Image

As you can see above, it looks fine! Each pixel is double in size, bringing the resolution up from 360x260 to 720x520.

However, when I run it on my Windows...

Posted Image

Sprite glitches, tile glitches, everything glitches. What in the world is happening? Is there a way to turn antialiasing or interpolation or whatever the game's graphics are doing off?

Edited by Tylerburrito, 09 May 2012 - 01:49 AM.

  • 0

#2 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1590 posts
  • Version:GM8.1

Posted 09 May 2012 - 01:55 AM

"Seamless tile scaling in GameMaker"
  • 0

#3 Tylerburrito

Tylerburrito

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 09 May 2012 - 01:56 AM

So why do the sprites look glitchy as well?

Edited by Tylerburrito, 09 May 2012 - 01:57 AM.

  • 0

#4 Furritus

Furritus

    Just another Ferret

  • GMC Member
  • 272 posts
  • Version:GM8

Posted 09 May 2012 - 02:10 AM

are those two different things, the brightness and colors seem off on one. but look through global game settings i thinkethere was something about interpolation in there
  • 0

#5 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1590 posts
  • Version:GM8.1

Posted 09 May 2012 - 04:36 AM

I thought you didn't like the black outlines on your transparent tiles.

The incorrect scaling on some pixels is the result of nearest-neighbor filtering. When the GPU tries to find the color of a given pixel, it finds a real-valued uv-coordinate pair (eg <0.7, 0.3>) for each pixel. It then chooses a pixel by multiplying by texture (Note: NOT SPRITE/BACKGROUND) width and height, then rounding down. (If it's outside the texture, it can either clamp or wrap the coordinates).
  • 0

#6 xot

xot

    media multimixer

  • Global Moderators
  • 4648 posts
  • Version:GM:Studio

Posted 10 May 2012 - 02:33 PM

ChevyRay has a pretty good solution to this sort of problem using surfaces. Drops right into most games without any other changes.

http://forums.tigsou...g86809#msg86809

It's a very useful technique that can be applied other kinds of post-processing effects.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users