Announcement

Collapse
No announcement yet.

IES instance light rotation

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

  • IES instance light rotation

    Hi,
    I have a curve. And I instance IES lights on it. I want IES follow the curve but also look in the middle. I used N attribute for it from sweep, they follow, but they rotated in wrong way. I need that they lit the ground. But i found that changing rotation in IES light not affect instanced light, but similar work for other light types (rectangle). How I can rotate my ies light? Sorry for difficult description. Please check the scene attached
    Attached Files

  • #2
    Hello Mikhalenko, did you try to multiply @N by -1, this should orient normals opposite direction?
    Georgy Chakarov | QA
    www.chaosgroup.com
    georgy.chakarov@chaosgroup.com

    Comment


    • #3
      If you need 90 degree instead of 180 that multiplying @N by -1, you should be able to use dot. Otherwise just follow this quick tutorial:

      https://youtu.be/7Irb2dqehL4

      Comment


      • #4
        Originally posted by chakarov View Post
        Hello Mikhalenko, did you try to multiply @N by -1, this should orient normals opposite direction?
        Yes I did, but if I multiply by -1 I lose that IES follow the curve. First screen without @N * -1, second with. I attached also screen how I need that me IES light lit the road
        Attached Files

        Comment


        • #5
          A quaternion invert did the trick. See attached file.
          Attached Files

          Comment


          • #6
            Originally posted by tobbeo View Post
            A quaternion invert did the trick. See attached file.
            and how I can control rotation over the axis using this?

            Comment


            • #7
              Originally posted by Mikhalenko View Post

              and how I can control rotation over the axis using this?
              That was just if you wanted them inverted. Fixing the normals was easy enough, see attached file. You need to merge back in your lights, but you can see the normals are fixed.

              As with all things Houdini there are many ways to achieve the same result. The way you're scattering the lights is not how I work, I spent a few minutes trying to get your way to work but no luck. If I find some time later today I'll try to look at it again. In the meantime I hope the Chaos guys help you reach the finish line.
              Attached Files

              Comment


              • #8
                Hi, Thanks, It's work with one axis, but I need rotation around each axis. I think the problem in IES light that instanced, because rotation parent IES not tranfer to instanced

                Comment


                • #9
                  Can you just use the orient attribute to set the orientation of your lights?
                  Then you can set it exactly how you want? Or am I missing the question somehow?

                  Comment


                  • #10
                    Orient attribute nor affect on orientation of light< or I do something wrong

                    Comment


                    • #11
                      I just tried applying a random orient attribute to some points and instancing the lights on.
                      Seemed to work just fine?

                      Click image for larger version

Name:	lights.png
Views:	197
Size:	433.8 KB
ID:	1122815
                      Attached Files

                      Comment

                      Working...
                      X