Announcement

Collapse
No announcement yet.

Simulating a camera lens coating shader...

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

  • Simulating a camera lens coating shader...

    Any ideas how I would go about simulating a shader for a camera lens coating?

    See the pictures for reference:
    Click image for larger version

Name:	stock-photo-camera-lens-1616973.jpg
Views:	1
Size:	28.9 KB
ID:	876907
    Click image for larger version

Name:	f505lens_468x298.jpg
Views:	1
Size:	17.0 KB
ID:	876908
    Click image for larger version

Name:	dep_2164260-Camera-lens.jpg
Views:	1
Size:	67.1 KB
ID:	876909

    I don't even know how to describe it. Its kind of purple, its kind of green depending on the angle. Sometimes it looks clear, sometimes it looks colored.
    I'm assuming you'd have to use some Fresnel action in there somewhere but I'm having trouble pinning it down. And suggestions?

  • #2
    Click image for larger version

Name:	color_coat_shader.jpeg
Views:	1
Size:	100.0 KB
ID:	846310

    Is this something you are looking for? its a bit extreme but can be controlled.
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      Yeah. Something like that. Even just as a starting place.
      It probably beats what I've got right now which is sort of a circular red/green gradient mapped into the reflection color slot. It looks all right, but there has to be a better way. I'd love it if you could sort of lay out a recipe for how you made that shader.

      Comment


      • #4
        hah, well it is pretty close to what you have and I spoke to a friend of mine and he suggested pretty much same thing. There is two ways you can do this as I did, place an RGB ramp with sampler info as facing ratio, into your refraction slot, this will color your refraction or you can do it to your reflection as well, or as in my case I did it to both. With that you can control the color of the facing ratio to get the color that you want. I don't think there is any proper way to get this kind of effect, unless some one writes a shader for it, I think maxwell has one.
        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