Description This function performs a Trace CPU Rays, Trace GPU Rays, or Trace Render, depending on the argument supplied. The precision of the resulting MPC raytrace is determined by the document's single/double MPC state, which can be accessed and modified using the MPCGetSimpleTraceMode() and MPCSetSimpleTraceMode() commands.
Syntax err = MPCRaytrace( mode )
Parameters err ( Huge_ ) Returned error error code, where a 0 indicates no error.
mode As String Input argument specifying the GPU raytrace action to be performed. Options are:
Example The following performs an MPC raytrace using the "GPU" option, which uses the GPUs to generate the starting rayset.
Sub Main
Dim mpcErr As Huge_ Dim mode As String
mode = "GPU" 'Generate rays on the GPUs mpcErr = MPCRaytrace( mode )
Print "Returned error code: " & mpcErr
End Sub
See Also
|