Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: Light color

  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    las vegas
    Posts
    666

    Light color

    I need a little help. Is there a way to change the color of a group of lights together? Can a group of light's color be controlled with an envelope?

    Does anyone have a good surface for milk white acrylic?

    thanks in advance!

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,891
    There is possible workaround/trick.
    In LW 2019 (perhaps LW 2018 too), there is Node Editor in Light Properties, where you can edit light color.
    So open it, add e.g. Item Info object, make Null, and pick it in the node, and plug output like Scale or Rotation of null to Light color.
    Then repeat with other light items.
    Pick up null, Scale or Rotate it, and the all lights will change color. This trick will work with everything you want to control, when there is available Node Editor.


    Edit:
    Alternative (even better way):
    In Light Properties Node Editor add Light Info, pick up reference light item from drop-down, get color and plug to target Light color.
    Duplicate in couple other lights.
    Change of single light color, will distribute color to the all other lights.

  3. #3
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,891
    Quote Originally Posted by Sensei View Post
    Edit:
    Alternative (even better way):
    In Light Properties Node Editor add Light Info, pick up reference light item from drop-down, get color and plug to target Light color.
    Duplicate in couple other lights.
    Change of single light color, will distribute color to the all other lights.
    I tried it, and it works good, but you have to remember to set Light Properties color to white, otherwise it's multiplied by what you receive in Node Editor.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Location
    Colorado Springs
    Posts
    1,792
    Prior to the nodal access to the control of a Light's color, you can also use an Expression in the Graph Editor. What version of LW are you using?

    mTp

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    las vegas
    Posts
    666
    Thanks for the answer. I've been too busy to even notice 2019 came out.

  6. #6
    Registered User
    Join Date
    Mar 2003
    Location
    las vegas
    Posts
    666
    Can you post a screen shot of the node set up?

  7. #7
    Electron wrangler jwiede's Avatar
    Join Date
    Aug 2007
    Location
    San Jose, CA
    Posts
    6,485
    (deleted)
    Last edited by jwiede; 03-15-2019 at 03:47 PM. Reason: just another LW UX mess that'll never be fixed, no point in details
    John W.
    LW2015.3UB/2018.0.7 on MacPro(12C/24T/10.13.6),32GB RAM, NV 980ti

  8. #8
    Registered User
    Join Date
    Jan 2005
    Location
    Colorado Springs
    Posts
    1,792
    The node setup to control multiple Lights from a "base light's" color is this:

    Click image for larger version. 

Name:	03_UsingLightInfoNode.jpg 
Views:	39 
Size:	1.00 MB 
ID:	144444

    In this case, I set up a Light called Light_ForColor, used it in the Light Info node, and fed its color into the three Color inputs for the spotlight. The spotlight can then be cloned and positioned around the "stage":

    Click image for larger version. 

Name:	LightInfoNode_FeedClonedLights.jpg 
Views:	29 
Size:	93.4 KB 
ID:	144446

    ...and now, for something completely different...

    Personally, I like doing "group control" with a control Null, using various channels on the Null to control parameters.

    I don't know if it's anything like what you're after, but I've attached a sample scene which controls a set of four Lights using a Null called LightControlNull. A single Light was set up with the various node networks and expression, and then Cloned and repositioned about the "stage".

    The channels of LightControlNull used are:

    X,Y,Z = Red, Green, Blue for the color
    H,P = angular offset from a Target Null (Bank would just rotate the Light around its axis)
    X Scale = Light Intensity

    All of the four Light's color, intensity and direction in the sample sequence were done by just changing the channels on the Null.

    Click image for larger version. 

Name:	Final_Render_030.jpg 
Views:	23 
Size:	107.8 KB 
ID:	144435 Click image for larger version. 

Name:	Final_Render_060.jpg 
Views:	24 
Size:	104.2 KB 
ID:	144436

    Click image for larger version. 

Name:	Final_Render_090.jpg 
Views:	22 
Size:	125.8 KB 
ID:	144437 Click image for larger version. 

Name:	Final_Render_150.jpg 
Views:	25 
Size:	147.2 KB 
ID:	144438

    Click image for larger version. 

Name:	Final_Render_180.jpg 
Views:	19 
Size:	119.1 KB 
ID:	144439 Click image for larger version. 

Name:	Final_Render_210.jpg 
Views:	17 
Size:	91.6 KB 
ID:	144440

    MOV file: LightBank_SingleControlNull.mov

    The Light's color was set up with the Light's node network, simply feeding the Null's X,Y,Z vector into the Light's colors. The Intensity of the Light isn't available in the node network so I used an Expression in the Graph Editor:

    Click image for larger version. 

