Download

Here are some useful and/or interesting Maya files I made. Enjoy them.

 

 

Expression driven Phong shader

We all use the Phong model day by day, however we don't necessarely know how it works. In this scene there are no lightsources. The color of the shader is calculated by a simple MEL expression which uses a locator as a lightsource. You can move the locator around or even modify the parameters in the expression. This little expression is going to appear in the book called Maya Bible 4!

Maya ASCII file

 

 

Expression driven Mandelbrot fractal

I've read about Mandelbrot and Julia fractals and realized that it is extremely simple to write a code that produces a fractal. This image is generated by my Mandelbrot fractal script. In this scene you will find an expression driven texture, that generates a Mandelbrot fractal, of course resoultion independently. (A big thank you goes to Duncan Brinsmead who corrected the original buggy version!) I recommend to check out the code itself (animation editors-> expression editor -> select filter by expression name). The parameters of the fractal are accesible in the "framp" node (look for the extra attributes) which drives the color channel.

Maya ASCII file

 

 

Expression driven distance shader

There was a shot in the movie Matrix where spider like creatures were harvesting the grown children. In that shot a RenderMan shader was used the make the children's shell bright as the spider's leg touched it.

This Maya shader does the same thing. It is based on a script which calculates the distances of the 8 locators controlling the spiders' legs. To set up the behavior of the shader the ramp "r" and the setRange "setDistRange" node should be used. The first defines the colors depending on the distance, the second defines the distance range to work with.

Maya ASCII file

 

 

"mirrorBallCorrect" plug-in for Maya 4.5

Details here.

If you take a photograph of a reflecting sphere, scan it and use it as a ball environment texture the 3D ball should have the same reflection as the real one. However because of the mathematical model Maya uses to "unfold" the image the result will be distorted. This plug-in helps to correct the distortion that occurs when using ball projection or ball environment textures. This is done by a special shading node called mirrorBallCorrect. The detailed description is included in the zip file or you can read it here.

Zip file (0,5MB): plug-in + detailed readme with pictures

 

 

UVfromWrapper script

This script allows you to generate UV map for poly surfaces based on a wrapper NURBS surface. This might be useful for complex shapes. The idea of this feature is from www.maya.digication.com.

Maya MEL file

 

 

 

 

BACK