Included Rtx Plugins

Included Rtx Plugins

Currently, RenderMan Pro Server ships with one Rtx plugin.


RtxSVG.so

This plugin utilized the open source librsvg to render SVG files. It is linked against a significant framework of open source libraries, which are resolved via $RMANTREE/lib/thirdparty. Font rendering via librsvg depends on the Pango libraries; to ensure compatability on Linux, those libraries must be pre-installed. On OS X, the libraries depend on the Fink installation of the Pango libraries. When rendering fonts, it is suggested that the fonts be converted to strokes to avoid any font incompatibilites or font configuration difficulties.

To use the plugin, one simply references the plugin via the standard Rtx Plugin URI interface. An example svgTexture shader is included below.

/*----------------------------------------------------------------------------
 * svtexture -  a simple example SVG texture-map shader
 *
 *---------------------------------------------------------------------------*/
surface svgtexture (uniform string svgfile = "")
{
    float ss = s;
    float tt = t;

    filterregion filt;
    filt->calculate2d(ss, tt);
    filt->scale(blurScale);
    filt->clampaspectratio(.1);

    string filename = concat("rtxplugin:RtxSVG.so?filename=",svgfile);

    color myCol   = texture(filename, filt, "filter", "gaussian", "lerp", 1);
    float myAlpha = texture(filename[3], filt, "filter", "gaussian", "lerp", 1);

    Oi = color(myAlpha);
    Ci = Oi * myCol;
}

RtxIES.so

PRMan now includes a new RtxIES plugin. This plugin, used by directlighting(), will take a standard IES profile input file and convert it to a single channel float texture that represents the lighting profile. By default it uses Hermite interpolation.