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:

Unknown said...

aahh, nice image + tip!

Glacierise (a.k.a. Hristo Velev) said...

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

Master Zap said...

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

Unknown said...

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!

AndyN said...

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 ;-)

Michael said...

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?

Master Zap said...

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

Unknown said...

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

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

Unknown said...

Any chance you could post me the scene?

It would be much appreciated.

Lee.

DigitalDiva25 said...

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

arescet said...

how can i do this in maya?