13.1.1.7 RIBExporter -- The exporter class

Besides the usual methods that every exporter must implement this exporter has the following helper methods that have to be used by RenderPass objects:

isExportable( wobj)

applyViewTransform( V)
Applies the view transformation V (given as a mat4). This method corresponds to a RiConcatTransform() call. It outputs the view transformation V (which transforms from world to camera coordinates) as a RenderMan transformation. The handedness of the scene is taken into account.

applyLightSource( lgt)
Apply the light source lgt which must be a light source world object. This method corresponds to a RiLightSource() call.

applyTransformation( T, linearvel=None, angularvel=None)
Apply the transformation T (given as a mat4). This method corresponds to a RiConcatTransform() call. It outputs T as a RenderMan transformation. If a linear or angular velocity is given an motion block is written to enable motion blur.

applyMaterial( mat)
Apply the material mat which must be a Material object. This method corresponds to the calls RiColor(), RiOpacity(), RiSurface(), RiDisplacement() and RiInterior().

applyGeometry( geom)
Apply the geometry geom which must be a GeomObject.

writeShader( name, source)
Write a shader source file and return the name of the shader. Usually, you don't have to call this method yourself as it is called by the above applyXyz()-methods.