Register

Pixel Perfect

An Add-on Module for Foundry Virtual Tabletop

Author: Emily3k Project Source Foundry Versions 11 to 12 (Verified 12) Last Updated 3 months, 1 week ago

Supported Foundry Versions Latest Release Download Count Forge Installs

Pixel Perfect - Pixel Art Scaling

Pixel Perfect enhances pixel art rendering in Foundry VTT, allowing for scaling, skewing, and rotating pixel art without common artifacts, all while maintaining sharpness!

No longer do we have to choose between a blurry mess or crunchy jittery pixels! Pixel Perfect applies a filter to your tokens and tiles to bring out the pixel art goodness. Mobile Compatible! Works with animated sprites!

Examples

(Below Token Art by Retrograde Minis)

Foundry's default scaling method looks good at a distance, but leaves your art blurry when close up.


PIXEL PERFECT ZOOMED IN

 

The other common method, Nearest Neighbor filtering, looks good close up, but at a distance leaves pixels looking crunchy, and will produce temporal artifacts leading to high levels of pixel jitter in motion.

 

PIXEL PERFECT ZOOMED OUT

 

Pixel Perfect gives you the best of both worlds! Sharp art up close, smooth art from a distance, and ultra temporal stability!

Technical details

Pixel Perfect applies a PIXI.Filter to all tokens and tiles in the scene, to re-sample the original texture using a glsl shader based off of t3ssel8r's pixel art scaling shader for unity. As we're applying a filter to a lot of objects, this could come with some level of performance drop. I haven't managed to profile exactly what kind of performance hit this might entail. However, if you want your pixel art to shine, there's no substitute.


Based on my limited knowledge of foundry, using a filter seemed like the best way to make this module as widely compatible as possible. Currently there's only a single line that needs to be treated differently between v11 and v12, and it doesn't even have anything to do with the filter. Doing some sort of deeper overwrite of foundry functions would likely be a lot more unstable and require a lot more work to fix compatibility issues.

Known Issues

Known Module/System Incompatibilities

Future Updates

Categories

Available Versions

  1. Version 0.1.2

    3 months, 1 week ago
    Foundry Version 11 - 12 (Verified 12) Manifest URL Read Notes
  2. Version 0.1.1

    3 months, 4 weeks ago
    Foundry Version 11 - 12 (Verified 12) Manifest URL Read Notes