Name:	01_LightBank_Intensity&Color.jpg 
Views:	28 
Size:	1.29 MB 
ID:	144442

    The Light's angular motion was done in the Nodal Motion node graph, first pointing the Light at the LightTargetNull and then adding in the Rotation vector of the LightControlNull:

    Click image for larger version. 

Name:	02_LightBank_PointingAtTarget_Variable.jpg 
Views:	26 
Size:	1.10 MB 
ID:	144443

    Although the X,Y,Z approach to setting the Light bank's color doesn't allow a Color Picker selection, I find that it's really convenient to just change the Null's X,Y,Z using the standard mouse movements is really quick and easy. The Graph of the control node's X,Y,Z can be manipulated just like normal, sliding the various color channel keys up and down, etc., and seeing the results in VPR.

    Click image for larger version. 

Name:	04_LightBank_XYZ=RGB.jpg 
Views:	25 
Size:	1.02 MB 
ID:	144445

    So, for the sample scene, with the LightControlNull selected, I just set the frame to 30, 60, 90, etc., and then hit "t" to set the bank of Light's color, "h" to set their intensity, and "y" to have them wander away from pointing directly at the LightTargetNull. And, almost as quickly as it's said, I can move on to the next keyframe.

    As a help, I constrained the X,Y,Z movement of the LightControlNull to between 0.01 and 1.0 in each axis so the Color was always within a positive range below 1.0:

    Click image for larger version. 

Name:	05_RangeLimitsOnXYZ.jpg 
Views:	26 
Size:	942.5 KB 
ID:	144448

    Have fun!
    mTp
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    Mar 2003
    Location
    las vegas
    Posts
    666
    Thank you so much. I have to control a pixel strip to animate the lights on an internally lit sign we're building for a client. the only way i could think to do it was with a couple hundred point lights. i thought about a lum map, but i'd first have to animate that.

  10. #10
    Registered User
    Join Date
    Jan 2005
    Location
    Colorado Springs
    Posts
    1,792
    OK. If you post an example image of what you're trying to accomplish it may be feasible to do it without hundreds of lights. Animating a luma map / color map is easy.

    mTp
    Last edited by MonroePoteet; 03-16-2019 at 10:32 AM.

  11. #11
    Curmudgeon in Training Ma3rk's Avatar
    Join Date
    Mar 2003
    Location
    Near Beaverton, OR
    Posts
    1,350
    Same here; thanks a heap for that MP. I'll certainly be analyzing & disecting your scene eventually.
    "Never be a cat in a cartoon. Never." Chief Wiggum

  12. #12
    Registered User
    Join Date
    Mar 2003
    Location
    las vegas
    Posts
    666
    This is a decent example of the lighting that will be in the sign.

    https://www.youtube.com/watch?v=afPKmbIzRa0

  13. #13
    Registered User
    Join Date
    Jan 2005
    Location
    Colorado Springs
    Posts
    1,792
    OK, thanks for the example video. If the patterns & colors you want for the LED strip is as complex as that shown in the video, I'd probably draw the pattern(s) in an image editor and apply them as a moving Image Texture.

    Attached is a sample LW2015 scene which uses a Spline to shape the chain of LED bulbs into a shape similar to the one in the video. The LED Bulbs layer in the Object was modeled down the negative Z axis to make it "compatible" with the Spline control. A curve was drawn in CurveForSpline layer to shape the set of bulbs.

    I drew the following 100x100 image in an image editor:

    Name:  LED_ColorPattern_XAxis.jpg
Views: 92
Size:  25.4 KB

    which was then mapped to the LEDBulbs object on the Y axis, set up the size correctly (Autosizing first and then set the X dimension to 5) and then moved in the -X direction using an Envelope on the Image's X Position:

    Click image for larger version. 

Name:	02_MapImageToLEDBulbs.jpg 
Views:	18 
Size:	1.17 MB 
ID:	144513 Click image for larger version. 

Name:	03_EnvelopeToMoveImage.jpg 
Views:	15 
Size:	1.39 MB 
ID:	144514

    With the LEDBulbs surface set to 1000% Luminosity, Global Illumination turned on and set to 300% puts a glow around the LED strip, although it's pretty noisy and chaotic:

    Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_001.jpg 
Views:	26 
Size:	27.7 KB 
ID:	144515 Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_082.jpg 
Views:	29 
Size:	98.1 KB 
ID:	144516

    Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_124.jpg 
