Jump to content
You must now use your email address to sign in [click for more info] ×

No filtering for pixel art image exports


Recommended Posts

Hi,
I've been using Designer for a while now, It's a great product which provides a quick turnaround on designs. However I often find myself requiring to create pixel art for 2D game projects which use either TGA or PNG formats with very small resolutions.

The Nearest Neighbour option for filter comes close, but it causes some aliasing on edges, which needs to manually be fixed in a raster editor, which makes things time consuming.

Would it be possible to add an export option with zero filtering to avoid pixel bleed and get crisp pixels?

Link to comment
Share on other sites

7 hours ago, That3DGuy said:

Would it be possible to add an export option with zero filtering to avoid pixel bleed and get crisp pixels?

I am confused. How could a pixel have anything but a crisp edge?

Are you making (large) drawings and then resizing to a (much) smaller size?

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

8 hours ago, That3DGuy said:

Would it be possible to add an export option with zero filtering to avoid pixel bleed and get crisp pixels?

I'm not an expert on the kind of art it sounds like you're creating, and in fact I have very little experience with it. But I wonder if part of your problem might have something to do with getting the artwork properly aligned to the pixel grid.

It might be helpful to see a sample .afdesign document and also the file you exported from it.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

21 hours ago, Old Bruce said:

I am confused. How could a pixel have anything but a crisp edge?

Are you making (large) drawings and then resizing to a (much) smaller size?

The resolutions usually sit between 16x16 up to 64x64 on average for characters and objects, 128x128 for world texture atlases. The pixels cause a bleed/aliasing around it which is undesired for pixel art.

20 hours ago, walt.farrell said:

I'm not an expert on the kind of art it sounds like you're creating, and in fact I have very little experience with it. But I wonder if part of your problem might have something to do with getting the artwork properly aligned to the pixel grid.

It might be helpful to see a sample .afdesign document and also the file you exported from it.

 

I have all the snapping features and pixel alignment enabled by default. In the test I set the shape size to match exact resolution as integers, removing any ( floating/double ) values, e.g 18x18 instead of 18,2x18,2, which should eliminate any possibility of pixel/color/transparency bleeding.

I'm including a basic afdesign test file, including the output, then comparing it to the png export from a recreation of the image in Krita. I understand both applications are fundementally different since one is vector and the latter raster based. Not sure if it's easy to filter the results to crunch the pixel on output or lower the vector resolution on the shapes itself.

The example files attached is quite small in resolution so some preview applications may display it with blurry edges. Best viewed in a raster application.
 

krita_pixel_brush.png Krita Pixel brush output - nearest neighbour

output.png Designer output - nearest neighbour

output_shown_in_krita.PNG Designer output shown in Krita.

settings.PNG

 

OpenGameArt.org has many examples for pixel art. 

basictest.afdesign

Link to comment
Share on other sites

Thanks. I think I'm still not sure exactly what you want.

But if you want to eliminate anti-aliasing completely you can do that. Select each layer in your design, then click on the cog icon (Tooltip: Blend Ranges) in the header of the Layers panel between the layer blend mode and the lock icon. You can then turn off anti-aliasing for that layer:

image.png.efc0ec92d0d05d11ad328e1900080788.png

Does that get you what you want?

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

7 minutes ago, walt.farrell said:

Select each layer in your design, then click on the cog icon (Tooltip: Blend Ranges) in the header of the Layers panel between the layer blend mode and the lock icon. You can then turn off anti-aliasing for that layer:

Note that you can also leave it set to Inherit for the existing layers, but group them, and set it once on the group - the layers within the group will then "inherit" the setting from the group.

Link to comment
Share on other sites

35 minutes ago, walt.farrell said:

Thanks. I think I'm still not sure exactly what you want.

But if you want to eliminate anti-aliasing completely you can do that. Select each layer in your design, then click on the cog icon (Tooltip: Blend Ranges) in the header of the Layers panel between the layer blend mode and the lock icon. You can then turn off anti-aliasing for that layer:

image.png.efc0ec92d0d05d11ad328e1900080788.png

Does that get you what you want?

 

Thank you so much Mr.Farrell for your help and support! That solved the problem and it looks crisp after the export. I never even bothered to click on that cog icon. I should spend more time learning the software. 

26 minutes ago, fde101 said:

Note that you can also leave it set to Inherit for the existing layers, but group them, and set it once on the group - the layers within the group will then "inherit" the setting from the group.

Thank you fde101 for the tip, this is going to make the process much more streamlined.

So grateful for Serif's Affinity community. :)

Link to comment
Share on other sites

You're welcome. I'm happy that worked for you :)

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.