How to generate Deep images in Houdini for doing deep compositing on Nuke
Deep Image Compositing
25340 23 6- sabareeshrg
- Member
- 33 posts
- Joined: 11月 2008
- Offline
- Alanw
- Member
- 320 posts
- Joined: 8月 2007
- Offline
sabareeshrg
How to generate Deep images in Houdini for doing deep compositing on Nuke
You should be aware that Nuke only supports Pixar's RenderMan (DTEX) files for deep compositing at the current time.
In the future, OpenEXR 2.0 should provide a single format that all renderers will take advantage of, but this will take time.
If you are using prman, then youll need to write an Ri Filter, or possibly a RIB Hook for Houdini's output driver. soho does not currently provide a means for rendering DTEX files used for deep compositing.
- koen
- Member
- 793 posts
- Joined: 4月 2020
- Offline
I think people at fuel where working on a rat dcm reader for nuke, with the intention to open source it.
In h12 Sidefx did a great thing by having tools that work with just images ( including deep rats) only check if you have a Houdini license, but not check one out. So the reader should not take a Houdini license anymore.
That should help while we all wait for openexr 2.0.
Cheers,
Koen
In h12 Sidefx did a great thing by having tools that work with just images ( including deep rats) only check if you have a Houdini license, but not check one out. So the reader should not take a Houdini license anymore.
That should help while we all wait for openexr 2.0.
Cheers,
Koen
- wolfwood
- Member
- 4271 posts
- Joined: 7月 2005
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- wolfwood
- Member
- 4271 posts
- Joined: 7月 2005
- Offline
SYmek
Cortex [code.google.com] apparently does Rat->dtex conversion.
And works nicely, but only supports the Color and Depth channels. It also serves as a great example. Highly recommended.
if(coffees<2,round(float),float)
- andrewk.imageengine
- Member
- 48 posts
- Joined: 3月 2011
- Offline
Wolfwood
And works nicely, but only supports the Color and Depth channels.
If I recall, that limitation is because I couldn't figure out how to create a RAT with more channels at the time. Cortex's format supports arbitrary channels, as does the DTEXDeepImageWriter, so it should be trivial to add aribitrary channel support to the RATDeepImageReader, if you have an example to work with.
In any case, Nuke's dtexDeepReader only supports RGBA anyways, so it would all be for naught I suppose…
- wolfwood
- Member
- 4271 posts
- Joined: 7月 2005
- Offline
andrewk.imageengineWolfwood
And works nicely, but only supports the Color and Depth channels.
If I recall, that limitation is because I couldn't figure out how to create a RAT with more channels at the time. Cortex's format supports arbitrary channels, as does the DTEXDeepImageWriter, so it should be trivial to add aribitrary channel support to the RATDeepImageReader, if you have an example to work with.
In any case, Nuke's dtexDeepReader only supports RGBA anyways, so it would all be for naught I suppose…
Actually I think up until 12.0.581 the deep camera rasters planes were completely corrupt anyway. But its fixed now.
I think I just used the DDImage::setInfo() to add the extra channels, at least in Nuke 6.3v6.
That said….. the size of the deep camera maps with loads of deep rasters. Mother of God.
if(coffees<2,round(float),float)
- vlow
- Member
- 9 posts
- Joined: 4月 2012
- Offline
Hi all,
i looked at the cortex page but as i don't have much programing experience, I'm kinda lost as to how to incorporate these libraries to work with the conversion.
could someone explain a simple walk through for this?
I hope to be able to go through the process from houdini to nuke with your help!
Thanks.
i looked at the cortex page but as i don't have much programing experience, I'm kinda lost as to how to incorporate these libraries to work with the conversion.
could someone explain a simple walk through for this?
I hope to be able to go through the process from houdini to nuke with your help!
Thanks.
- andrewk.imageengine
- Member
- 48 posts
- Joined: 3月 2011
- Offline
vlow
i looked at the cortex page but as i don't have much programing experience, I'm kinda lost as to how to incorporate these libraries to work with the conversion.
Thanks.
Once you build the Cortex libs, you can simply launch python (or hython) in a away that both the prman and Houdini libs are accessible. From there it's just:
import IECore
import IECoreRI
import IECoreHoudini
IECore.DeepImageConverter()( inputFile=“existingFile.rat”, outputFile=“newFile.dtex” )
If you have more Cortex specific questions, you can email cortexdev@googlegroups.com
- vlow
- Member
- 9 posts
- Joined: 4月 2012
- Offline
andrewk.imageenginevlow
i looked at the cortex page but as i don't have much programing experience, I'm kinda lost as to how to incorporate these libraries to work with the conversion.
Thanks.
Once you build the Cortex libs, you can simply launch python (or hython) in a away that both the prman and Houdini libs are accessible. From there it's just:
import IECore
import IECoreRI
import IECoreHoudini
IECore.DeepImageConverter()( inputFile=“existingFile.rat”, outputFile=“newFile.dtex” )
If you have more Cortex specific questions, you can email cortexdev@googlegroups.com
Thanks i will look into this further…Cheers for the reply.
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
Wolfwood
If you have a programmer handy you can add support for the deep camera maps fairly easily to Nuke using IMG_DeepPixelReader and some of their NDK's example Deep Readers.
I managed to make a try (looks like I'm about to need it very soon):
http://code.google.com/p/rat4nuke/ [code.google.com]
OIIO plugin for Houdini images would be handy too. Code still needs some attention though. Let me know if anyone feels like he/she'd like to contribute or something to make it ready…
- wolfwood
- Member
- 4271 posts
- Joined: 7月 2005
- Offline
SYmek
I managed to make a try (looks like I'm about to need it very soon):
http://code.google.com/p/rat4nuke/ [code.google.com]
OIIO plugin for Houdini images would be handy too. Code still needs some attention though. Let me know if anyone feels like he/she'd like to contribute or something to make it ready…
Still buggy. In particular, for some reasons, if you read in any Houdini file first, before any other image, then opening different format will crash Nuke. Doing it in reverse, works fine.
That's cause Houdini's UT library is loading up its various image dso's like OpenEXR, which are stomping on Nuke's. To fix that-
setenv HOUDINI_DISABLE_IMAGE_DSO 1
if(coffees<2,round(float),float)
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- wolfwood
- Member
- 4271 posts
- Joined: 7月 2005
- Offline
- zdimaria
- Member
- 390 posts
- Joined: 1月 2012
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- ovspianist
- Member
- 1 posts
- Joined: 3月 2009
- Offline
- zdimaria
- Member
- 390 posts
- Joined: 1月 2012
- Offline
- alexandru_p
- Member
- 27 posts
- Joined: 6月 2013
- Offline
-
- Quick Links