edent / 3D-Screenshot-to-3D-Model

Quick script to transform screenshots of 3D movies into a 3D meshes
Other
34 stars 12 forks source link

3D Screenshot to 3D Model

Quick Python script to transform screenshots of 3D movies into a 3D meshes. See https://shkspr.mobi/blog/2018/04/reconstructing-3d-models-from-the-last-jedi for more details.

Usage

python3 screenshot_to_mesh.py screenshot.png

Will output a 3D mesh in PLY format. Images can be H-SBS (Side-By-Side) or OU (Over-Under).

Demo

From this screenshot:

Screenshot from the movie Finding Nemo. Two fish are swimming in the ocean.

To this mesh: The scheenshot is now in 3D. The fishes float away from the background.

The MGM Lion is roaring

To this mesh: The lion is now in 3D.

From this screenshot: Screenshot from the short film Paperman. A man stands in front of a post box.

To this mesh: The scheenshot is now in 3D.

From this screenshot: Screenshot from the movie Resident Evil: Retribution. People are crammed in a corridor.

To this mesh: The scheenshot is now in 3D.

Requirements

The code runs quickly, even on older hardware. It should take less than a minute to generate a mesh, even on a modest machine.

In order to run the software, you will need:

Copyright

This code is BSD. Please check the LICENSE file for contributors.

Screenshots

The screenshots in the samples folder fall under the UK's "Fair Dealing" exception. They are for the purposes of private study, data mining for non-commercial research, and for criticism & review of 3D movies.

More Info

See https://shkspr.mobi/blog/2018/04/reconstructing-3d-models-from-the-last-jedi for more details.