FAQ FAQ      Search Search      Memberlist Memberlist      Usergroups Usergroups      Register Register      Profile Profile      Check private messages Check private messages      Log in Log in     

Deep Image Compositing

 
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion
View previous topic :: View next topic  
Author Message
sabareeshrg
Talkative


Joined: 20 Nov 2008
Posts: 29

india.gif
PostPosted: Tue Apr 03, 2012 4:11 am GMT    Post subject: Deep Image Compositing Reply with quote

Code:
How to generate Deep images in Houdini for doing deep compositing on Nuke

_________________
sab
Back to top
View user's profile Send private message
Alanw
Houdini Expert


Joined: 06 Aug 2007
Posts: 320

usa.gif
PostPosted: Tue Apr 03, 2012 9:18 am GMT    Post subject: Re: Deep Image Compositing Reply with quote

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
View user's profile Send private message
koen
Houdini Master


Joined: 31 Jul 2005
Posts: 589
Location: Vancouver

netherlands.gif
PostPosted: Tue Apr 03, 2012 10:33 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
Wolfwood
Village Idiot


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

canada.gif
PostPosted: Tue Apr 03, 2012 10:36 am GMT    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SYmek
Houdini Guru


Joined: 13 Mar 2003
Posts: 1240

poland.gif
PostPosted: Tue Apr 03, 2012 11:51 am GMT    Post subject: Reply with quote

Cortex apparently does Rat->dtex conversion.
Back to top
View user's profile Send private message AIM Address
Wolfwood
Village Idiot


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

canada.gif
PostPosted: Tue Apr 03, 2012 1:35 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
andrewk.imageengine
Talkative


Joined: 08 Mar 2011
Posts: 44
Location: Vancouver

canada.gif
PostPosted: Tue Apr 03, 2012 2:02 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
Wolfwood
Village Idiot


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

canada.gif
PostPosted: Tue Apr 03, 2012 2:38 pm GMT    Post subject: Reply with quote

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. Very Happy

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.



nukes.jpg
 Description:
 Filesize:  15.77 KB
 Viewed:  4047 Time(s)

nukes.jpg



_________________
if(coffees<2,round(float),float)
Back to top
View user's profile Send private message Visit poster's website
vlow
Lurker


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

singapore.gif
PostPosted: Wed Apr 11, 2012 9:25 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
andrewk.imageengine
Talkative


Joined: 08 Mar 2011
Posts: 44
Location: Vancouver

canada.gif
PostPosted: Thu Apr 12, 2012 11:52 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
vlow
Lurker


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

singapore.gif
PostPosted: Fri Apr 13, 2012 11:18 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
SYmek
Houdini Guru


Joined: 13 Mar 2003
Posts: 1240

poland.gif
PostPosted: Fri May 18, 2012 10:30 am GMT    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Wolfwood
Village Idiot


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

canada.gif
PostPosted: Fri May 18, 2012 2:12 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SYmek
Houdini Guru


Joined: 13 Mar 2003
Posts: 1240

poland.gif
PostPosted: Fri May 18, 2012 5:28 pm GMT    Post subject: Reply with quote

Ah so, makes sense! Thank you Wolfwood!
Back to top
View user's profile Send private message AIM Address
Wolfwood
Village Idiot


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

canada.gif
PostPosted: Fri May 18, 2012 6:26 pm GMT    Post subject: Reply with quote

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! Very Happy

_________________
if(coffees<2,round(float),float)
Back to top
View user's profile Send private message Visit poster's website
zdimaria
Houdini Expert


Joined: 03 Jan 2012
Posts: 358

usa.gif
PostPosted: Fri May 18, 2012 8:02 pm GMT    Post subject: Reply with quote

Yes, Thank you SYmek!
_________________
www.zacharydimaria.com
Back to top
View user's profile Send private message Visit poster's website
SYmek
Houdini Guru


Joined: 13 Mar 2003
Posts: 1240

poland.gif
PostPosted: Mon May 21, 2012 3:28 am GMT    Post subject: Reply with quote

Wolfwood wrote:

Bah, and where are my manners.

Ah, well, at least you've already contributed! Very Happy (and I was actually hoping you give some advices and maybe code fixes...). Thank you!
Back to top
View user's profile Send private message AIM Address
ovspianist
Lurker


Joined: 21 Mar 2009
Posts: 1

blank.gif
PostPosted: Sat Dec 15, 2012 7:07 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
zdimaria
Houdini Expert


Joined: 03 Jan 2012
Posts: 358

usa.gif
PostPosted: Thu Jan 24, 2013 9:56 am GMT    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component v1.2.4 RC3 by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group