-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about reproducing the demo #3
Comments
Hi! Glad you liked the renders in the video, I made all of them in Blender. Unfortunately, as I was just manually rendering things right before the CVPR deadline, my However, I should have some helpful code snippets for turning the depth maps into As for repositioning/refocusing, this is all done through manipulating the camera object in Blender. There's a ton of really good tutorials online (e.g. https://youtu.be/Y8-6X0m5hrM for simulating depth-of-field effects) so I recommend going through those if you're interested in rendering these kinds of scenes. It also has a Python API that you can use to automate rendering, but I am not very familiar with it. |
Thank you for your response! However, I have another question. Can these amazing effects be created with just depth data? Can I create these effects with monocular data + depth data? |
Yeah, you can turn any image + depth into a mesh to port to blender. Here's the code I use to meshify a depth map, basically turn each square of pixels into a pair of connected triangles. You'll need to have open3d installed.
You can then import this mesh directly into Blender. To render the colors correctly you should use the Vertex Color shader node and add a Gamma correction of ~2, see: The render will then look something like this: If the depth map looks bumpy or squished, try playing with median filter and thresholding/rescaling. Best of luck! |
Thank you for your detailed explanation! |
Hi there, I am very interested in the demo showed on the project page, particularly the parts related to repositioning, refocusing, and relighting. I was wondering if it would be possible to open-source the code for the demo?
The text was updated successfully, but these errors were encountered: