2D Toolkit Forum

2D Toolkit => Support => Topic started by: steverock on June 03, 2013, 01:21:32 am

Title: not getting pixel perfect - troubleshoot?
Post by: steverock 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.
Title: Re: not getting pixel perfect - troubleshoot?
Post by: unikronsoftware 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)
Title: Re: not getting pixel perfect - troubleshoot?
Post by: steverock 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.
Title: Re: not getting pixel perfect - troubleshoot?
Post by: unikronsoftware 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.