# class DirectXRenderer

A Renderer using DirectX 11 that can be used to preview a scene object containing geometry data by rendering it from selected SceneCamera nodes within the given scene and then storing the frames to disc. If using a Shading Node Network (having an IShadingNode assigned to the IMaterial), then the material can be previewed with the generated HLSL shader.

WARNING

This class is marked as deprecated and will be removed in a future version.

# Properties

Property Description
Name The name of the DirectXRenderer object. (Inherited from Object)
UseInMemoryShaderGeneration Use in-memory shader generation instead of creating a temporary .fx file on disk. Needs to be called after CreatePreviewer to have any effect.

# Methods

Method Description
AddObserver Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
CreatePreviewer Creates a previewer with the specified window dimensions.
GetBackgroundColor The current background color of the renderer.
GetClass Get the name of the DirectXRenderer class. (Inherited from Object)
InitializeSceneRenderData Initialize scene geometry's and generates material shaders for rendering.
IsA Returns true if DirectXRenderer is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull Returns true if the DirectXRenderer object is invalid. (Inherited from Object)
IsSameObjectAs Returns true if the DirectXRenderer object is valid. (Inherited from Object)
LoadGeometryData Loads a geometry data object and its materials into the previewer.
LoadGeometryDataWithMaterialShadingNetwork Loads a scene into the previewer. The material should have a shading network attached to it.
NonNull Returns true if the DirectXRenderer object is valid. (Inherited from Object)
PrintInfo Prints the content/info of the DirectXRenderer object to the log. (Inherited from Object)
RemoveObserver Removes a previously added observer object. (Inherited from Object)
RenderAlongCameraPathAndStorePics Render from each camera view in the camera target direction specified in the selection set with the scene cameras and stores the frame to the file path specified.
SetBackgroundColor The background color of the renderer.
SetRenderWireFrameMode The render mode to wire frame.
SetScene Sets a scene into the previewer. Use InitializeSceneRenderData to generate the material shaders.

# Static methods

Method Description
IsClassA Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast SafeCast makes sure the input object is of a class that can be cast into spDirectXRenderer, and if this is the case, returns the object cast into spDirectXRenderer. (Inherited from Object)

# Properties details

# Name

The name of the DirectXRenderer object. (Inherited from Object)

    # UseInMemoryShaderGeneration

    Use in-memory shader generation instead of creating a temporary .fx file on disk. Needs to be called after CreatePreviewer to have any effect.

      # Methods details

      # AddObserver

      Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

        # CreatePreviewer

        Creates a previewer with the specified window dimensions.

          # GetBackgroundColor

          The current background color of the renderer.

            # GetClass

            Get the name of the DirectXRenderer class. (Inherited from Object)

              # InitializeSceneRenderData

              Initialize scene geometry's and generates material shaders for rendering.

                # IsA

                Returns true if DirectXRenderer is a or is a descendant of the class named as the type parameter. (Inherited from Object)

                  # IsNull

                  Returns true if the DirectXRenderer object is invalid. (Inherited from Object)

                    # IsSameObjectAs

                    Returns true if the DirectXRenderer object is valid. (Inherited from Object)

                      # LoadGeometryData

                      Loads a geometry data object and its materials into the previewer.

                      WARNING

                      This method is marked as deprecated and will be removed in a future version.

                      Use SetScene instead.

                        # LoadGeometryDataWithMaterialShadingNetwork

                        Loads a scene into the previewer. The material should have a shading network attached to it.

                        WARNING

                        This method is marked as deprecated and will be removed in a future version.

                        Use SetScene instead.

                          # NonNull

                          Returns true if the DirectXRenderer object is valid. (Inherited from Object)

                            # PrintInfo

                            Prints the content/info of the DirectXRenderer object to the log. (Inherited from Object)

                              # RemoveObserver

                              Removes a previously added observer object. (Inherited from Object)

                                # RenderAlongCameraPathAndStorePics

                                Render from each camera view in the camera target direction specified in the selection set with the scene cameras and stores the frame to the file path specified.

                                  # SetBackgroundColor

                                  The background color of the renderer.

                                    # SetRenderWireFrameMode

                                    The render mode to wire frame.

                                      # SetScene

                                      Sets a scene into the previewer. Use InitializeSceneRenderData to generate the material shaders.

                                        # Static methods details

                                        # IsClassA

                                        Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)

                                          # SafeCast

                                          SafeCast makes sure the input object is of a class that can be cast into spDirectXRenderer, and if this is the case, returns the object cast into spDirectXRenderer. (Inherited from Object)