Hallo
I am very new to the VRAY SDK. I am using the SDK in a c++ (Visual Studio 2022) and when running the code below, I can only ever get one instance if the renderer to work. The next time I call it, the above error is displayed via an exception. Herewith a code snippet.
void runVRay()
{
VRayInit init(NULL, true);
if (!init)
{
xx = init.getSDKLibraryErrorString();
return;
}
try
{
VRayRenderer renderer;
//renderer.setOnLogMessage(logMessage);
renderer.setInteractiveSampleLevel(2);
renderer.setImageSize(1000, 1000);
// Start rendering.
renderer.startSync();
// Wait for rendering to end.
renderer.waitForRenderEnd();
}
catch (VRayException& e)
{
GTRACE(“VRay exception: %s”, e.what());
//// chaos_networking library not found or failed to initialize - this is the message received
}
catch (…)
{
}
}
What I am doing wrong?
Anton Heymann