maya electron microscope shader tutorial

8:15 am Maya tutorials

In this tutorial we will create a light weight maya shader that can be used to get that electron microscope look. The shader will work in Maya software render and in Mental ray and is lighting and shadow independent so you won’t have to worry about raytracing, light rigs, or having to use a certained type surface.

promo

First open up a new scene in Maya.

Next, Open up the render settings by Window> Rendering Editors> Render Settings and switch to Software Render and uncheck Enable default light like in the image below.

render settings

As far as the model goes, create a rather dense polygon sphere with the below settings.

sphere settings

At this point I should mention this shader does not look great on flat or squared of corners. On the other hand the more organic and rounded a model is the better it will look. So use something like Maya’s Sculpt Geomtry Tool to add defromations to the sphere like in the image below.

maya blob

With the modeling done open up Hypershade (Window> Rendering Editors> Hypershade).

In the Hypershade menu create a new Lambert material (Create> Materials> Lambert) and attach the material to the deformed sphere.

Open up the material in the attribute editor by double clicking on it in the hypershade. Select the ambient channel and attach a ramp to it.

ambient channel

render node

Next, select and graph the material so the it can be edited in the Hypershade work area. (right click on material and select Graph Network).

ramp shader

Now for the nuts and bolts. Looking at references of Electron microscope images the edges of objects have a some what glowing effect. We will use the extremely useful Sampler Info Node to copy this effect.

In the Hypershade go to Create> General Utilities> Sampler Info Node. Select the node and middle mouse drag over the ramp. On the connection pop up select Other from the list.

sample info node

In the connection editor select facing ratio on the left and v coordiante on the right.

connection editor

Doing a render now should have the same results as the below image. The facing ratio combined with ramp allows the shader to have complete control of its edges.

test image

Now that we have control over the edges only the ramp needs to be adjusted. Double click the ramp in the work area to see its attributes. Use the images below for the ramps colors and the final ramp result.

final ramp

color 1

color 2

That should finish up the shader and a render should result in something like the below image.

final render

Thank you for Reading……

One Response
  1. felip :

    Date: August 26, 2008 @ 9:13 am

    thanks for the tutorial, seems so useful.

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.