How to make LightFilters available in GafferThree?

rolmuller
Explorer

How to make LightFilters available in GafferThree?

rolmuller
Explorer
Explorer

Hi,

I'm experimenting with writing custom light filters and was wondering how it would be possible to make them accessible in the GafferThree?

I see them being picked up in the ArnoldShadingNode dropdown, so I'm wondering if there's anything that needs to be added in the metadata for Katana to identify it as a lightfilter?

Thanks

0 Likes
Reply
Accepted solutions (1)
407 Views
2 Replies
Replies (2)

pal.mezei
Advocate
Advocate
Accepted solution

Hi!


Attached a simple shader example and a Katana scene to showcase a use of a custom filter in KtoA. The trick is to make the node type AI_NODE_SHADER and the output type AI_TYPE_NONE. This way the filter will show up when selecting the material for the lightFilter. It won't show up in GafferThree's lightfilter/viewer/Type list, that requires a lot more work and a custom viewport plugin.


light_filter.zip


Cheers,

Pal.

0 Likes

rolmuller
Explorer
Explorer

Great, that did the trick 🙂 Thanks!

0 Likes