5/30/15

MAYA / VRay _ sprite texture pixelated

If sprite particles get pixelated with Vray (when they scale) :
Vray -> Global Option ->  Materials -> uncheck texture filter map

5/20/15

MAYA / MEL_ offset animation multiple objects

// Proc to offset animation keyframe - two mode random or increment 
// select controllers and run the command : OffsetKeyFrame random 6 or OffsetKeyFrame increment 2
global proc OffsetKeyFrame (string $type, int $value)
{
    string $sel[] = `ls -sl`;
    
    if ($type == "increment")
    {
        int $val = 0;
        for ($item in $sel)
        {
        keyframe -e -iub true -r -o over -tc $val $item;
        $val += $value;
        }
    } 
    else if ($type == "random")
    {
    for ($item in $sel)
        {
        int $rnd = rand(0,$value);
        keyframe -e -iub true -r -o over -tc $rnd $item;
        }
    }
    select -r $sel;
}

5/18/15

MAYA_ Bake camera mapping / projection

I had problems to bake camera projection to 2D texture and for any reason Vray texture bake wasn't working properly. Here are the two solution I found :
- Baking the texture (but a bit blurry)
select the mesh and shader then in hypeshade -> edit -> convert to fileTexture (Maya Software)
- Create a texture reference object ( may not work well with animated deformation on mesh)
select the mesh then -> rendering -> texturing -> create texture reference object