Announcement

Collapse
No announcement yet.

Link? Wire? Assign? the color of a pixel in a map to the color of a light.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Link? Wire? Assign? the color of a pixel in a map to the color of a light.

    Not a Vray specific thing but something I've been wanting to do for many years. Essentially, I have an animation and want to UVW it across an array of lights so that each light(s) color is that of the nearest pixel.



    I've tried wiring the color of each light to an objects material diffuse slot, which works for just color, but if I place a material in the diffuse slot, it obviously doesn't work.



    I need to find a way to link the color of a light to the pixel of a map.



    Thoughts?



    The goal is to use this with an animation for content.

  • #2
    Could you elaborate more on this? Some kind of illustration of the effect would be very helpful.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      I tried a camera projection map as the driver for the color of an array of rectangular lights I could change the color of the lights by moving the camera, but it changed the color of all the lights (I tried copies and instances but same effect). So this doesn't work.
      A.

      ---------------------
      www.digitaltwins.be

      Comment


      • #4
        If it's what I'm thinking then why not use an array of planes for the lights, attached as one and using a light material?
        https://www.behance.net/bartgelin

        Comment


        • #5
          Originally posted by fixeighted View Post
          If it's what I'm thinking then why not use an array of planes for the lights, attached as one and using a light material?
          He needs a single color per light. I tried it that way too but if you use an image you will get multicolored lit planes sometimes. Unless you precisely create an equal grid layout as the pixels in the animation, so you never have a light on the edge of where two colors / pixels meet.
          A.

          ---------------------
          www.digitaltwins.be

          Comment


          • #6
            Yes exactly, so as in the attached, where I process the image to be pixel blocks and use that for both light image and its opacity.
            Or maybe that's not what the OP wants at all and is something completely different
            Attached Files
            https://www.behance.net/bartgelin

            Comment


            • #7
              So some additional detail. I need to use lights, specifically I need the ability to change the beam angle. (spread) of the light. This will be animated. Ultimately, I need to find a way to pull the RGB values from the nearest pixel on a texture and assign it to the color of a light. Wiring wont work as it only recognizes the color swatch of a material. It cant discern what color to use when there is a texture in the diffuse slot of a material. For a moment, I thought the "VrayUserColor" would work but unfortunately not.

              Comment

              Working...
              X