How to set Maya lighting brightness automatically

Source: Internet
Author: User

01, many people on how to adjust the brightness of the light is confused, I was one of them, especially when the lighting set the attenuation, is often adjusted brightness, rendering ... Pray...... Too bright ... Re-tune ... Pray again ... Too dark ... Too bright ... Pain......

The connection below is expected to help a little.

1. Build a spotlight and set it to decay two times. This is the most commonly used lighting. So are the others. Create->lights->spot Light.

02, build a ruler. Create->measure->distance tool. Hold down the X key to snap the first locater to the dot and the other to the light, as shown.

03, the following lights and ruler tools to connect: Select the 1th locater, and then select Spot Light, press p, the locater as a spot light child objects. Move the light and find that the ruler tool moves with it, but the light does not point to the 2nd locater.

4, select the 2nd locater, and then select Spot Light, switch to animation menu settings. Constrain->aim->options.

05 convert aim vector to 0,0,-1.

Press the Add/remove.

It was a moving light, and the 1th locater followed the lights, and the lights were always aiming at the 2nd locater, and the data from the ruler were constantly changing.

06, open hypergraph. Hold down SHIFT and select spot light and distance dimension to display their upstream and downstream nodes.

07, open Hypershade, from Hypergraph SpotLightShape1 and distanceDimentionShape1 with the middle key to drag into the Hypershade workspace.

08, open Hypershade. Create the following nodes: Two multiply divide nodes, one ramp texture node.

09 Use the middle key to drag the distanceDimentionShape1 to the multiply divede1. Choose Other, open connection editor. Select distance on the left and select Input1x on the right to open multiply divide properties. Set operation to power. The INPUT2X is 2 (if three times the attenuation is set to 3).

10, set the ramp texture, the color set to H0,S0,V1, no gradient.

11. Use the middle key to drag the ramp to the multi Divide2. Select Other. Choose Outalpha on the left and input2x on the right.

12, with the middle key will multiply divide1 drag to multi Divide2, choose Other. Choose Outputx on the left and input1x on the right.

13, open multiply Divide2 properties, set operation as multiply.

14. Use the middle key to drag the multiply divide2 to the Spotlightshape node and select Other. Choose Outputx on the left and intensity on the right.

15, so with the position of the lighting and the location of the target, the brightness of the light is automatically adjusted, if you want to brighter or darker, change the color v ramp texture can be.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.