Global & thread-local settings
In addition to the processor settings that are connected to the actual processing objects, there are also global settings and thread-local settings.
These settings contain advanced parameters and affect all processing done while the library remains loaded.
Global settings
Global settings apply to all processes spawned from a specific Simplygon singleton instance. Most of these settings are also available through serialized pipelines, but some are limited to API usage.
All global settings are available in Simplygon class and have Global<setting name>
syntax.
Thread-local settings
Thread-local settings are set in the same way as global settings, but only apply to the current thread. These are not saved in pipelines.
All thread local settings are available in Simplygon class and have Thread<setting name>
syntax.
void SetGlobalAndThreadSettings( ISimplygon* sg )
{
sg->SetGlobalDefaultTangentCalculatorTypeSetting(ETangentSpaceMethod::Orthonormal);
sg->SetGlobalLogToFileSetting(true);
sg->SetThreadLocalLogFileNameSetting("C:\\DebugThreadOutput.txt");
}
void SetGlobalAndThreadSettings( ISimplygon sg )
{
sg.SetGlobalDefaultTangentCalculatorTypeSetting(ETangentSpaceMethod.Orthonormal);
sg.SetGlobalLogToFileSetting(true);
sg.SetThreadLocalLogFileNameSetting("C:\\DebugThreadOutput.txt");
}
def set_global_and_thread_settings(sg):
sg.SetGlobalDefaultTangentCalculatorTypeSetting(Simplygon.ETangentSpaceMethod_Orthonormal)
sg.SetGlobalLogToFileSetting(True)
sg.SetThreadLocalLogFileNameSetting('C:\\DebugThreadOutput.txt')