Announcement

Collapse
No announcement yet.

OSL goodness in Vray

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

  • #76
    Originally posted by stevejjd View Post
    Thank you, I was after this Hair OSL on the forums a few weeks ago. I was also on the RenderMan forums where I found this code. Are you able to supply it as an OSL file? I tried copy paste it into a text editor and it didn't work.
    Sure, here you go:
    http://docs.sharktacos.com/images/tu.../DFhairTex.osl

    Comment


    • #77
      Thank you very much for that
      - Ill test it out and give feedback.

      Comment


      • #78
        That's amazing work. Can you add a SSS control?

        Comment


        • #79
          Originally posted by stevejjd View Post
          That's amazing work. Can you add a SSS control?

          Not sure what you are referring to. SSS control for what?

          Comment


          • #80
            hey sharktacos,

            where are you applying linear workflow on your fabric.OSL?

            MainColor = pow (MainColor, 2.2);?

            I've since removed this line under V-Ray 3.3 and Maya 2016 because of native color management. Is this the only thing you did to "correct" linear workflow for older versions?
            Last edited by snivlem; 31-05-2016, 11:56 PM.
            Maya 2020/2022
            Win 10x64
            Vray 5

            Comment


            • #81
              Oh sorry, still getting used to this forum - thought I posted a reply directly to the cloth OSL shader. I mean, is it possible to add SSS to the cloth OSL shader as I see many artists blend cloth materials with an SSS.

              Comment


              • #82
                Originally posted by snivlem View Post
                hey sharktacos,

                where are you applying linear workflow on your fabric.OSL?

                MainColor = pow (MainColor, 2.2);?

                I've since removed this line under V-Ray 3.3 and Maya 2016 because of native color management. Is this the only thing you did to "correct" linear workflow for older versions?
                Yes, that is the only place. Note that the version of the shader on my page has a lot of improvements over the original version on the Chaos page. Most significantly it fixes an error with the reflections. It also has a gamma input field so you can choose whether or not to use the gamma corrections, and it works with both bump and normal maps.

                Comment


                • #83
                  Originally posted by stevejjd View Post
                  Oh sorry, still getting used to this forum - thought I posted a reply directly to the cloth OSL shader. I mean, is it possible to add SSS to the cloth OSL shader as I see many artists blend cloth materials with an SSS.

                  Well, the beauty of OSL is you can just take my shader and add your own SSS closure to it.

                  The question I'd ask is why they are doing this? I'd imagine it is to get translucency. If that's the reason then a two-sided material might be better suited.

                  Comment


                  • #84
                    Thanks sharktacos!
                    Maya 2020/2022
                    Win 10x64
                    Vray 5

                    Comment


                    • #85
                      Haha I don't know any codeing, I rely on amazing people like you who truly know what they are doing. People definitely add sss to cloths to add softness and sss gives the two sided material effect. I'll look for a reference for you.

                      Comment


                      • #86
                        Originally posted by stevejjd View Post
                        Haha I don't know any codeing, I rely on amazing people like you who truly know what they are doing. People definitely add sss to cloths to add softness and sss gives the two sided material effect. I'll look for a reference for you.

                        In that case, just combine the Fabric OSL with an SSS material using the VrayBlendMtl set to additive.

                        Comment


                        • #87
                          Thank you for that hint ~ I wanted to ask why or when would I set Vray blend modes to additive ? What are examples of when you want additive or 'normal' blending mode? Thank you

                          Comment


                          • #88
                            it's a comp question. Additive is equivalent to doing a "plus" in comp, and "normal" is equivalent to a "over."

                            Comment


                            • #89
                              Thank you.

                              Comment


                              • #90
                                Hi guys,
                                I would like to ask for some help regarding the Fabric OSL.
                                I am trying to make a very soft fabric but it has a strange mirror reflection.
                                I get strange artifacts on my test scene.

                                Click image for larger version

Name:	Artifact.jpg
Views:	1
Size:	133.0 KB
ID:	862326
                                Click image for larger version

Name:	Artifact2.jpg
Views:	1
Size:	107.4 KB
ID:	862327
                                Click image for larger version

Name:	settings.jpg
Views:	1
Size:	86.2 KB
ID:	862328
                                Click image for larger version

Name:	Network.jpg
Views:	1
Size:	40.2 KB
ID:	862329

                                Comment

                                Working...
                                X