Hi all,
Experimenting with XPU for production and was curious if anyone has found a way to bake in camera metadata and extract it in Nuke for compositing. We are traditionally a V-Ray house and V-Ray bakes in metadata that allows you to recreate the CG camera in Nuke. This is extremely handy because it cuts out the need to export an .abc/.usd/.fbx camera for each shot and is just self contained inside of the image sequence.
- Tom
Camera metadata in Karma render
1454 10 1- frame_48
- Member
- 11 posts
- Joined: Feb. 2019
- Offline
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
- Heileif
- Member
- 132 posts
- Joined: Jan. 2015
- Offline
- tomteller
- Member
- 10 posts
- Joined: March 2020
- Offline
Heileif
It's possible to add custom metadata that will be added to the exr, as long you use the improved exr driver.
I can try to make something with the python lop node when I have time and post here. Would be great to have this.
That would be fantastic - definitely something we love about V-Ray is the built in functionality of this. Very useful indeed.
- AslakKS
- Member
- 160 posts
- Joined: Feb. 2016
- Offline
- protozoan
- Member
- 1630 posts
- Joined: March 2009
- Offline
There's a tutorial for adding arbitrary metadata to your exr outputs, check this out (note: you need to read the very bottom of the page, where it says "19.5 upgrade"):
https://noahhaehnel.com/blog/custom-metadata-in-solaris/ [noahhaehnel.com]
https://noahhaehnel.com/blog/custom-metadata-in-solaris/ [noahhaehnel.com]
Martin Winkler
money man at Alarmstart Germany
money man at Alarmstart Germany
- tomteller
- Member
- 10 posts
- Joined: March 2020
- Offline
AslakKS
It should already be there by defaultWorldToCameraandWorldToNDCImage Not Found
edit:
But I guess you want the camera metadata such as f-stop/lens/filmback size/shutter length
edit 2:
What about just embedding the camera as a camera.usda?
Thanks guys! I'll look into this. Kicking the camera out as a USD would also work, having it as part of the EXR is nice to cut down on separate files but it would be easy enough to automatically load in the camera into a nuke script when you bring in the latest render.
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
tomteller
Thanks guys! I'll look into this. Kicking the camera out as a USD would also work, having it as part of the EXR is nice to cut down on separate files but it would be easy enough to automatically load in the camera into a nuke script when you bring in the latest render.
How are you getting the camera into solaris? Can you import the same file into nuke, or was it created in Houdini?
- tomteller
- Member
- 10 posts
- Joined: March 2020
- Offline
- Heileif
- Member
- 132 posts
- Joined: Jan. 2015
- Offline
- tomteller
- Member
- 10 posts
- Joined: March 2020
- Offline
Sure thing, please see attached (contains full passes + camera metadata). This is the script that we use in Nuke to extract the camera. https://gist.github.com/kpprt/cb07c3c196c5f4937bde6760b483dc82 [gist.github.com]
-
- Quick Links