An open API service indexing awesome lists of open source software.

https://github.com/mukaschultze/facebook-3d-photo-unity

Unity extension to take 3D screenshots for Facebook
https://github.com/mukaschultze/facebook-3d-photo-unity

3d facebook screenshots shaders unity

Last synced: about 2 months ago
JSON representation

Unity extension to take 3D screenshots for Facebook

Awesome Lists containing this project

README

          

# Facebook 3D Photos from Unity

This tool takes screenshots from Unity along with the depth texture, you can use these images to create 3D photos on Facebook to showcase your game.

"3D photos" is just a fancy name for the parallax effect on Facebook, it's not real 3D.

## How to use

- Copy the `Facebook3DPhotos.cs` and `DepthDumpShader.shader` files to your project
- Make sure you have a camera with the `MainCamera` tag
- Run the `3D Photos/Take Screenshot` menu item
- Open the project folder and locate the `screenshot.png` and `screenshot_depth.png` files
- Upload the two files to Facebook, make sure the depth file contains the `_depth` suffix, otherwise it won't work
- *Voilá!* Facebook will generate a 3D photo automatically

![GIF](screenshot.gif "GIF")
![Screenshot](screenshot.png "Screenshot")
![Depth](screenshot_depth.png "Depth")

## License

MIT