You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Zilize. V-PathTracer won't work on windows platform, because it doesn't initialize OpenGL before using any OpenGL function like glGenTextures.
As V-PathTracer uses glfw and glad, I try to add function initOpenGL() before showInit(), it works, as follows:
voidApplication::showInit() {
usingnamespacenanogui;// A new function to initialize OpenGLinitOpenGL();
if(image->childCount()) image->removeChild(0);
mImageTexture = newGLTexture("../cache/init");
mImageTexture->loadFile("../cache/init.png");
imageView = newImageView(image, mImageTexture->texture());
performLayout();
}
voidApplication::initOpenGL()
{
int status = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
if (!status)
throwstd::runtime_error("Failed to initialize OpenGL!");
}
Thank you for your project, I have learned a lot.
The text was updated successfully, but these errors were encountered:
Hello, Zilize. V-PathTracer won't work on windows platform, because it doesn't initialize OpenGL before using any OpenGL function like glGenTextures.
As V-PathTracer uses glfw and glad, I try to add function initOpenGL() before showInit(), it works, as follows:
Thank you for your project, I have learned a lot.
The text was updated successfully, but these errors were encountered: