DAZ Script |
---|
DzScriptedRenderer () |
void | defintionFileChanged () |
Implements a script-able RenderMan interface for the scene to render itself through the 3Delight renderer.
See Also:
Attention:
void : buildEnvironmentSpaceTransform()
Builds an environment space transform that can be used by shaders to account for differences between the application and the 3Delight render engine.
Since:
void : cameraProject( DzCamera camera, Number width, Number height )
Sets up the camera for the pass.
Parameter(s):
Boolean : continueAfterPreProcess()
Return Value:
true
if the renderer should use the call to RiSurface, RiDisplace, RiLight, or RiAreaLight, otherwise false
.void : createLight( DzLight light, String shadowMap )
Creates a light in the stream.
Parameter(s):
void : deleteFiles( Array files )
Deletes a list of files.
Parameter(s):
void : doDefaultDisplay()
Causes the renderer to call the same display as the standard 3Delight renderer.
String : doDefaultShadowPass( DzRenderOptions options, DzCamera camera, DzLight light, String dir, Boolean reuse )
Parameter(s):
true
and a shadow map already exists, it is reused.Return Value:
Array : doDefaultShadowPass( DzRenderOptions options, DzCamera camera, String dir, Boolean reuse )
Parameter(s):
true
and a shadow map exists by the the same label of a light exists, the shadow map is reused instead of being generated.Return Value:
void : doDefaultShadowPassEnd( DzRenderOptions options, DzCamera camera, DzLight light )
Cleans up after doDefaultShadowPassPrep().
Parameter(s):
Attention:
String : doDefaultShadowPassPrep( DzRenderOptions options, DzCamera camera, DzLight light, String dir, Boolean reuse )
Parameter(s):
true
and the map already exists, it is reused.Return Value:
Attention:
void : doShutter( DzRenderOptions opts )
Script implementation of the RiSpec RiShutter() function.
Parameter(s):
void : fullSceneCameraProject( DzCamera camera, Number width, Number height )
Sets up the camera for the pass, ensuring all render-able objects are in view.
Parameter(s):
String : getDefaultShaderSearchPath()
Return Value:
Return Value:
String : getDisplacementPreProcessScript()
Return Value:
DzRenderHandler : getHandler()
Return Value:
Attention:
DzLight : getLight( Number index )
Parameter(s):
Return Value:
index
(if valid), otherwise NULL.Number : getLightCount()
Return Value:
String : getLightPreProcessScript()
Return Value:
Return Value:
DzNode : getNode( Number index )
Parameter(s):
Return Value:
index
(if valid), otherwise NULL.Number : getNodeCount()
Return Value:
Return Value:
Number : getNumIlluminateHandels()
Return Value:
Attention:
DzElement : getPropertyHolder()
Return Value:
Attention:
Return Value:
String : getSurfacePreProcessScript()
Return Value:
void : prepareMotionSamples()
Prepares motion samples for all nodes to render.
void : prepareMotionSamples( Array nodes )
Prepares motion samples for a list of nodes.
Parameter(s):
void : prepareNodeMotionSamples( DzNode node )
Prepares motion samples for node
.
Parameter(s):
void : removeLight( Number index )
Removes a light from the render list.
Parameter(s):
void : removeNode( Number index )
Removes a node from the render list.
Parameter(s):
void : renderBackDrop( DzBackdrop backdrop, Number width, Number height )
Renders the backdrop for the scene.
Parameter(s):
void : renderNode( DzNode node )
Adds a node to the list of nodes to be rendered.
Parameter(s):
void : renderNodes( Array nodes )
Adds a node to the list of nodes to be rendered.
Parameter(s):
Number : riAreaLightSource( String name, Array tokens, Array params )
Script implementation of the RiSpec RiAreaLightSource() function.
Parameter(s):
tokens
.Return Value:
void : riAtmosphere( String name, Array tokens, Array params )
Script implementation of the RiSpec RiAtmosphere() function.
Parameter(s):
tokens
.void : riAttribute( String name, Array tokens, Array params )
Script implementation of the RiSpec RiAttribute() function.
Parameter(s):
tokens
.void : riAttributeBegin()
Script implementation of the RiSpec RiAttributeBegin() function.
void : riAttributeEnd()
Script implementation of the RiSpec RiAttributeEnd() function.
void : riBegin( String ribPath )
Script implementation of the RiSpec RiBegin() function.
Parameter(s):
void : riCamera( String camera, Array tokens, Array params )
Script implementation of the RiSpec RiCamera() function.
Parameter(s):
tokens
.void : riClipping( Number hither, Number yon )
Script implementation of the RiSpec RiClipping() function.
Parameter(s):
void : riClippingPlane( Number x, Number y, Number z, Number nx, Number ny, Number nz )
Script implementation of the RiSpec RiClipping() function.
Parameter(s):
Script implementation of the RiSpec RiColor() function.
Parameter(s):
void : riConcatTransform( DzMatrix4 transform )
Script implementation of the RiSpec RiConcatTransform() function.
Parameter(s):
void : riCoordinateSystem( String space )
Script implementation of the RiSpec RiCoordinateSystem() function.
Parameter(s):
void : riCoordSysTransform( String space )
Script implementation of the RiSpec RiCoordSysTransform() function.
Parameter(s):
void : riCropWindow( Number xmin, Number xmax, Number ymin, Number ymax )
Script implementation of the RiSpec RiCropWindow() function.
Parameter(s):
void : riDeclare( String name, String declaration )
Script implementation of the RiSpec RiDeclare() function.
Parameter(s):
void : riDepthOfField( Number fstop, Number focallength, Number focaldistance )
Script implementation of the RiSpec RiDepthOfField() function.
Parameter(s):
void : riDetailRange( Number minvis, Number lowtran, Number uptran, Number maxvis )
Script implementation of the RiSpec RiDetailRange() function.
Parameter(s):
void : riDisplacement( String name, Array tokens, Array params )
Script implementation of the RiSpec RiDisplacement() function.
Parameter(s):
tokens
.void : riDisplay( String name, String type, String mode, Array tokens, Array params )
Script implementation of the RiSpec RiDisplay() function.
Parameter(s):
tokens
.void : riDisplayChannel( String channel, Array tokens, Array params )
Script implementation of the RiSpec RiDisplayChannel() function.
Parameter(s):
tokens
.void : riElse()
Script implementation of the RiSpec RiElse() function.
void : riElseIf( String expression, Array tokens, Array params )
Script implementation of the RiSpec RiElseIf() function.
Parameter(s):
tokens
.void : riEndWorld( String message )
Attempts to finish the render.
Parameter(s):
void : riExposure( Number gain, Number gamma )
Script implementation of the RiSpec RiExposure() function.
Parameter(s):
void : riExterior( String name, Array tokens, Array params )
Script implementation of the RiSpec RiExterior() function.
Parameter(s):
tokens
.void : riFormat( Number xres, Number yres, Number aspect )
Script implementation of the RiSpec RiFormat() function.
Parameter(s):
void : riFrameAspectRatio( Number aspect )
Script implementation of the RiSpec RiFrameAspectRatio() function.
Parameter(s):
void : riGeometricApproximation( String type, Number value )
Script implementation of the RiSpec RiGeometricApproximation() function.
Parameter(s):
void : riHider( String type, Array tokens, Array params )
Script implementation of the RiSpec RiHider() function.
Parameter(s):
tokens
.void : riIdentity()
Script implementation of the RiSpec RiIdentity() function.
void : riIfBegin( String expression, Array tokens, Array params )
Script implementation of the RiSpec RiIfBegin() function.
Parameter(s):
tokens
.void : riIfEnd()
Script implementation of the RiSpec RiIfEnd() function.
void : riIlluminate( Number light, Boolean onOff )
Script implementation of the RiSpec RiIlluminate() function.
Parameter(s):
true
, adds the light to the list. If false
, removes the light from the list.void : riImager( String name, Array tokens, Array params )
Script implementation of the RiSpec RiImager() function.
Parameter(s):
tokens
.void : riInterior( String name, Array tokens, Array params )
Script implementation of the RiSpec RiInterior() function.
Parameter(s):
tokens
.Number : riLightSource( String name, Array tokens, Array params )
Script implementation of the RiSpec RiLightSource() function.
Parameter(s):
tokens
.Return Value:
void : riMakeBump( String pic, String tex, String swrap, String twrap, Number filterType, Number swidth, Number twidth, Array tokens, Array params )
Script implementation of the RiSpec RiMakeBump() function.
Parameter(s):
tokens
.void : riMakeCubeFaceEnvironment( String px, String nx, String py, String ny, String pz, String nz, String tex, Number fov, Number filterType, Number swidth, Number twidth, Array tokens, Array params )
Script implementation of the RiSpec RiMakeCubeFaceEnvironment() function.
Parameter(s):
tokens
.void : riMakeLatLongEnvironment( String pic, String tex, Number filterType, Number swidth, Number twidth, Array tokens, Array params )
Script implementation of the RiSpec RiMakeLatLongEnvironment() function.
Parameter(s):
tokens
.void : riMakeShadow( String pic, String tex, Array tokens, Array params )
Script implementation of the RiSpec RiMakeShadow() function.
Parameter(s):
tokens
.void : riMakeTexture( String pic, String tex, String swrap, String twrap, Number filterType, Number swidth, Number twidth, Array tokens, Array params )
Script implementation of the RiSpec RiMakeTexture() function.
Parameter(s):
tokens
.void : riMatte( Boolean onoff )
Script implementation of the RiSpec RiMatte() function.
Parameter(s):
void : riMultiplyShadingRate( Number ratemultiplier )
Script implementation of the RiSpec RiMultiplyShadingRate() function.
Parameter(s):
Script implementation of the RiSpec RiOpacity() function.
Parameter(s):
void : riOption( String name, Array tokens, Array params )
Script implementation of the RiSpec RiOption() function.
Parameter(s):
tokens
.void : riOrientation( String orientation )
Script implementation of the RiSpec RiOrientation() function.
Parameter(s):
void : riPerspective( Number fov )
Script implementation of the RiSpec RiPerspective() function.
Parameter(s):
void : riPixelFilter( Number filterType, Number xwidth, Number ywidth )
Script implementation of the RiSpec RiPixelFilter() function.
Parameter(s):
void : riPixelSamples( Number xsamples, Number ysamples )
Script implementation of the RiSpec RiPixelSamples() function.
Parameter(s):
void : riPixelVariance( Number variation )
Script implementation of the RiSpec RiPixelVariance() function.
Parameter(s):
void : riProjection( String name, Array tokens, Array params )
Script implementation of the RiSpec RiProjection() function.
Parameter(s):
tokens
.void : riQuantize( String type, Number one, Number qmin, Number qmax, Number ampl )
Script implementation of the RiSpec RiWQuantize() function.
Parameter(s):
void : riRelativeDetail( Number relativedetail )
Script implementation of the RiSpec RiRelativeDetail() function.
Parameter(s):
void : riReverseOrientation()
Script implementation of the RiSpec RiReverseOrientation() function.
void : riRotate( Number angle, Number dx, Number dy, Number dz )
Script implementation of the RiSpec RiRotate() function.
Parameter(s):
void : riScale( Number dx, Number dy, Number dz )
Script implementation of the RiSpec RiScale() function.
Parameter(s):
void : riScopedCoordinateSystem( String space )
Script implementation of the RiSpec DDiScopedCoordinateSystem() function.
Parameter(s):
void : riScreenWindow( Number left, Number right, Number bot, Number top )
Script implementation of the RiSpec RiScreenWindow() function.
Parameter(s):
void : riShader( String name, String handle, Array tokens, Array params )
Script implementation of the RiSpec RiShader() function.
Parameter(s):
tokens
.void : riShadingInterpolation( String type )
Script implementation of the RiSpec RiShadingInterpolation() function.
Parameter(s):
void : riShadingRate( Number size )
Script implementation of the RiSpec RiShadingRate() function.
Parameter(s):
void : riShutter( Number smin, Number smax )
Script implementation of the RiSpec RiShutter() function.
Parameter(s):
void : riSides( Number nsides )
Script implementation of the RiSpec RiSides() function.
Parameter(s):
void : riSkew( Number angle, Number dx1, Number dy1, Number dz1, Number dx2, Number dy2, Number dz2 )
Script implementation of the RiSpec RiSkew() function.
Parameter(s):
void : riSurface( String name, Array tokens, Array params )
Script implementation of the RiSpec RiSurface() function.
Parameter(s):
tokens
.void : riTransform( DzMatrix4 transform )
Script implementation of the RiSpec RiTransform() function.
Parameter(s):
void : riTransformBegin()
Script implementation of the RiSpec RiTransformBegin() function.
void : riTransformEnd()
Script implementation of the RiSpec RiTransformEnd() function.
void : riTranslate( Number dx, Number dy, Number dz )
Script implementation of the RiSpec RiTranslate() function.
Parameter(s):
void : riWorldBegin()
Script implementation of the RiSpec RiWorldBegin() function.
void : setBackgroundColor( Color color )
Sets the background color.
Parameter(s):
void : setCleanUpScript( String filename )
Sets the path of the script to be run when the script definition is called.
Parameter(s):
Attention:
Renderer
that refers to the current DzRenderer, SurfaceName
that refers to the name of the current surface, and Material
that refers to the current DzMaterial, exist for the duration of filename
. Referencing these variables from outside filename
will result in an error.void : setContinueAfterPreProcess( Boolean shouldContinue )
Sets whether or not the Ri call that launches a pre-process script should execute.
Parameter(s):
true
, the ri* call will be executed. If false
, the ri* call will not be executed.void : setCropWindow( DzRenderHandler handler )
Sets the crop window from the handler for the render.
Parameter(s):
void : setDefinitionFile( String definitionFile )
Sets the path of the script to run in order to define the renderer. Causes the renderer to be cleared, the cleanup script (if any) to be run and then the render script, clean up script, surface pre-process script, light pre-process script and displacement pre-process script to be cleared.
Parameter(s):
Attention:
filename
is executed the moment the call to this method is made. A global transient variable named Renderer
that referrs to the current DzRenderer, exists for the duration of filename
. Referencing this variable from outside filename
will result in an error.void : setDisplacementPreProcessScript( String filename )
Sets the path of the script to be run before a material displacement is processed.
Parameter(s):
Attention:
Renderer
that refers to the current DzRenderer, DisplacementName
that refers to the name of the current displacement, and Material
that refers to the current DzMaterial, exist for the duration of filename
. Referencing these variables from outside filename
will result in an error.void : setIsShadowPass( Boolean onOff )
Set whether or not this is a shadow pass.
Parameter(s):
true
, this pass will be marked as a shadow pass.void : setLightPreProcessScript( String filename )
Sets the path of the script to be run before riLightSource() and riAreaLightSource() are processed.
Parameter(s):
Attention:
Renderer
that refers to the current DzRenderer, and LightName
that refers to the name of the current DzLight, exist for the duration of filename
. Referencing these variables from outside filename
will result in an error.Boolean : setModeBiased( Boolean yesNo )
Sets whether or not the renderer is biased in the current mode.
Since:
Boolean : setModeDefaultMaterialClassname( String classname )
TODO: Add description.
Boolean : setModePhysicallyBased( Boolean yesNo )
Sets whether or not the renderer is physically based in the current mode.
Since:
Boolean : setModeSupportsAdvancedCamera( Boolean yesNo )
Sets whether or not the renderer supports advance camera properties in the current mode.
Since:
Boolean : setModeSupportsCameraBlades( Boolean yesNo )
Sets whether or not the renderer supports blades on the camera in the current mode.
Since:
void : setRenderScript( String filename )
Sets the path of the script that controls the rendering process.
Parameter(s):
Attention:
filename
is executed the moment the call to this method is made. Global transient variables named Renderer
that refers to the current DzRenderer, Camera
that refers to the current DzCamera, BackDrop
that refers to the current DzBackDrop, and RenderOptions
that refers to the current DzRenderOptions, exist for the duration of filename
. Referencing these variables from outside filename
will result in an error.void : setSurfacePreProcessScript( String filename )
Sets the path of the script to be run before riSurface is processed.
Parameter(s):
Attention:
Renderer
that refers to the current DzRenderer, SurfaceName
that refers to the name of the current surface, and Material
that refers to the current DzMaterial, exist for the duration of filename
. Referencing these variables from outside filename
will result in an error.void : defintionFileChanged()
Signature:“defintionFileChanged()”
Emitted when the definition file has changed.