Hello !
I have a plugin that creates instances in a vrscene via VRaySceneModifierInterface, The instances reference shaders that where present in the scene BEFORE preRenderBegin (in maya scene). It works fine with "standard" render, however when i use IPR, it crashes as soon as i change any value (diffuse amount., etc..) in the referenced shaders.
I suspect that changing shader values cause the shader to 'recompile' to another memory location (that's the case in my tests).
I use DefPluginParam to store plugin pointers. Am i doing something wrong or Is there any mechanism that i could use to update my references when they become obsolete, like it's the case for 'standard' geometry in maya ?
Thanks!
I have a plugin that creates instances in a vrscene via VRaySceneModifierInterface, The instances reference shaders that where present in the scene BEFORE preRenderBegin (in maya scene). It works fine with "standard" render, however when i use IPR, it crashes as soon as i change any value (diffuse amount., etc..) in the referenced shaders.
I suspect that changing shader values cause the shader to 'recompile' to another memory location (that's the case in my tests).
I use DefPluginParam to store plugin pointers. Am i doing something wrong or Is there any mechanism that i could use to update my references when they become obsolete, like it's the case for 'standard' geometry in maya ?
Thanks!
Comment