Views:	23 
Size:	59.4 KB 
ID:	144517 Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_157.jpg 
Views:	28 
Size:	86.6 KB 
ID:	144518

    MOV file: LEDStrip_WithSpline.mov

    Using the same technique in LW2019 using the new rendering engine might produce a better, more even glow but my experimentation was that it was EXTREMELY noisy even with high AA samples. A rendering expert might be able to get the noise to a reasonable level and I haven't tried the GPU denoiser.

    I used a Spline to shape the LED chain because I don't know how to use the Animation UV Cycler available for UV mapped images, and you can't apply a moving envelope to the Position of a UV Mapped image (too bad!). It probably does a similar function, but I didn't have time to research / experiment. To use a UVMap, BEFORE shaping the chain of bulbs into the desired shape I'd apply a UV map in the appropriate dimension, then shape the LED bulb chain into the desired shape.

    Note that in the sample scene / render sometimes one or more LED bulbs are only partially lit (e.g. half lit). To avoid this, I think you can fine-tune the size of the image (e.g. for 100 bulbs with 200 frames I should have used a 100x200 image to map) and making sure how fast it moves doesn't put a row of pixels in the middle of some of the bulbs. For the sample scene I disabled Pixel Blending and Mipmaps, and tried a "ModulusXMotion" Expression, but still ran into the problem.

    Good luck!
    mTp
    Attached Files Attached Files

  14. #14
    Super Member COBRASoft's Avatar
    Join Date
    Dec 2005
    Location
    Oudenburg, BEL
    Posts
    3,179
    It would be handy to have a 'global' node with custom attributes that the user can add to own liking. Each attribute should have E button for animation.
    E.g.:
    Custom global node name: GlobalLight
    Added Color attribute: LightColor
    Added Scale attribute: LightScale
    Added Rotation attribute: LightRotation
    ...

    then this global node can be added to any node editor of an object/light/... and connect the wanted attributes. This would make stuff a lot easier imo.

  15. #15
    da what? daforum's Avatar
    Join Date
    May 2006
    Location
    Bristol, England
    Posts
    1,674
    Quote Originally Posted by MonroePoteet View Post
    OK, thanks for the example video. If the patterns & colors you want for the LED strip is as complex as that shown in the video, I'd probably draw the pattern(s) in an image editor and apply them as a moving Image Texture.

    Attached is a sample LW2015 scene which uses a Spline to shape the chain of LED bulbs into a shape similar to the one in the video. The LED Bulbs layer in the Object was modeled down the negative Z axis to make it "compatible" with the Spline control. A curve was drawn in CurveForSpline layer to shape the set of bulbs.

    I drew the following 100x100 image in an image editor:

    Name:  LED_ColorPattern_XAxis.jpg
Views: 92
Size:  25.4 KB

    which was then mapped to the LEDBulbs object on the Y axis, set up the size correctly (Autosizing first and then set the X dimension to 5) and then moved in the -X direction using an Envelope on the Image's X Position:

    Click image for larger version. 

Name:	02_MapImageToLEDBulbs.jpg 
Views:	18 
Size:	1.17 MB 
ID:	144513 Click image for larger version. 

Name:	03_EnvelopeToMoveImage.jpg 
Views:	15 
Size:	1.39 MB 
ID:	144514

    With the LEDBulbs surface set to 1000% Luminosity, Global Illumination turned on and set to 300% puts a glow around the LED strip, although it's pretty noisy and chaotic:

    Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_001.jpg 
Views:	26 
Size:	27.7 KB 
ID:	144515 Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_082.jpg 
Views:	29 
Size:	98.1 KB 
ID:	144516

    Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_124.jpg 
Views:	23 
Size:	59.4 KB 
ID:	144517 Click image for larger version. 

Name:	LEDStrip_ColorImagePattern_GlobalIllumination_WithSpline_rgb_157.jpg 
Views:	28 
Size:	86.6 KB 
ID:	144518

    MOV file: LEDStrip_WithSpline.mov

    Using the same technique in LW2019 using the new rendering engine might produce a better, more even glow but my experimentation was that it was EXTREMELY noisy even with high AA samples. A rendering expert might be able to get the noise to a reasonable level and I haven't tried the GPU denoiser.

    I used a Spline to shape the LED chain because I don't know how to use the Animation UV Cycler available for UV mapped images, and you can't apply a moving envelope to the Position of a UV Mapped image (too bad!). It probably does a similar function, but I didn't have time to research / experiment. To use a UVMap, BEFORE shaping the chain of bulbs into the desired shape I'd apply a UV map in the appropriate dimension, then shape the LED bulb chain into the desired shape.

    Note that in the sample scene / render sometimes one or more LED bulbs are only partially lit (e.g. half lit). To avoid this, I think you can fine-tune the size of the image (e.g. for 100 bulbs with 200 frames I should have used a 100x200 image to map) and making sure how fast it moves doesn't put a row of pixels in the middle of some of the bulbs. For the sample scene I disabled Pixel Blending and Mipmaps, and tried a "ModulusXMotion" Expression, but still ran into the problem.

    Good luck!
    mTp
    That's rather cool!!

    It looks fairly straight forwards , so will this work in earlier versions of LW?
    Montage Reel, Portfolio, PIN_01, Prime......«« go on, click on a link!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •