Skip to content

vossr/Looking-glass-hologram-rendering-api

Repository files navigation

This abstracts the device api and lenticular rendering, so user can write a quilt renderer to show the hologram on the device. Also implemented basic rgbd to quilt renderer.

Usage

python3 -m pip install -e .

Inputs are cv2 images

To render image or already projected lenticular frame

hologram_rendering.render_image(image)

To render a quilt
tile dimensions should match your specific device

hologram_rendering.render_quilt(quilt)

Displacement map implementation.
offset_scale 0 to 1
rot_max_rad radians

hologram_rendering.render_rgb_depth(rgb, depth, offset_scale, rot_max_rad):

Horizontal camera reprojection methods

After depth estimation
The main issue is of course missing color data behind nearby geometry

Some other ideas i had

View interpolation

Render left- and rightmost cameras, and interpolate rest with camera reprojection (or sbs to hologram)

Single Pass Multiview Rendering

maybe with mesh shaders, render to all quilts with single pass

Lenticular quilt culling

irl facecam that object tracks tracks eyes, so can render only needed views.
for heavy raytracing or something



LICENSE: CC0