|
Public Member Functions |
| float | AspectRatio () |
| | Returns the aspect ratio of the picture.
|
| float | CurrentFrame () |
| | Returns the current frame.
|
| float | CurrentTime () |
| | Returns the current time.
|
| float | FrameRate () |
| | Returns the frame rate (in frames per second).
|
| int | PictureHeight () |
| | Returns the height of the picture.
|
| int | PictureWidth () |
| | Returns the width of the picture.
|
| str | PythonStartupScriptPath () |
| | Returns the path to the script that will be automatically run after the scene is loaded (if any).
|
| ERenderOutput | RenderOutput () |
| | Returns the current render output destination.
|
| EPresetRenderSettings | RenderQuality () |
| | Returns the current pictures render quality setting.
|
| None | SetAspectRatio (float fNewAspectRatio) |
| | Sets the aspect ratio of the picture.
|
| None | SetCurrentFrame (float fNewFrame) |
| | Sets the current frame.
|
| None | SetCurrentTime (float fNewTime) |
| | Sets the current time.
|
| None | SetFrameRate (float fNewFrameRate) |
| | Sets the frame rate (in frames per second).
|
| None | SetPictureHeight (int nNewPictureHeight) |
| | Sets the height of the picture.
|
| None | SetPictureSize (int nNewPictureWidth, int nNewPictureHeight) |
| | Sets the size of the picture, and adjusts aspect ratio accordingly.
|
| None | SetPictureWidth (int nNewPictureWidth) |
| | Sets the width of the picture.
|
| boolean | SetPixelFilterCallback (function fptrPythonPixelFilterCallback=None) |
| | Sets a callback method that will be called after the rendering of each pixel.
|
| boolean | SetPythonStartupScriptPath (str strPythonStartupScriptPath=None) |
| | Sets the path to the script that will be automatically run after the scene is loaded.
|
| None | SetRenderOutput (ERenderOutput eRenderOutput=RO_Screen) |
| | Sets the render output destination.
|
| None | SetRenderQuality (EPresetRenderSettings eRenderSetting=PRS_Final) |
| | Sets the picture's render quality setting.
|
| boolean | SetSkyFilterCallback (function fptrPythonSkyFilterCallback=None) |
| | Sets a callback method that will be called each time sky computation must be performed.
|
|
|
Sets a callback method that will be called each time sky computation must be performed.
- Parameters:
-
| fptrPythonSkyFilterCallback | the python method that will be called each time sky computation must be performed. |
- Remarks:
- This callback can be used to Add custom effects to the sky rendering. By returning a non zero transparency amount, your effects will be blended with standard Vue sky. The callback will be called just before Vue computes the sky color, with wich your return color will be blended according to the transparency amount you return. You also have the possibility to specify whether the effect should be applied behind clouds, or to both sky and clouds.
- Callback description:
- The Python callback should accept 6 floats, and return 4 ints (your sky color and behind clouds flag) and a float (transparency amount). The callback should look like this:
(i, i, i, i, f) fptrPythonSkyFilterCallback(x_pos, y_pos, z_pos, x_dir, y_dir, z_dir)
where:
(x_pos, y_pos, z_pos) is the ray starting point.
(x_dir, y_dir, z_dir) is the ray direction vector.
- Remarks:
- To remove the callback, simply call this method with no parameter.
- Returns:
- True if the callback was succesfully set (or removed), false otherwise.
- See also:
- SetPixelFilterCallback
|