For creators building retro-style environments, hand-drawn character designs, or tile-based levels, maintaining the integrity of pixel art has historically been a significant challenge within Roblox، Previously, 3D surfaces within the engine automatically blended neighboring pixels, which often resulted in a soft, blurry appearance when textures were applied to meshes or decals، To address this, a new update introduces the Pixelated ResampleMode، This feature allows you to keep pixel art sharp on Roblox surfaces by rendering every source pixel as a crisp, distinct square instead of a blurred image.
keep pixel art sharp on Roblox: key details
What is Pixelated Resampling?
Pixelated resampling is an opt-in feature designed to bring the distinct style of pixel art from UI elements directly into your 3D world، Before this update, the only reliable way to prevent texture blur was to upscale your artwork significantly before uploading it to Roblox، This workaround was often inefficient, as it consumed extra memory without providing any genuine increase in visual detail، With the introduction of the Pixelated ResampleMode, you can now upload your textures at their original, intended dimensions، The engine will preserve the sharp edges of your artwork, allowing for cleaner, more intentional visual styles in your 3D assets.
How to Enable Pixelated Resampling in Roblox Studio
You can apply this new rendering mode directly to SurfaceAppearance, Decal, and Texture instances، The setting is disabled by default, meaning that your existing games and assets will remain visually unchanged until you intentionally switch the mode to Pixelated، To implement this sharp look, follow these specific steps in Roblox Studio:
- Open your project and locate the relevant asset in the Explorer window.
- If you are working with a mesh, ensure that you select the SurfaceAppearance child object. Note that the setting does not apply to the MeshPart itself, but rather to the SurfaceAppearance instance applied to it.
- Navigate to the Properties window and locate the Appearance section.
- Change the ResampleMode property from the Default setting to Pixelated.
For developers who prefer to handle configuration through code, you can also toggle this mode programmatically using Luau، For instance, if you have a script parented to a Decal, you can define the property directly:
local decal = script.Parentdecal،ResampleMode = Enum،ResamplerMode،Pixelated
Best Practices for Optimizing Pixel Assets
To maximize the quality and performance of your pixel art textures, it is essential to follow a few technical guidelines regarding file management and alignment، First and foremost, you should upload your pixel art at its original, native resolution، You no longer need to upscale 32×32 pixel images to 512×512 to fight blurriness، Uploading at the original size saves memory, even though the engine stores these textures uncompressed، Additionally, these textures do not currently stream in at lower resolutions, so they will remain fully loaded.
Second, if you are utilizing physically based rendering (PBR) maps with a SurfaceAppearance or Decal, it is critical to ensure that every map matches the dimensions of your primary color map، If your PBR maps are of different sizes, the engine will sample between pixels, which will cause your highlights and surface details to lose the precise alignment you are aiming for، When map sizes are consistent, these details will align exactly with your artwork.
Limitations and Considerations
It is important to understand that this feature is not universal for all 3D surface types in the engine، Currently, Pixelated resampling cannot be applied to MeshPart،TextureID, terrain, or MaterialVariant، If you need to add this effect to a mesh, you must use a SurfaceAppearance instance, a Decal, or a Texture.
Finally, while this setting ensures your textures remain sharp up close, the engine will still utilize mipmaps for distant viewing، Mipmaps are smaller, pre-filtered copies of the texture used for performance optimization، This means that if an object is very far away, your pixel art will still blend as expected, as is standard behavior for textures in 3D engines، By utilizing this new setting, you can create immersive, retro-inspired worlds while maintaining strict control over the visual presentation of your pixelated assets.
Source: Original report