Lens shader not working when render to File/Mplay

   103   0   1
User Avatar
Member
102 posts
Joined: Feb. 2015
Offline
Hello, I have an issue with a relatively simple scene in solaris.
I have build a lens shader in cvex ( cylindrical lens ) that works perfectly in Solaris viewport (Karma CPU)
but fails when I try to render to mplay or to disk ( using a classical "Karma CPU setup" in solaris )
I can see lens shader related info in the usd at "Render/rendersetting" , everything seems alright to me.
  • karma:camera:lensshader -> op:/obj/....
  • karma:camera:uselensshader -> True

But it renders as if uselensshader was set to false.
Is this a bug ? or Am I missing something ?

I use
Houdini FX Version 21.0.508
On Windows 11

Looking at the log Viewer, I see errors :

Error loading lens shader: Unable to load shader 'op:/obj/cylindrical_lens_test/LENS_SHADER/gui2one_cylindrical_lens1'
Command Exit Code: 1

Error loading lens shader: Unable to load shader 'op:/obj/cylindrical_lens_test/LENS_SHADER/gui2one_cylindrical_lens1'
Error - lens shader must have P and I as outputs: Unable to load shader 'op:/obj/cylindrical_lens_test/LENS_SHADER/gui2one_cylindrical_lens1'

But my cvex network correctly outputs P and I vectors
Edited by gui2one - Nov. 20, 2025 15:01:55
https://vimeo.com/user43710534 [vimeo.com]
  • Quick Links