Adverti horiz upsell
Advanced Eye Rig w/Nodes - Getting Eyelids to follow the Eyes
Advanced Eye Rig w/Nodes - Getting Eyelids to follow the Eyes
Jana Bergevin, updated 2010-04-07 21:13:38 UTC 48,541 views  Rating:
(5 ratings)
Page 2 of 4

    4. Now we’re going to hook up the EyeCTRL. Select the EyeCTRL and in the hypershader create a multiplydivide node and two blendcolor nodes. Name the multiplydivide node EyeRotMD and the blendcolor nodes REyeBC & LEyeBC. In the connection editor connect the translate X of the EyeCTRL to the Input1X of the EyeRotMD. Then connect the translate Y to the Input1Y. In the EyeRotMD change the Input2X to 120 and the Input2Y to -100. This is the range of rotation that your eyes will move when controlled by the EyeCTRL (this can be set to anything and chances are you’ll have to change it according to your rig). Now connect the outputX of the EyeRotMD to the color1R of both the REyeBC and LEyeBC. Now we’re going to hook up the EyeRotMD and R/L EyeBCs to the R/L EyeJoyCtrlGRP. Using the connection editor connect the outputY of the EyeRotMD to the rotate X of both the R/L EyeJoyCtrlGRP. Then connect the outputR of the REyeBC to the rotateY of the REyeJoyCtrlGRP. Do the same with the output R of the LEyeBC and rotateY of the LEyeJoyCtrlGRP. The EyeCTRL is setup, if you move the EyeCTRL you’ll see it move the joystick jnts.

      eyectrlhookup eyectrlhookup2

       

      5. Next we will set up the EyeConvCTRL. This control will make your character go cross-eyed/chameleon-eyed. Select the EyeConvCTRL and in the hypershader add two multiplydivide nodes. Name the nodes L/R EyeConvMD. Connect the translate X of the EyeConvCTRL to the input1X of the L/R EyeConvMDs. Set the input2X of the LEyeConvMD to -80 and the input2X of the REyeConvMD to 80. Next connect the output X of the LEyeConvMD to the color2R of the LEyeBC of the previous step. Do the same with the output X of the REyeConvMD to the color2R of the REyeBC. The EyeConvCTRL is now setup and if you move it from X to -X you should see the cross-eyed/chameleon-eyed effect.

        eyeconv eyeconv2

        HiddenMedia