OCIO transform in solaris for Materialx

   1712   2   1
User Avatar
Member
1 posts
Joined: March 2022
Offline
I'm developing an image plane tool in Solaris, which basically takes a grid and applies texture on it.

Now I want to apply OCIO transform for this image plane, and I'm trying to do it inside material library. The existing OCIO transform VOP doesn't satisfy my needs -- I also need "looks" involved. There's an existing vex function: ocio_transform(src, dest, looks, clr), but I found that if I use this function with the snippet node, it only works in principle shader.

I'm not familiar with VOP, is there any way I can make it work for materialx and usdpreviewsurface? Do I need to create custom VOP nodes to support that?

Any resource/learning material will also be appreciated. Thanks!
User Avatar
Member
207 posts
Joined: Nov. 2016
Offline
Hi!

I don't know if this can help you entirely, but I have a Mtlx sRGB -> ACES CG hda that you might use as starting point, of course as the name say, it will only convert the sRGB data into ACES CG space, but in theory you don't need the 'raw' conversion because that one is the same as linear and the you can use the same node to convert HDR data:

https://github.com/dynestudio/DyLib/tree/dev [github.com]

Hope that helps, cheers!
C. Dordelly - 3D Artist & Art Director
https://bento.me/cdordelly [bento.me]
https://www.instagram.com/cdordelly/ [www.instagram.com]
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
jwjnzhang
I'm developing an image plane tool in Solaris, which basically takes a grid and applies texture on it.

Now I want to apply OCIO transform for this image plane, and I'm trying to do it inside material library. The existing OCIO transform VOP doesn't satisfy my needs -- I also need "looks" involved. There's an existing vex function: ocio_transform(src, dest, looks, clr), but I found that if I use this function with the snippet node, it only works in principle shader.

I'm not familiar with VOP, is there any way I can make it work for materialx and usdpreviewsurface? Do I need to create custom VOP nodes to support that?

Any resource/learning material will also be appreciated. Thanks!

If you need to apply looks, you're out of luck. The transform either needs to be baked into the image using an external application such as nuke or the ocio command line tool.
  • Quick Links