f
f
Click Here
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
 Advanced Search
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Maya > Downloads > Mel Scripts > Lighting > Texture Controled Lights Change background colorChange background colorChange background colorChange background color
Texture Controled Lights 1.5.8
Control light colour/intensity by sampling shaders
Login to add a Bookmark 0 votes for an average rating of 0.00

 

UPDATED:   10/16/07  
FILE SIZE:  50 KB  
DOWNLOADED:  912  
LICENSE TYPE:   Freeware
PLATFORMS:    Windows
Maya Versions:   7.x, 8.x
OWNER:   Guf    Author Name:  J.Chris Findlay
User Comments
Be the first to write a review!

 

DETAILS:

Texture Controlled Lights means the ability to link the colour and/or intensity of a light to a sampling of a shading network, such that if the shader is animated, so is the light, and that it's animation matches.

Use case: For a scene with a flaming torch on the wall, sometimes it is better to fake it with an animated placard (especially if the camera doesn't move, or the movement doesn't give away the fake).
The scene is then usually lit with an animated pointlight at the same position.

However, if the highs and lows of the light flicker don't match the animated flame texture's apparent highs and lows, it looks odd.

This script allows you to control the light colour (by sampling outColor) and intensity (by sampling outAlpha), so that the texture does whatever it does, but the light always matches it.

Options include pointsampling, or using the average of a grid of samples, sampling to control either or both of colour and intensity.

Extended use case: If the light is quite big in the scene, a single pointlight might not give the moving feel of the flame. In this case, setting up say 4 pointlights sampling from grids that average the 4 quarters of the texture, and arranging them in space around the flame in a similar fashion (but in 3D not just 2D), the lighting is still simple and lite, but responds with moving illumination in response to the animated texture, giving both matching flicker and nice moving shadows. (One could also apply some other small motion to the lights for an even smoother result).

This tool can be used for all sorts of things, from providing a simple way [for an artist] to animate a coloured light by using a texture (the attributes that the engine looks at are on the light so can be keyed from the AttributeEditor), to whatever you can think of. (c:

The instructions for use are in the header comment in the file.

Created and tested on Windows, but should work on other OS's as well, and probably works on Maya6.x
(Note: uses string continuation, which apparently can cause issues on OSX.)
.

Login to add a Bookmark 0 votes for an average rating of 0.00

 


Related Learning Tools
Maya Related DVDs



Mel for Artists
Maya Related Books



MEL Scripting for Maya Animators
Global DVDs



Shake 101: Interface and Workflow

Lighting Mel Scripts for Maya

  Top Rated
  1. Seth's Tippit Rig
  2. jhSetMultiAttr
  3. aks_lightRay
  4. mmFalloffSpotLight
  5. Mr Lighter
  Most Downloaded
  1. LightGirl
  2. aks_lightRay
  3. Lights Studio Pro
  4. Illuminati
  5. physicalAreaLight
   Top Forum Posts
  1. File Information Here
  2. Download File and File Information Here
  3. Download File and File Information Here
  4. Download File and File Information Here
  5. Download File and File Information Here

Featured Art

4 Minutes Nailed monsterfactry





Sponsors

Sponsor

Contact Us | Advertise | Post Jobs | Post News | Post Events | Terms