Hello Guest

Author Topic: not getting pixel perfect - troubleshoot?  (Read 4984 times)

steverock

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
not getting pixel perfect - troubleshoot?
« on: June 03, 2013, 01:21:32 am »
I'm making a hex-grid game, and I need the hex tiles to line up perfectly. However, I'm not getting that right now. I'm using point sampling, I've confirmed that my camera ortho settings match the collection, etc.  Is there anything else I should try? Should I use the tk2dcamera to get perfect drawing?

My target res is 800x450, and my ortho size is 4.5. I'm using 4.5 so there's an easy relationship between pixels and world units (I should use 2.25 to make it 1:1, but 2:1 is fine for now). Is there a better way to do this?

I would like to scale my sprites by a constant factor (to get a low-res look), but even with 1:1 scaling it's still not pixel perfect. It appears to be aliasing.

Here's an example. Left is my original sprite, and right is what it looks like in game with 1:1 scale: http://imgur.com/b6hXmeU You'll notice his feet and hand are gone, and he appears fatter :)

Cheers.
« Last Edit: June 03, 2013, 01:25:13 am by steverock »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: not getting pixel perfect - troubleshoot?
« Reply #1 on: June 03, 2013, 10:37:53 am »
What resolution / aspect ratio is your game window set to?
Does the sprite look correct in scene view (It should)

steverock

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: not getting pixel perfect - troubleshoot?
« Reply #2 on: June 04, 2013, 08:27:18 am »
Game window is maximized, 800x450. It looks the same in the web-build.

The sprite DOES look correct in the scene view.

I'm using mostly default settings, except I turned point sampling on.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: not getting pixel perfect - troubleshoot?
« Reply #3 on: June 04, 2013, 09:53:57 am »
The fatness doesn't make any sense, btw. Can you create a repro sample for me, please? support - at - unikronsoftware dot com, if possible.