How to scale TileMaps without losing image quality?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Apex

I know how to scale sprites without losing the quality → Reimport. However, I’m using a TileMap for a background, and I want to scale that to 4x the size(because I scaled my Player to that size, and reimported it)

How can I reimport images into a tilemap without degrading the quality? There’s an option for single sprites, but I can’t see anything for TileMaps.

Could you upload a screenshot or two of the scaled-up TileMap being used as your background? As an experiment, I tried to replicate what I think you’re running into in a sample project. Using an incredibly small (30x5 pixels) graphic I had lying around, I tried seeing if turning the Filter option in the import settings for this graphic would have any effect on the cells that have been drastically scaled up.

Here’s the graphic I’m using for the TileMap:
enter image description here
(So small!)

Here’s a screenshot of the scene using the graphic with Filter turned on:
enter image description here

Here’s a screenshot of the scene using the graphic with Filter turned off:
enter image description here

I up-scaled my cell size to 32 times their original size so it’d fit nicely in a default 2D project space.
Notice how the super up-scaled graphic looks awfully blurry with Filter turned on. But then, turning Filter off gives us sharp pixels.

“Works on my machine” is never a satisfying answer so I feel like I’m not fully understanding your problem yet.

DownloadFLD | 2022-07-28 00:18

Hello, I’ll attach an image now, I meant to do that earlier.

Nothing on the import tab when tilemap is selected - Album on Imgur

Your first image is exactly what I have there. I don’t know how to turned off the filter. It seems as if you went to the import tab. But what I go there, it’s just an empty area

Nothing on the import tab when tilemap is selected - Album on Imgur

Apex | 2022-07-28 07:27

:bust_in_silhouette: Reply From: Apex

I just realised my problem. I wanted to reimport my tileset with the filter turned off so that there was no blurring. However, when my TileMap was selected, I went to the import tab and nothing was there. I realised that I’m supposed to select the actual image file from the file explorer at the bottom, and re-import that.

Thank you so much for trying to help. Incredibly appreciated. :slight_smile:

Ah, easy mistake! Glad you figured it out!

DownloadFLD | 2022-07-28 16:56