Prev | Next



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;
}

Prev | Next


Pixar Animation Studios
Copyright© Pixar. All rights reserved.
Pixar® and RenderMan® are registered trademarks of Pixar.
All other trademarks are the properties of their respective holders.