Announcement

Collapse
No announcement yet.

Curves to emit light?

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

  • Curves to emit light?

    Is it possible to somehow get curves to emit light just like attaching VRaylight properties to a mesh?

  • #2
    No, but you can make the spline renderable (V-Ray attribute) and set a VRayLightMtl, however, note that DI won't work. Another solution is to make thin geometry out of the curve and apply a VRayMeshLight.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Many thanks, thats a perfect solution. works for me!
      Many thanks.

      Comment


      • #4
        Is there a script that could apply the renderable attribute to many curves in one go?
        Would be great to be able to create a set and apply this attribute to it.

        Comment


        • #5
          Found one here. Replace the "VRayLightMtl1" part with the name of your shader. Select all curves and run this:

          Code:
          $selected=`ls -dag -et curveShape`;
          for ($object in $selected){
          // Add V-ray Extra attributes
          vray addAttributesFromGroup $object vray_nurbscurve_renderable 1;
          vrayAddAttr $object vraySeparator_vray_nurbscurve_renderable;
          vrayAddAttr $object vrayNurbsCurveRenderable;
          vrayAddAttr $object vrayNurbsCurveMaterial;
          vrayAddAttr $object vrayNurbsCurveTesselation;
          vrayAddAttr $object vrayNurbsCurveStartWidth;
          vrayAddAttr $object vrayNurbsCurveLockEndWidth;
          vrayAddAttr $object vrayNurbsCurveEndWidth;
          setUITemplate -pst attributeEditorTemplate;
          // Activate renderable
          setAttr ($object + ".vrayNurbsCurveRenderable") 1;
          // Replace VRayLightMtl1 by your material
          connectAttr -force VRayLightMtl1.outColor ($object + ".vrayNurbsCurveMaterial");
          }
          Aleksandar Hadzhiev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            Could this work with curves coming from Bifrost?
            https://linktr.ee/cg_oglu
            Ryzen 5950, Geforce 3060, 128GB ram

            Comment


            • #7
              Thanks again Hermit.Crab worked perfectly. Really appreciate your help.

              Comment


              • #8
                Originally posted by oglu View Post
                Could this work with curves coming from Bifrost?
                I don't think so. There seem to be available compounds that convert strands to tubes, which may be helpful.
                Aleksandar Hadzhiev | chaos.com
                Chaos Support Representative | contact us

                Comment


                • #9
                  Yeah, you will need to use the extrude_strands from Maxime and then convert BF geo to a Maya mesh.

                  Attached Files

                  Comment

                  Working...
                  X