Skip to content
jakub-parczynski / portfolio
← back to projects
released· open source

Eye Diseases Simulator

A mixed reality app that shows your real surroundings through the eyes of a person with one of 11 eye conditions: the passthrough camera feed is processed in real time in HLSL shaders, and the condition is picked from a hand menu.

my role

Solo coursework project for an Image Processing class. I built everything: a GPU image processing pipeline for the camera feed (HLSL, Render Dependency Graph), simulating colour blindness, cataract, glaucoma, AMD, myopia, hyperopia and more, depth-dependent blur from the Depth API and a C++ hand menu.

challenge → solution

  1. challenge

    Refractive errors (myopia, hyperopia, presbyopia) blur the image depending on distance, but the app only gets a flat camera image.

    → solution

    A 40×30 grid of rays cast against Depth API data (MRUK) builds a 1/d vergence map in an R16F texture. Using a thin-lens model and the accommodation range (Hofstetter's formula) I compute per-pixel defocus in diopters, and the shader interpolates between the sharp image and two Gaussian blur levels.

  2. challenge

    All effects (blurs, masks, colour matrices, glare) have to run live on the headset, on a 1280×960 camera feed.

    → solution

    An HLSL pipeline on the Render Dependency Graph: downsampling, a separable Gaussian blur (horizontal, then vertical) and a single composite shader that combines every effect.

gallery

// Screenshots coming soon.