Skip to content

This software renders a canvas image in 3D space by using its corresponding depth map.

License

Notifications You must be signed in to change notification settings

valillon/DepthPainter

Repository files navigation

Depth Painter

This software renders a canvas image in 3D space by using its corresponding depth map. It also includes some cool animations and camera traveling.

Meninas

See some examples in A Deep Look Inside Paintings.

Dependencies

OpenFrameworks and optionally ofxLeapMotion to navigate through.

Camera projection

A focal projection locates the points (pixels) in the 3D space according to:

  • focal: distance from the camera to the canvas.
  • extrusion: separation factor applied to the canvas depth range.

High focal values converge the projection to a parallel projection.

Sources

This repository does not contain audio files, neither images or depth maps. Be sure to include your own sources in /bin/data and load them properly in setupAudio() and loadExample(). Awesome depth maps can be generated with MegaDepth.

Notes

Comment the macros SOUND_ON, ANIMATIONS_ON, LEAP_MOTION_ON to disable undesired functionalities. After launching the app, type h for a complete list of key-stroke actions.


Rafael Redondo (c) 2019.

About

This software renders a canvas image in 3D space by using its corresponding depth map.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published