Monday, April 22, 2019

2d to 3d conversion - Bruce Lee

This post is an example that shows how to use 2d to 3d Image Conversion - The 3d Converter to create a depth map semi-automatically. I have uploaded on dropbox the gimp file which contains all the layers and the paths: bruce_lee.xcf. See 2d to 3d Image Conversion - The 3d Converter for how to use "The 3d Converter".

This is what the3dconverter_input.txt looks like:
reference_rgb_image.png
sparse_depthmap_rgba_image.png
dense_depthmap_image.png
gimp_paths.svg
ignored_gradient_rgba_image.png
emphasized_gradient_rgba_image.png
edge_rgba_image.png
0.0

All you need is a reference image (layer reference_rgb_image saved as reference_rgb_image.png), an "edge image" (layer edge_rgba_image saved as edge_rgba_image.png), a sparse depth map (layer sparse_depthmap_rgba_image saved as sparse_depthmap_rgba_image.png), and a bunch of equal_depth and relative_depth paths (saved as gimp_paths.svg).

Don't worry about ignored_gradient_rgba_image.png and emphasized_gradient_rgba_image.png as those are not used and therefore don't need to exist.


Reference image.


Dense depth map produced by The 3d Converter.


Wiggle/wobble created by Wiggle Maker.

No comments:

Post a Comment