Optics Research in VR
Per-eye rendering in Unity and SteamVR, built to explore color perception and binocular rivalry.
At the Kats Research Group, I built VR prototypes to explore color perception and what happens when each eye receives different information. Unity and SteamVR let me create static-image and moving-object comparisons in a consumer headset.
This work contributed to the research behind my co-authored Journal of Optics paper on converting ultraviolet images into visible light, published in 2021.
Two views, one scene
I used a shared camera prefab with separate layers, culling masks, and stereo targets for each eye. Both eyes see the same room, but chosen images or objects reach only one of them. All three settings have to agree. In fact, the project history has exactly that mistake: LeftEyeCanvas sat on layer 9, the right eye’s layer, until it was moved to layer 8.
A shared clock, different motion
For the dynamic demo, I gave each eye its own cube and let the operator select a movement axis. The saved scene starts with matching X-axis motion; selecting Y for the left cube produces the orthogonal comparison shown below.
One thing I learned here is that position and phase need separate controls. Pressing Space recenters the cubes for a single update, but the motion picks up again from the shared clock, so you can’t really restart a trial. A repeatable experiment needs explicit start, pause, and reset.
Color perception and the research connection
Alongside the rivalry demo, I explored color vision deficiency by comparing reference and transformed images. The journal paper is about a physical optical system, and one idea it discusses is sending the converted spectral information to only one eye, so it stays distinguishable from ordinary visible content. Per-eye control gave me a way to try that idea in a consumer headset.
The prototype controls which stimulus each eye receives. In other words, it decides what each eye is shown, but it doesn’t measure what the person actually perceives. That would need calibrated displays, recorded responses, and a proper study protocol, and those are what I would build next.