LightsprintSDK 2021.08.08
|
Classes | |
struct | SceneViewerState |
Enumerations | |
enum | LightingIndirect { LI_NONE , LI_CONSTANT , LI_LIGHTMAPS , LI_AMBIENTMAPS , LI_REALTIME_ARCHITECT , LI_REALTIME_FIREBALL } |
enum | Transparency { T_OPAQUE , T_ALPHA_KEY , T_ALPHA_BLEND , T_RGB_BLEND } |
enum | PivotPosition { PP_TOP , PP_CENTER , PP_BOTTOM } |
Functions | |
void RR_ED_API | sceneViewer (rr::RRSolver *inputSolver, const rr::RRString &inputFilename, const rr::RRString &skyboxFilename, const rr::RRString &pathToData, SceneViewerState *svs, bool releaseResources) |
LightsprintEd - scene editor with global illumination.
enum rr_ed::Transparency |
Transparency modes used by realtime renderer, to trade speed/quality. Offline GI solver always works as if the highest quality mode is selected.
enum rr_ed::PivotPosition |
void RR_ED_API rr_ed::sceneViewer | ( | rr::RRSolver * | inputSolver, |
const rr::RRString & | inputFilename, | ||
const rr::RRString & | skyboxFilename, | ||
const rr::RRString & | pathToData, | ||
SceneViewerState * | svs, | ||
bool | releaseResources | ||
) |
Runs interactive scene viewer/editor.
Scene viewer includes debugging and editing features. All lights and materials can be freely edited and skybox changed. All lighting techniques for both realtime and precomputed GI are available via menu. All effects can be enabled and configured via scene properties.
Scene viewer can serve as a base for development of custom products. If you need new feature added, we offer to do it for you or license you full scene viewer source code.
inputSolver | Solver to be displayed. This is handy for debugging scene already present in solver. May be nullptr. |
inputFilename | If inputSolver is nullptr, we attempt to open and display this file. This is handy for scene viewer applications. |
skyboxFilename | If RRBuffer::loadCube() loads this skybox successfully, it is used, overriding eventual environment from inputSolver. |
pathToData | Path to directory with data, where subdirectories maps, shaders are expected. Must be terminated with slash (or be empty for current dir). |
svs | Initial state of viewer. Use nullptr for default state with realtime GI and random camera. |
releaseResources | Resources allocated by scene viewer will be released on exit. It could take some time in huge scenes, so there's option to not release them, let them leak. Not releasing resources is good idea e.g. if you plan to exit application soon. |