Tutorial and Example Programs
We provide several examples for the use of the neuray API that illustrate -- in a tutorial manner -- the important interfaces and concepts.
See the Getting Started Section for a description of how the example programs can be compiled.
If your variant of the neuray library requires an authentication key you need to replace the file examples/authentication.h that only contains a dummy key with the file that contains a valid authentication key. Failure to supply a valid authentication key will cause mi::neuraylib::INeuray::start() to abort with error code -2.
Getting Started with neuray
-
Example for Starting and Shutting Down the neuray API
Starts and shuts down the neuray API.
-
Example for Configuration of the neuray API
Configures the neuray API.
-
Imports a scene file and renders its content.
-
Example for Progressive rendering
Renders a scene progressively.
-
Serves a rendered image via the HTTP server.
-
Serves an existing video file via the RTMP server.
-
Extended example for the RTMP server
Demonstrates an interactive video streaming server.
-
Starts the neuray API in networking mode.
-
Demonstrates working with geometry in the form of triangle meshes.
-
Demonstrates working with geometry in the form of polygon meshes.
-
Example for Subdivision surfaces
Demonstrates working with geometry in the form of subdivision surfaces.
-
Demonstrates animated meshes.
-
Example for User-defined classes
Demonstrates writing of user-defined classes.
-
Provides additional functionality via plugins.
-
Implements an importer for a custom file format.
-
Implements an exporter for a custom file format.