| View previous topic :: View next topic |
| Author |
Message |
sabareeshrg Talkative

Joined: 20 Nov 2008 Posts: 29

|
Posted: Tue Apr 03, 2012 4:11 am GMT Post subject: Deep Image Compositing |
|
|
| Code: | How to generate Deep images in Houdini for doing deep compositing on Nuke
|
_________________ sab |
|
| Back to top |
|
 |
Alanw Houdini Expert

Joined: 06 Aug 2007 Posts: 320

|
Posted: Tue Apr 03, 2012 9:18 am GMT Post subject: Re: Deep Image Compositing |
|
|
| sabareeshrg wrote: | | Code: | 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.
_________________ www.alan-warren.com |
|
| Back to top |
|
 |
koen Houdini Master
Joined: 31 Jul 2005 Posts: 589 Location: Vancouver

|
Posted: Tue Apr 03, 2012 10:33 am GMT Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Wolfwood Village Idiot

Joined: 27 Feb 2003 Posts: 3601 Location: North of Canada

|
Posted: Tue Apr 03, 2012 10:36 am GMT Post subject: |
|
|
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.
_________________ if(coffees<2,round(float),float) |
|
| Back to top |
|
 |
SYmek Houdini Guru

Joined: 13 Mar 2003 Posts: 1240

|
Posted: Tue Apr 03, 2012 11:51 am GMT Post subject: |
|
|
| Cortex apparently does Rat->dtex conversion.
|
|
| Back to top |
|
 |
Wolfwood Village Idiot

Joined: 27 Feb 2003 Posts: 3601 Location: North of Canada

|
Posted: Tue Apr 03, 2012 1:35 pm GMT Post subject: |
|
|
| SYmek wrote: | | Cortex 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) |
|
| Back to top |
|
 |
andrewk.imageengine Talkative
Joined: 08 Mar 2011 Posts: 44 Location: Vancouver

|
Posted: Tue Apr 03, 2012 2:02 pm GMT Post subject: |
|
|
| Wolfwood wrote: | | 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...
|
|
| Back to top |
|
 |
Wolfwood Village Idiot

Joined: 27 Feb 2003 Posts: 3601 Location: North of Canada

|
Posted: Tue Apr 03, 2012 2:38 pm GMT Post subject: |
|
|
| andrewk.imageengine wrote: | | Wolfwood wrote: | | 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.
| Description: |
|
| Filesize: |
15.77 KB |
| Viewed: |
4053 Time(s) |

|
_________________ if(coffees<2,round(float),float) |
|
| Back to top |
|
 |
vlow Lurker

Joined: 11 Apr 2012 Posts: 9 Location: Bournemouth, UK

|
Posted: Wed Apr 11, 2012 9:25 pm GMT Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
andrewk.imageengine Talkative
Joined: 08 Mar 2011 Posts: 44 Location: Vancouver

|
Posted: Thu Apr 12, 2012 11:52 am GMT Post subject: |
|
|
| vlow wrote: |
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
|
|
| Back to top |
|
 |
vlow Lurker

Joined: 11 Apr 2012 Posts: 9 Location: Bournemouth, UK

|
Posted: Fri Apr 13, 2012 11:18 am GMT Post subject: |
|
|
| andrewk.imageengine wrote: | | vlow wrote: |
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.
|
|
| Back to top |
|
 |
SYmek Houdini Guru

Joined: 13 Mar 2003 Posts: 1240

|
Posted: Fri May 18, 2012 10:30 am GMT Post subject: |
|
|
| Wolfwood wrote: | | 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/
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...
|
|
| Back to top |
|
 |
Wolfwood Village Idiot

Joined: 27 Feb 2003 Posts: 3601 Location: North of Canada

|
Posted: Fri May 18, 2012 2:12 pm GMT Post subject: |
|
|
| SYmek wrote: |
I managed to make a try (looks like I'm about to need it very soon):
http://code.google.com/p/rat4nuke/
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... |
| Quote: | | 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) |
|
| Back to top |
|
 |
SYmek Houdini Guru

Joined: 13 Mar 2003 Posts: 1240

|
Posted: Fri May 18, 2012 5:28 pm GMT Post subject: |
|
|
| Ah so, makes sense! Thank you Wolfwood!
|
|
| Back to top |
|
 |
Wolfwood Village Idiot

Joined: 27 Feb 2003 Posts: 3601 Location: North of Canada

|
Posted: Fri May 18, 2012 6:26 pm GMT Post subject: |
|
|
| SYmek wrote: | | Ah so, makes sense! Thank you Wolfwood! |
Bah, and where are my manners. Thanks for putting together this Google Code project! The community thanks you!
_________________ if(coffees<2,round(float),float) |
|
| Back to top |
|
 |
zdimaria Houdini Expert

Joined: 03 Jan 2012 Posts: 358

|
Posted: Fri May 18, 2012 8:02 pm GMT Post subject: |
|
|
Yes, Thank you SYmek!
_________________ www.zacharydimaria.com |
|
| Back to top |
|
 |
SYmek Houdini Guru

Joined: 13 Mar 2003 Posts: 1240

|
Posted: Mon May 21, 2012 3:28 am GMT Post subject: |
|
|
| Wolfwood wrote: |
Bah, and where are my manners. |
Ah, well, at least you've already contributed! (and I was actually hoping you give some advices and maybe code fixes...). Thank you!
|
|
| Back to top |
|
 |
ovspianist Lurker
Joined: 21 Mar 2009 Posts: 1

|
Posted: Sat Dec 15, 2012 7:07 am GMT Post subject: |
|
|
Now that Nuke 7.0 supports OpenEXR deep format, how about houdini? How do I render out deep images for nuke to comp?
Thx!
|
|
| Back to top |
|
 |
zdimaria Houdini Expert

Joined: 03 Jan 2012 Posts: 358

|
Posted: Thu Jan 24, 2013 9:56 am GMT Post subject: |
|
|
I am also wondering this. I understand how to convert rats to dtex to bring into nuke, but I do not know how to render out deep rats from mantra in the first place.
Does anyone know how to do this?
edit- wow did not realize this was built in. sorry.
_________________ www.zacharydimaria.com |
|
| Back to top |
|
 |
|