Announcement

Collapse
No announcement yet.

Thin film OSL shader

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

  • #16
    Click image for larger version

Name:	00.png
Views:	1
Size:	199.4 KB
ID:	855241 Click image for larger version

Name:	01.png
Views:	1
Size:	200.0 KB
ID:	855242 Click image for larger version

Name:	02.png
Views:	1
Size:	201.3 KB
ID:	855243 Click image for larger version

Name:	03.png
Views:	1
Size:	201.8 KB
ID:	855244 Click image for larger version

Name:	04.png
Views:	1
Size:	202.9 KB
ID:	855245

    for all the samples: black diffuse, map in the reflection slot, GTR BRDF, 0.55 RGlossiness.
    The dome is black and white, so all the colours are from the map.
    Map parameters (fixed across the samples):
    min thickness: 200
    max thickness: 666
    rest as default.
    Changing, by 0.05 increments is the IoR, from 1.15 to 1.65 in the last example (next post)
    Last edited by ^Lele^; 10-02-2015, 09:53 AM.
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #17
      Click image for larger version

Name:	05.png
Views:	1
Size:	204.2 KB
ID:	855246 Click image for larger version

Name:	A.png
Views:	1
Size:	204.1 KB
ID:	855247 Click image for larger version

Name:	B.png
Views:	1
Size:	204.4 KB
ID:	855248 Click image for larger version

Name:	C.png
Views:	1
Size:	205.1 KB
ID:	855249 Click image for larger version

Name:	D.png
Views:	1
Size:	204.9 KB
ID:	855250
      Lele
      Trouble Stirrer in RnD @ Chaos
      ----------------------
      emanuele.lecchi@chaos.com

      Disclaimer:
      The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

      Comment


      • #18
        Click image for larger version

Name:	E.png
Views:	1
Size:	205.4 KB
ID:	855251 Click image for larger version

Name:	F.png
Views:	1
Size:	205.3 KB
ID:	855252
        Lele
        Trouble Stirrer in RnD @ Chaos
        ----------------------
        emanuele.lecchi@chaos.com

        Disclaimer:
        The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

        Comment


        • #19
          I have this error in Maya : OSL shader error: Could not compile shader C:/Users/damien.SDC/Downloads/thinfilm/irridescence.osl (OSL to OSO)
          ?
          www.deex.info

          Comment


          • #20
            Holy sh...everytime I think I've seen everything something new comes up. So the only way to achieve this effect is to use this OSL shader? It would be indeed a great addition to the VrayMTL, and ignore clutter, the more buttons the better .
            A.

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

            Comment


            • #21
              nice tests lele. wonder the differents in rendertimes from start to end?
              Jonas

              www.jonas-balzer.de
              www.shack.de

              Comment


              • #22
                seconds.
                The effect of the shader itself on rendertime is negligible, and so quick i'd call it invariant from test to test.
                Lele
                Trouble Stirrer in RnD @ Chaos
                ----------------------
                emanuele.lecchi@chaos.com

                Disclaimer:
                The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                Comment


                • #23
                  We used this thin film map just yesterday to add extra realism to a CU of an old plaster type picture frame. The frame is the really ornate type, painted gold. Took a pretty complex shader flow graph to get it to look the way I wanted it. The thin film was used in screen mode on top of the reflection channel of the base layer (in a composite map). Then we VRayBlended some VRayFlakes on top, which turned out great. Client was blown away by the subtle color variations.

                  So, thanks, Vlado!

                  Comment


                  • #24
                    Nice! I'm glad this came in useful

                    Best regards,
                    Vlado
                    I only act like I know everything, Rogers.

                    Comment


                    • #25
                      Ah, good idea on the screen mode composite map. It's still magic to me how this works :P
                      Software:
                      Windows 7 Ultimate x64 SP1
                      3ds Max 2016 SP4
                      V-Ray Adv 3.60.04


                      Hardware:
                      Intel Core i7-4930K @ 3.40 GHz
                      NVIDIA GeForce GTX 780 (4096MB RAM)
                      64GB RAM


                      DxDiag

                      Comment


                      • #26
                        Originally posted by Art48 View Post
                        Ah, good idea on the screen mode composite map. It's still magic to me how this works :P
                        I dunno if that is the ideal way to use it, but it worked nicely for my purpose, and renders faster than a whole second material with a blend. My surface is already slow enough with VRayFlakes as a second material blended

                        Comment


                        • #27
                          I desaturated and played with the hue a bit so I'm not sure how accurate this is but it's an awesome shader.

                          Click image for larger version

Name:	thinFilmOSL_ottoman.jpg
Views:	1
Size:	446.7 KB
ID:	855323

                          Comment


                          • #28
                            I would like to test this OSL shader but it crashes max 2011 every time I try to load it! ...any idea? ...is it supposed to work with older releases?
                            PS the same happens with the other OSL (AFMFresnel)
                            Alessandro

                            Comment


                            • #29
                              Looking nice!

                              In the past we would achieve somewhat similar results with Tri planar falloff maps of different colors. More artist control, I guess, but more of a pain, and not accurate (though I don't know how accurate this is after you tweak it).

                              LightWave has had a thin film shader for twenty years, and it was fun to play with. This one is much easier to use in production.

                              Comment


                              • #30
                                nvm got it to work, but only as osl texture in reflection map mode.
                                Last edited by Morbid Angel; 24-02-2015, 04:13 PM.
                                Dmitry Vinnik
                                Silhouette Images Inc.
                                ShowReel:
                                https://www.youtube.com/watch?v=qxSJlvSwAhA
                                https://www.linkedin.com/in/dmitry-v...-identity-name

                                Comment

                                Working...
                                X