2007-05-10

"Rainbow" effects with the mia_material (Arch&Design)

I was asked an innocent question about interference- and dispersion like effects in rendering, and I did the following nifty test:

Photo Sharing and Video Hosting at Photobucket

Basically, it's three layered copies of the material. One contains the diffuse component, and the reflection color set to red, and with an anisotropic reflection. The other two has the diffuse component set to black, and have green and blue reflection colors respectively.

The anisotropy is the same but I modified the anisotropy angle slightly between the three. This gives really neat "rainbow effects" like in a CD-Rom surface.

Enjoy the trick.

/Z

11 comments:

  1. Very nice effect! I was recently wondering how to do this. And what about prismatic diffraction?

    ReplyDelete
  2. Prismatic diffraction can be done in a "similar" way, but it will be very inefficient render wise, since every ray will split the sub-rays in 3.

    Ideally, you would use a ray switching shader so only the "topmost" ray gets split in 3, and any "lower down" rays (which are already "split") don't get split...

    /Z

    ReplyDelete
  3. Great! Thanks for that tip! One question though: How to get the anisotropic look on poly cylinders like you have on the left side? I do have a hard time to get that effect! Any hints? Thanks!

    ReplyDelete
  4. Thanks for that one. Great idea.

    Leaves me wondering what other cool effects you could get with similar techniques of layering shaders with slight alterations in their parameters.

    Hmm... I think I probably need to get out more ;-)

    ReplyDelete
  5. I am not sure I understand what you mean by "three layered copies of the material"
    How are the three layers being assembled in the A&D material?

    ReplyDelete
  6. In max, I used two nested "Shellac" to layer them. For a more "low level" mental ray approach, you could, use something like mib_color_mix in a home-brewn phenomena...

    /Z

    ReplyDelete
  7. I second the comment about UV pn poly disc...

    I can't get the CD effect like yours. Any tip Master Zap? Thanks

    ReplyDelete
  8. Any chance you could post me the scene?

    It would be much appreciated.

    Lee.

    ReplyDelete
  9. I wish you can make a video tutorial on this to help other artists :)

    ReplyDelete