Cycles AOV Output

227 views
Skip to first unread message

aurora

unread,
Nov 21, 2022, 3:35:28 AM11/21/22
to gaffer-dev
Hola!
Does anyone know how to setup Cycles Custom AOV Output? Have tried a few things without success.
Cheers!

Alex Fuller

unread,
Dec 21, 2022, 3:34:46 AM12/21/22
to gaffer-dev
Hey Aurora,

The way I intended it was to make the data-type as `aovc myColorAOV` and `aovv myValueAOV`  similar to LightGroups, and then match the name to an `aov_output` node and do a separate ShaderAssignment to the object. You should have the attribute `cycles:aov:myColorAOV` or `cycles:aov:myValueAOV` assigned.

There was a bug pre-Cycles X where only SVM was supported and OSL didn't work with this:

I just did a test here with both OSL and SVM and I can't get it to work anymore so I'll go digging and fix this one, at least for SVM.

Cheers

Alex Fuller

unread,
Dec 21, 2022, 7:31:21 AM12/21/22
to gaffer-dev
I got a fix here: https://github.com/GafferHQ/gaffer/pull/5044

Unfortunately the Blender developers haven't addressed getting custom shader AOVs to function in OSL mode yet, only SVM.

aurora

unread,
Dec 21, 2022, 2:10:15 PM12/21/22
to gaffer-dev
Thank you Alex. Looking forward to the new release with this fix.
A

statix vfx

unread,
Sep 10, 2023, 1:51:01 PM9/10/23
to gaffer-dev

Hi Alex and Aurora,

Have there been any updates to this ? Is is it feasable to render custom AOVs in 1.3.2 ?
I have a basic setup that looks like it should work, but returns all black.


stx

aurora

unread,
Sep 11, 2023, 12:47:51 AM9/11/23
to gaffer-dev
Do you have a specific example you can show?
Working as expected here:
cycles_aov.png

Theodor Flo-Groeneboom

unread,
Sep 11, 2023, 3:18:24 PM9/11/23
to gaffer-dev
Turns out of im rendering with SVN instead of OSL it works.

Vahan Sosoyan

unread,
Oct 18, 2023, 8:24:48 AM10/18/23
to gaffer-dev
Hi Alex,

Any chance to get this working with OSL? 

I'm using Gaffer 1.3.4.0 

Thanks,

Murray Stevenson

unread,
Oct 18, 2023, 2:23:10 PM10/18/23
to gaffer-dev
Hey Vahan,

Unfortunately I'm fairly sure this is a limitation in Cycles itself, and from the looks of the Blender issue Alex linked earlier in the thread, it's still not possible. I've tried in a recent Blender 4.0 alpha build, and custom AOVs don't work in OSL mode there either...

Cheers,

M

Reply all
Reply to author
Forward
0 new messages