|
Lumiverse
2.5
A framework for creating lighting control applications
|
Implementation of a distributed node that renders Arnold ass files. More...
#include <algorithm>#include <cstdio>#include <thread>#include <iostream>#include <locale>
Go to the source code of this file.
Functions | |
| void | init (const char *jsonPatchStr, const char *filename) |
| Initializes data structures. More... | |
| int | renderWrapper (const char *jsonDevicesStr, const char *jsonSettingsStr) |
| Fire off an arnold render. More... | |
| void | render () |
| Render a frame and pass it back to node. | |
| void | close () |
| Close the connection to node. More... | |
| float * | getFrameBuffer () |
| Get the frame buffer that was rendered by Arnold. | |
| void | interrupt () |
| Interrupt the current Arnold renderer. | |
| int | getWidth () |
| Get the width of the loaded image. | |
| int | getHeight () |
| Get the height of the loaded image. | |
| float | getPercentage () |
| Gets the progress of current frame as a percentage. More... | |
Implementation of a distributed node that renders Arnold ass files.
| void close | ( | ) |
Close the connection to node.
Closes the open connection with node
| float getPercentage | ( | ) |
Gets the progress of current frame as a percentage.
| void init | ( | const char * | jsonPatchStr, |
| const char * | filename | ||
| ) |
Initializes data structures.
Opens a connection to this DistributedArnold node. This includes sending it the ass file and plugin (buffer_driver).
| int renderWrapper | ( | const char * | jsonDevicesStr, |
| const char * | jsonSettingsStr | ||
| ) |
Fire off an arnold render.
Wrapper function for firing off an arnold render request. This spawns a new thread in which render() is actually called – we need to do this to unblock the node event loop.
When the rendering is completed, render writes a local file with the return value.
1.8.10