PDA

View Full Version : Maya Renderman Pass Compositing


MegaCortex
05-27-2012, 09:53 PM
Hello all

I have problems in composition to assemble my passes, I'm not too familiar with Renderman passes.

I have all my passes needed and if I put them together in After Efect
I get that and I do not know why?

http://i768.photobucket.com/albums/xx327/Megacortex/RMS_Pass.jpg
http://i768.photobucket.com/albums/xx327/Megacortex/resultat-1.jpg

website where I have found reference pass and the composition in (http://webspace.ringling.edu/%7Efgiroldi/Tutorials/RenderManForMaya.html)After Effects (http://webspace.ringling.edu/%7Efgiroldi/Tutorials/RenderManForMaya.html)


I followed this tutorial from 3DVF.com (http://www.3dvf.com/dossier-520-1-rfm-2-0-creation-passes-compositing.html)

I get it which I think is better

http://i768.photobucket.com/albums/xx327/Megacortex/resultat-one-light.jpg

it `s the password of Keylight, the question I ask myself that is if I do this for each of the lights (Fill rim ect)
I do not know how to assemble it all in After Effects.

Example: if I have 4 different composition in AE these compo I multiply them together or add I don`t no what to do? :hmm:

I read this too, good explanation of passes (http://sivakumarpadala.blog.com/2010/12/)

but I do not understand this part I think it `s an assembly that was different from the picture above After effect

result = SpecularDirect - SpecularDirectShadow + SpecularIndirect +
SpecularEnvironment + Ambient +
DiffuseDirect + Translucence - DiffuseDirectShadow +
DiffuseIndirect + DiffuseEnvironment + Backscattering +
Subsurface + Rim + Refraction + Incandescence


I hope which I have explained my problem well

Thank you in advance Lionel

MegaCortex
05-29-2012, 01:28 AM
Hello

well I begin to understand more, I pass under Nuke visually for me, it is better

it`s a opration problem (add,Sceen,over ect) and layer order

thank you

http://i768.photobucket.com/albums/xx327/Megacortex/nuke.jpg

earlyworm
05-29-2012, 01:16 PM
You should only need plus and minus nodes for compositing these passes together (no screens or mults). In After Effects you would use the Add blend mode and if it doesn't have a Subtract blend mode then using the Difference blend mode should suffice. This calculation here...

result = SpecularDirect - SpecularDirectShadow + SpecularIndirect + SpecularEnvironment + Ambient + DiffuseDirect + Translucence - DiffuseDirectShadow + DiffuseIndirect + DiffuseEnvironment + Backscattering + Subsurface + Rim + Refraction + Incandescence Looks like this inside Nuke...

http://earlyworm.org/3d/images/rendermanpassesinnuke.jpg

The Plus11 node at the bottom right should match up with your beauty pass.

I hope that makes sense. Copy/paste the following into Nuke and replace each of the input nodes with read nodes if you want to try out the above node tree and see if it works.

set cut_paste_input [stack 0]
version 6.2 v1
BackdropNode {
inputs 0
name BackdropNode1
tile_color 0x8e8e3800
label Specular
note_font_size 42
selected true
xpos -484
ypos -481
bdwidth 236
bdheight 258
}
BackdropNode {
inputs 0
name BackdropNode2
tile_color 0x6aff55ff
label Diffuse
note_font_size 42
selected true
xpos -499
ypos -208
bdwidth 249
bdheight 331
}
BackdropNode {
inputs 0
name BackdropNode3
tile_color 0x7171c600
label "The Rest"
note_font_size 42
selected true
xpos -470
ypos 137
bdwidth 219
bdheight 242
}
Input {
inputs 0
name Incandescence
selected true
xpos -460
ypos 321
number 13
}
Input {
inputs 0
name Refraction
selected true
xpos -460
ypos 295
number 12
}
Input {
inputs 0
name Rim
selected true
xpos -460
ypos 269
number 11
}
Input {
inputs 0
name Subsurface
selected true
xpos -460
ypos 243
number 10
}
Input {
inputs 0
name Backscattering
selected true
xpos -350
ypos 208
number 9
}
Merge2 {
inputs 2
operation plus
name Plus5
selected true
xpos -350
ypos 243
}
Merge2 {
inputs 2
operation plus
name Plus6
selected true
xpos -350
ypos 269
}
Merge2 {
inputs 2
operation plus
name Plus7
selected true
xpos -350
ypos 295
}
Merge2 {
inputs 2
operation plus
name Plus8
selected true
xpos -350
ypos 321
}
Input {
inputs 0
name DiffuseEnvironment
selected true
xpos -475
ypos 76
number 4
}
Input {
inputs 0
name DiffuseIndirect
selected true
xpos -481
ypos 37
number 5
}
Input {
inputs 0
name diffuseDirectShadow
selected true
xpos -475
ypos -3
number 6
}
Input {
inputs 0
name Translucence
selected true
xpos -480
ypos -53
number 8
}
Input {
inputs 0
name DiffuseDirect
selected true
xpos -478
ypos -92
number 7
}
Input {
inputs 0
name Ambient
selected true
xpos -352
ypos -128
number 14
}
Merge2 {
inputs 2
operation plus
name Plus9
selected true
xpos -352
ypos -92
}
Merge2 {
inputs 2
operation plus
name Plus4
selected true
xpos -352
ypos -53
}
Merge2 {
inputs 2
operation minus
name minus1
tile_color 0xff5555ff
selected true
xpos -352
ypos -3
}
Merge2 {
inputs 2
operation plus
name Plus2
selected true
xpos -352
ypos 37
}
Merge2 {
inputs 2
operation plus
name Plus3
selected true
xpos -352
ypos 76
}
Input {
inputs 0
name SpecularEnvironment
selected true
xpos -474
ypos -268
number 3
}
Input {
inputs 0
name SpecularIndirect
selected true
xpos -473
ypos -306
number 2
}
Input {
inputs 0
name SpecularDirectShadow
selected true
xpos -466
ypos -347
number 1
}
Input {
inputs 0
name SpecularDirect
selected true
xpos -347
ypos -396
}
Merge2 {
inputs 2
operation minus
name minus
tile_color 0xff5555ff
selected true
xpos -347
ypos -347
}
Merge2 {
inputs 2
operation plus
name Plus
selected true
xpos -347
ypos -306
}
Merge2 {
inputs 2
operation plus
name Plus1
selected true
xpos -347
ypos -268
}
Dot {
name Dot1
selected true
xpos -174
ypos -264
}
Merge2 {
inputs 2
operation plus
name Plus10
selected true
xpos -208
ypos 76
}
Merge2 {
inputs 2
operation plus
name Plus11
selected true
xpos -208
ypos 321
}

MegaCortex
05-29-2012, 09:12 PM
thank you very much earlyworm

I try it tonight, with this diagram it `s very clear

so if I understand well all node (plus,minus) are a merge node and I change the operation
to plus or minus

thank you

earlyworm
05-30-2012, 11:28 AM
Yep, you can use the merge node and just change the operation to plus or minus.

MegaCortex
05-30-2012, 09:48 PM
Hi earlyworm

I tried your way but don`t work for me I use exr file but with your example i found a mannered and it`s seems ok

the script it`s number one i try it soon

thank you








http://i768.photobucket.com/albums/xx327/Megacortex/cgtalk.jpg


http://i768.photobucket.com/albums/xx327/Megacortex/cgtalk-2.jpg

earlyworm
05-31-2012, 03:21 PM
I expect your not connecting the node graph I gave you up correctly. But if you've found a method your happy with then go for it.

MegaCortex
06-01-2012, 12:23 AM
I expect your not connecting the node graph I gave you up correctly. But if you've found a method your happy with then go for it.


no it`s one i made your I try it with separate file no exr


but that's what I get with (http://img837.imageshack.us/img837/2765/minusk.jpg)minus ??? a black image (http://img837.imageshack.us/img837/2765/minusk.jpg)

other test (http://img41.imageshack.us/img41/1337/minus3.jpg)

I do not know why (I`m using tif 32 bits image?)

may be i have to change minus to difference it`s possible the pass of renderman are calculated differently?

earlyworm
06-01-2012, 12:40 PM
Your right. Judging from the thumbnails they both look the same, but their does seem to be some difference between the two passes because your getting something with the difference node.

I don't have Renderman for Maya here in front of me to test this myself, so I don't know what else to suggest. Sorry couldn't be of more help.

MegaCortex
06-01-2012, 11:29 PM
any way you help me to understand

again thank you

Lionel

CGTalk Moderation
06-01-2012, 11:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.