You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, July 6th 2018, 6:37am

Unable to trace/find error for the krpano.webGL.createPostProcessingShader()

Hi there,

I did a couple of searches and couldn't find anything about the issue I'm encountering, so hopefully I'm not duplicating this issue. I'm currently building a plugin that loads GLSL code dynamically (from an XML file) and runs the shaders in krpano for use within the viewer. On a whole everything is working correctly, however I'm having an issue with a particular GLSL shader I'm trying to load in. Normally when I use THREE.js and it tries to compile the GLSL code I input, it'll provide an error saying where the GLSL code isn't well-formed, however, I'm unable to retrieve any of the logs or errors relating to the issue.

This leaves me with the krpano.webGL.createPostProcessingShader() method returning null and not knowing why it failed.

I've set the <krpano showerrors="true">, but I'm not sure if there is another setting I need to be using to see deeper to trace the error.

Any help would be greatly appreciated!



Friday, July 6th 2018, 8:26am

Ok so I found the issue, silly mistake on my part.

<krpano showerrors="true" debugmode="true">

Turning on debug mode allowed me to the see errors and thus resolve the GLSL code issues.