Using the relight tool in Nuke

This is a for the sake of documentation [also explained in Nuke Master Classes 2009 on foundry website in great detail ]and for new Nuke artist to know about  \,,|_ RELIGHT  _|,,/  plugin that allows a little more control over 3d space in nuke with nuke 3d feature . I mean little don’t expect lighting a bad ass scene in nuke . lighting dude are still required to do a great deal of the work. ( by the way I am a lighting artist by birth, that’s not important here at all ) . Okay enough chatter… lets start I am going to use   ARNOLD ” the awesome ness ” because its so much easier to do everything, you spend time lighting  the shot and no time clicking buttons unlike done in mental ray [which i still respect ] and  I would edit this post in future explaining how it is done in Mentalray.

 Picture 2013-07-11 18_38_28

This is how simple the scene is two sphere’s a light a camera and a arnold renderer.

I have assigned a aistandard shader and set to AOV to output Normal and point position passes. I have rendered a exr with all the passes as channels [ also provided in the zip file attached]. Relight is available in Nuke 6.0.4 [I think ??] onwards and its a hidden tool. You have to update your plugins to be able to see it. So on the toolbar to the left side in Nuke interface that says other, under that go to All plugins and select UPDATE.  Once you have clicked it you have to navigate your self to allplugins option again and you see

alphabetically categorized tools. under R select Relight  or press TAB and type relight to load the tool.

Picture 2013-07-11 18_52_04

Relight node needs a few inputs  before it can actually work, a scene camera of the lighting file [fbx format 2009 only], a material [created in nuke], a scene node to communicate light and  relight node and normal pass and point position pass [which can be in layers or exr channels ].  Connection of channels, settings of relight options are explained in image below.

Picture 2013-07-11 19_04_55

Now I have connected a phong material to the material input of the relight node, you can choose any one you like and also connect  a directional light or a light of your choice to the scene 3d node in the Node graph. immediately you will a light effecting the 2d image with a dull bright light this light can be rotated in nuke 3d view selection or via option box of light. Rotating the nuke light  will effect 2d image as if it were in a 3d world space.

Picture 2013-07-11 19_18_43

You can merge the output of relight with rendered beauty as a normal pass   and continue with the flow

Picture 2013-07-11 19_28_35

pls note you can also see the 3d scene camera based point cloud for better control and accuracy in positing the lights with use of positiontopoint node . shown in image below and the nuke file attached

Picture 2013-07-11 19_37_31

Please note this is a rough edit of the post, language and format will be corrected eventually.

Shared Dropbox folder 🙂 

3ds Max 2012. Iray Render test.

Iray for max is exceptionally fast and not much of tweaking required from the regular renderers like Mr


Lit this scene using a simple free HDRi, and the materials for this is basic A&D Materials… it took about 2.3  min’s to render this.. For a still shot Iray is  awesome :).

Also tried rendering a super duper heavy scene… and it rendered just fine 🙂

did not use HDRI here but used basic lights…available with max…

scene has 2507040  polygons … 😛 .. Yeah! a lot of polygons rendering on pc at realtime…

 model  by Kartik a zbrush obj, export size 200 mb

render time 5.5 mins

also a interior scene rendered

~ happy Iraying… “_”










MiP shader are hidden production shader to make them visible in maya we need to edit mentalrayCustomNodeClass.mel file, u can find the file in “C:\Program Files\Autodesk\Maya2010\scripts\others”. Open the mel file any text editor program like notpad++, editplus or even Microsoft trusty Notepad. Once the file is open scroll down to the end and look for code line “$enableMIPShaders == 0 ) ||” and change the value 0 to 1. thats it … now restart ur maya i’m using Maya 2010 this works in 2009 also :). If you get a error after opening maya saying icon file missing just ignore it.


I am going to use it on a very simple scene

Continue reading

Rendering through multiple camera.>.Maya.>.CMD

Hey.. so u got more than one camera and need to render all your layers from all your cameras at different frame range… Simple…

render –r mr –s 20 – e 60 – cam ZoomInCam NewScene01.mb

render –r mr –s 80 – e 95 – cam PanCam NewScene01.mb

note :

-s and -e  are flag for start frame and end frame respectively.

-cam is the flag for the camera name in the scene here ZoomInCam and PanCam are the names of your camera in your scene [NewScene01.mb ]… which is written at the end…  🙂 hope this helps…


Ankit Sharma