IndiWeb - Pixel Grid: Exact Pixel Look

Pixel Grid gives a 3D game an exact pixel look. The world renders small and is scaled up by a whole number, picked for the window it is drawn in, so every game pixel is a true square of N x N screen pixels: at 720p, 1080p, 1440p and 4K, in a window you drag, and in fullscreen.

It is not a post process material. A post process pixelates a picture that was already rendered at full resolution. This renders fewer pixels in the first place, and the squares are exact instead of resampled.

What is in it

One reference number. Lines: the game pixels on the short side of the window. 270 gives 480 x 270 on 1080p and 4K; 360 is exact on 720p, 1080p, 1440p and 4K alike.

A whole scale per window, every frame. The subsystem reads the window's real size and picks the nearest whole scale. Dragging the window, maximizing, Alt+Enter and a packaged game are one code path.

No uneven columns. The few pixels a window does not divide by are cut off the view, so no game pixel is drawn narrower than the others.

Nothing to set up. Enable the plugin and play: no viewport class, no ini edits. Anti-aliasing and the upscale filter are switched for you while the look is on and given back when it is off.

One node for an options menu. Set Enabled and Set Lines, with a flag that remembers the player's choice on that machine.

A pixel font with no font asset. A 5 x 7 alphabet as a table in code: space to ~, and Latin letters with a mark draw as the plain letter.

Pixel Grid Text for UMG and Slate. One line of text sized in game pixels. It follows the grid's scale and undoes the DPI scale, so a font pixel is always a whole number of screen pixels.

Stands aside for capture tools. A screen percentage set by hand (console, command line) wins, so before-and-after shots and render tools keep working.

Blueprint and C++. An event fires when the grid changes, to resize your HUD.

Automated tests. 5 automation tests ship with the plugin; one checks every window size up to 4K at twelve scales.

No content: nothing to cook.

How you use it

1. Enable the plugin. The look is on.

2. Pick Lines in Project Settings > Plugins > Pixel Grid.

3. Optional: add Pixel Grid Text widgets to your HUD, and a switch to your options menu.

What it does not do

It is the grid only: no dithering, no colour palette, no outlines. Those are a post process of your own on top.

One window, one player. The scale is one engine setting for the whole process; split screen is not trimmed.

It is a real low resolution render: thin geometry flickers as it crosses pixels, and soft post effects blur the squares. Effects built on temporal accumulation show more noise with anti-aliasing off; a setting keeps your anti-aliasing at the cost of softer pixels.

The font has Latin letters only, one letter size, one line per widget.

The scalability resolution scale has no effect while the plugin is installed.

Technical details

Code plugin: one runtime module (PixelGrid). No content, no textures, no third party code.

Built and tested on Unreal Engine 5.8.3, Windows 64-bit.

Network replicated: not applicable (rendering only).

Documentation: Docs/PixelGrid.md in the plugin.

Created with AI

The C++ code, the letters of the pixel font, automated tests, demo, documentation and these listing texts were written with a generative AI coding assistant, from the pixel look of the publisher's own game, and checked by building the plugin, running its automated tests and filming a demo show. The video and the pictures are captures of the plugin running in that demo. The plugin contains no textures or audio and no third party content.