Terrain constrained for Maya


View Source Code

C++ source, last tested with Maya 2015.

Y-axis terrain constraint that uses Maya's raytrace api for crowds in the viewport. Includes test scene up in test/data and visual studio project




Paintable smooth deformer for Maya (2009)


Download for Win32/64 Maya 2009/2011/2012, Linux64 2010

View Source Code

I did a smooth deformer that averages vertices based on a paintable vertex weights. Option to keep border edgesat position.

Create by "deformer -type smoothDeform" mel, paint in Modify > Paint attributes tool. Option to keep border edges at position. Useful for smoothing animated meshes.

Used by Digital Frontier Inc. in Japan.







Cell noise maya texture (2010)


Celll noise node for maya: Download cellNoiseMaya.rar (Win32)
View Python Source Code

A simple cell noise generator Software/Hardware Renderer 2d Texture node (Windows 32: python and swig-.dll/.pyd, should run on any maya supporting python). Has random, grid and heaxgon mode. Cell noise generati on code is based on http://code.google.com/p/brianin3d-misc/source/browse/trunk/random/cxx/Voronoi.cpp.
To install put all python files in your plugin directory.
Load cellNoise.py, create texture in Hypershade.

·Has random, grid and heaxgon mode (0, 1, 2).
·If you have cells with jagged edges increase texture size attribute.










ks_LODTexture maya plugin


A Texture-LOD plugin (API)
download: Windows 8.5 and 2008 (32 bit)
and linux 8.0
(sorry, no "selected on/off screen" option here due to a bug in M3dView)

Install: Copy ks_LODTextureGUI.mel in you script directory.

and .mll into the plugin directory (i.e. C:\Programs\Autodesk\Maya2008\bin\plug-ins).

Start the GUI by loading the plugin (in the plugin manager).

Features:
Scales textures of selected objects in the current viewport (nurbs or polygon objects) down and sets them in the shader to save memory when rendering large scenes.
·Lets you select all objects in or off the current viewport (usefull if you want to reduce textures used in reflection objects off camera). Provides relative (by percent) and absolute scaling (fixed pixel width).

·You can choosee to keep the original image format for LOD textures or convert them to. iff. Creates attributes at texture nodes with file path per LOD.

·Option to automatically restore scene (or selected objects) to full resolution textures.

·Option to remove LOD attributes from scene.
·If texture scaling fails for any reason the file is added to an Error-bin in the Hypershade.

Limitations:

·No support for mentalray textures yet

·if shaders are assigned to different (selected and unselected) objetcs textures get scaled down anyways

Usage:

To create Texture LODs:

·If you are using a texture directory other than "sourceimages" in your project directory please set it in the workspace (File > Project > Edit Current)

·Make an object selection.

·If you want to add on/off screen objects in current viewport and hit the "Select add off screen objects" or "Select add objects visible in camera" button.

·Select your scale properties and prefered image format, hit the "scale textures down" button.

·Selected objects are automatically assigned to a new display layer to make it easier to reselect them.

To restore to LOD1/full resolution:
·hit "Restore textures (original resolution)" button.

·"Remove LOD Attributes" removes the dynamic attributes from the file nodes but does NOT reset the textures to LOD1 in the file nodes,

it just keeps the current texture.













    1. Texture resolution "zones".

  • »» top




  • plug-ins

    my public maya plugins.

    home