How to get my sprites to have good antialiasing on rotation?

Get help using Construct 2

Post » Sun Oct 19, 2014 12:40 pm

When I make my sprites rotate, they get jagged edges. Is it possible to fix this? This is what it looks like now:

Image
B
10
S
2
G
1
Posts: 49
Reputation: 693

Post » Sun Oct 19, 2014 1:36 pm

The truth is that with in the editor there is some antialiasing that isn't applied when previewing in the browsers. Hadn't really noticed that before!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Sun Oct 19, 2014 2:09 pm

It looks like you've filled the images right to the edges. Hit 'crop' in the image editor and it adds a 1px transparent border around the edge. That allows for soft-edged blending along the image edges. Note that is not antialiasing, it's just linear sampling along the edge, but it looks similar and is far faster than an expensive fullscreen antialiasing effect.
Scirra Founder
B
399
S
236
G
89
Posts: 24,535
Reputation: 195,412

Post » Sun Oct 19, 2014 2:25 pm

That did the trick! Nice one, thanks @Ashley !
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Sat Nov 08, 2014 3:17 pm

I was having similar problem in my project. However, the solution solved my problem to achieve linear edges on pre-maid sprites - which is great :), i still got hard pixel steps on images that I loaded to the sprite on the go from the web :( . Is there any way to change sprite canvas size to add 1 transparent px on each side after loading an external image?
B
6
S
2
Posts: 14
Reputation: 478

Post » Sat Nov 08, 2014 5:27 pm

@KojotSan - no, you should just add the 1px border on the loaded images as well.
Scirra Founder
B
399
S
236
G
89
Posts: 24,535
Reputation: 195,412

Post » Mon Nov 10, 2014 12:30 am

I see... in that case I cover loaded images with additional pre-made frame sprite. It covers rough lines and gives better look :)

Thx for reply Ashley! Regards!
B
6
S
2
Posts: 14
Reputation: 478


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests