This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::BakeLighting Class

Header:#include <UnigineRender.h>

BakeLighting Class

Members


int getVoxelsPerFrame()

Return number of voxels computed and visualized per single frame.

Return value

void setVoxelsPerFrame(int frame)

Sets number of voxels computed and visualized per single frame.

Arguments

  • int frame - Number of voxels per frame within the [1, 100] range. The default value is 1.
    Notice
    High values cause longer user interface response.

void bakeEnvironmentProbes()

Starts the process of light baking for all environment probes in the scene.

void bakeVoxelProbes()

Starts the process of light baking for all voxel probes in the scene.

void bake(const Vector< Ptr<Node> > & probes)

Starts the process of light baking for the all voxel and environment probes in the given list.

Arguments

  • const Vector< Ptr<Node> > & probes - List of voxel and environment probe nodes for which the process of light baking is to be performed.

void bakeAll()

Starts the process of light baking for all voxel and environment probes in the scene.

int isBaking()

Returns a value indicating if the process of baking is being performed at the moment.

Return value

1 if lighting is being baked; otherwise - 0.

int getCurrentBounce()

Returns a bounce being calculated at the moment.
Notice
If the process of baking is not being performed at the moment, 1 is returned.

Return value

Bounce number.

int getBounces()

Returns number of all bounces.

Return value

Number of bounces.

int getProgress()

Returns overall progress of light baking.
Notice
If the process of baking is not being performed at the moment, 0 is returned.

Return value

Overall baking progress, in percents.

int getProgressBounce()

Returns a value showing progress of calculating current bounce.

Return value

Bounce calculating progress, in percents.

float getVoxelSizeMultiplier()

Returns the value of the voxel size multiplier parameter. By default, it is equal to 1.0f.

Return value

Voxel size multiplier.

void setBounces(int bounces)

Sets number of bounces.

Arguments

  • int bounces - Number of bounces within the [1, 32] range. The default value is 1.

int getProgressLight()

Returns progress of light baking for the current LightVoxelProbe at the moment.

Return value

LightVoxelProbe progress, in percents.

BakeLighting * get()

Returns an instance of BakeLighting Class.

Return value

BakeLighting instance.

float getTimer()

Returns the time elapsed from the start of the process of baking.

Return value

Elapsed time, in seconds.

void setVoxelSizeMultiplier(float multiplier)

Sets the value of the voxel size multiplier parameter.

Arguments

  • float multiplier - Voxel size multiplier within the [0.0f, 8.0f] range. The default value is 1.

void stop()

Interrupts the process of light baking, if it is in performing state.

Ptr<Light> getCurrentLight()

Returns an instance of the LightVoxelProbe being calculated at the moment.

Return value

Current LightVoxelProbe.
Last update: 2018-08-10
Build: ()