Multi-channel exr

General discussion of mental ray topics

Multi-channel exr

Postby bart on Sun Nov 19, 2006 10:42 am

Hi all,

I heard that there may be somewhat of a standard or agreement of what layers were recently being used for multi-channel exr files.

I'm considering making an output shader example of how to do this, in addition, to making it easier to do within the 3D applications in the future.

Without an output shader, mental ray currently supports putting the primary framebuffer and z into an exr file, eg, in the camera block

output "+rgba_h, z" "exr" "file.exr"

In an output shader, you could also add arbitrary channels, including user framebuffers. And I believe ctrl.studio has an example of this as well. Max?
bart
Site Admin
 
Posts: 1659
Joined: Sat Dec 18, 2004 9:34 am
Location: Marina Del Rey, California

Postby Puppet on Sun Nov 19, 2006 1:40 pm

You may view example of such shaders in shaders_p pack here: http://www.puppet.cgtalk.ru/download/shaders_p_e.shtml
source code also available.

For example in my shader it looks like:

Code: Select all
output "+z,+n,+rgba_h" "p_OpenEXR_saver" ("fileName" "d:/test3/untitled.1.exr", "compression" 1, "rgbaPass" on, "rgbaFormat" 1, "zPass" on, "zFormat" 1, "nPass" on, "nFormat" 1, "mPass" off, "mFormat" 1, "tPass" off, "tFormat" 0, "cPass" off, "cFormat" 1, "shadingPass" on, "shadingBuffer" 20, "shadingFormat" 1, "colorPass" on, "colorBuffer" 21, "colorFormat" 1, "diffusePass" on, "diffuseBuffer" 22, "diffuseFormat" 1, "diffuseShadowPass" on, "diffuseShadowBuffer" 23, "diffuseShadowFormat" 1, "specularPass" on, "specularBuffer" 24, "specularFormat" 1, "specularShadowPass" on, "specularShadowBuffer" 25, "specularShadowFormat" 1, "diffuseOcclusionPass" off, "diffuseOcclusionBuffer" 26, "diffuseOcclusionFormat" 1, "indirectIllumPass" off, "indirectIllumBuffer" 27, "indirectIllumFormat" 1, "ambientPass" off, "ambientBuffer" 28, "ambientFormat" 1, "ambOcclusionPass" off, "ambOcclusionBuffer" 29, "ambOcclusionFormat" 1, "reflectPass" off, "reflectBuffer" 30, "reflectFormat" 1, "refractPass" off, "refractBuffer" 31, "refractFormat" 1, "incandescencePass" off, "incandescenceBuffer" 32, "incandescenceFormat" 1, "depthPass" off, "depthBuffer" 33, "depthFormat" 1, "bentNormalPass" off, "bentNormalBuffer" 34, "bentNormalFormat" 1, "specialC1Pass" off, "specialC1Buffer" 35, "specialC1Format" 1, "specialC2Pass" off, "specialC2Buffer" 36, "specialC2Format" 1, "specialC3Pass" off, "specialC3Buffer" 37, "specialC3Format" 1, "specialC4Pass" off, "specialC4Buffer" 38, "specialC4Format" 1 )


Or you need something different?
Pavel Ledin
Puppet
 
Posts: 222
Joined: Mon Dec 20, 2004 6:29 pm
Location: Moscow, Russia

Postby bill spradlin on Wed Apr 04, 2007 2:22 am

Something along the lines of PRmans AOV's would be nice to see standard in mental ray. Ctrl_buffers outputs the passes to separate .exr files, which isn't very useful for a lot of people, especially if your compositing package supports multi-channel .exr's.
Light and Stuff
Digital Domain
bill spradlin
 
Posts: 5
Joined: Thu Mar 17, 2005 12:40 pm
Location: Santa Monica

Postby bart on Thu Apr 05, 2007 5:49 am

To ask my question more clearly ...

Is there a standard list of channel names for an all-in-one multi-channel exr?

In other words, I heard there was a convention for these names going around in LA? Anyone got them?
bart
Site Admin
 
Posts: 1659
Joined: Sat Dec 18, 2004 9:34 am
Location: Marina Del Rey, California

Postby Puppet on Thu Apr 05, 2007 11:11 am

bart, OpenEXR format have only 4 predefined name for channels: R, G, B and A.
And I didn't heard about any conventions.
Pavel Ledin
Puppet
 
Posts: 222
Joined: Mon Dec 20, 2004 6:29 pm
Location: Moscow, Russia

Postby bill spradlin on Sat Apr 07, 2007 10:42 am

Guess I totally mis-red that heh, sorry Pirates has left me a little scrambled....

I'll see what I can find out for you Bart, cheers.
Light and Stuff
Digital Domain
bill spradlin
 
Posts: 5
Joined: Thu Mar 17, 2005 12:40 pm
Location: Santa Monica


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron