Wednesday, March 16, 2011

Nodes and Connections - Iridescence

I was working on a friend's model of a mosquito the other day and I found out how to make a pretty good fake of iridescence for insect eyes!

In maya open the hypershade. Create a mia_material_x(_passes are preferred), blinn, or other kind of material with reflection color. Then create a ramp, found in the 2D Maya textures. Then under Maya Utilities, still in the hypershade, create a Sampler Info node.

Now it's time to hook everything up! Pay attention, though it's quite simple!

Middle mouse drag the sampler info onto the ramp and your connection editor will pop up. On the left click facing ratio and on the right expand UVCoord(it will be grayed out), then select the vCoord and hit close. This hooks up the ramp to the cameras, so that whenever you render the ramp faces the camera.

Next, MM drag the ramp onto your material and again the connection editor will pop up. Select outColor on the left and reflColor on the right, then hit close!

Render your scene with the material applied to the geometry, and voila! You have a pretty neat looking iridescence!

Enjoy!

You're always learning!

So it started off and I had only worked on my Bottle's piece for two weeks. I though I was doing pretty awesome seeing as how it only took two weeks! But then Panel Review during PCC3 came around. This is where a group of our instructors come and critique our hearts away. We put our render next to the real image and they tell us what they see wrong. Then when they've all said their piece about each asset, they tell us whether we're hirable or not. Pretty brutal if ya ask me! But it helped me to improve.

So therefore, I fixed a lot of things on my Bottles scene and I think as of now, it is one of my best works so far.

So without further ado, here it is again :]