Example programs
The following example programs are shipped with the Iray release. They illustrate, in a tutorial manner, the important interfaces and concepts. For compilation instructions, see How to compile a program.
If your variant of the neuray library requires an authentication key you find the details of how to use the key with the example programs in Starting and shutting down the Iray API.
The example programs make use of a shared header file, example_shared.h, which is explained in more detail in Starting and shutting down the Iray API.
- example_start_shutdown.cpp starts and shuts down the Iray API
-
example_rendering.cpp imports a scene file and renders its content
-
example_configuration.cpp configures the Iray API
-
example_progressive_rendering.cpp renders a scene progressively
-
example_networking.cpp starts the Iray API in networking mode
-
example_scene.cpp programmatically creates a scene by using the API
-
example_mdl.cpp demonstrates working with MDL materials and functions
-
example_triangle_mesh.cpp demonstrates working with geometry in the form of triangle meshes
-
example_polygon_mesh.cpp demonstrates working with geometry in the form of polygon meshes
-
example_subdivision_surface.cpp demonstrates working with geometry in the form of subdivision surfaces
-
example_freeform_surface.cpp demonstrates working with geometry in the form of freeform surfaces
-
example_on_demand_mesh.cpp demonstrates working with geometry in the form of on-demand meshes
-
example_http_server.cpp serves a rendered image by using the HTTP server
-
example_rtmp_server.cpp demonstrates an interactive video streaming server
-
example_user_defined_classes.cpp demonstrates writing of user-defined classes
-
example_plugins.cpp provides additional functionality by using plugins
-
example_importer.cpp implements an importer for a custom file format
-
example_exporter.cpp implements an exporter for a custom file format
-
example_psd_exporter.cpp implements an image exporter for the Photoshop image file format
-
example_bridge_client.cpp and example_bridge_server.cpp enable rendering of a scene using Iray Bridge