Color Displace
eharetea

Displace geometry points based on an image with VEX.

A .vfl file that allows surface displacement by image.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 12:11 AM


/*
* Author: Dan Lynch
*/

#pragma hint path file
#pragma hint uv hidden

Sop
d_colormap
        (
        float d 0.1h=1;
        int samples=10;
        string path "Mandril.pic";
        export vector uv 0;
        )
{
        
        float u getcomp(uv,0);
        float V getcomp(uv,1);
        Cd =  vector (colormap(path,ddddddddsamples"filter""gaussian"));
        addattribute("Hello"Cd);
        P+=Cd*h;
}




Downloads:
Download: color_displace.vfl 511 B

Please login or Click Here to register for downloads
Creative Commons License
Color Displace by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com