» Back To Index
Demoniak3D/LUA Api: Export library
These functions allow to export the scene in a script format for external rendering engines (POVRay, YafRay).
HYP_Export.HYP_ExportSceneForRenderer
ExportSceneForRenderer
ExportSceneForRenderer makes it possible to export the current frame (from the camera point of view) in a script format for rendering engines such as POVRay or YafRay.
The type of script depends on the export plugins that are loaded when launching Hyperion.
By default, the export plugins for POVRay and YafRay are available (o3_plugin_raytracer_POVRAY.o3p and o3_plugin_raytracer_YAFRAY.o3p).
These export plugins intended for raytracers are still at the experimental stage. Some functionalities are not yet taken into
account: the most significant are transparencies, reflexions or refractions.
Syntax
HYP_Export.ExportSceneForRenderer( [plugin_name] );
- plugin_name - [STR127] - name of the export plugin. This name is optional.
If the name is not specified, the first loaded plugin will be used.
The names of the plugins are:
- >"o3PluginRaytracerPOVRAY": plugin POVRay
- >"o3PluginRaytracerYAFRAY": plugin YafRay