Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Custom filter per channel inverse density

2 ANTWORTEN 2
GELÖST
Antworten
Nachricht 1 von 3
Anonymous
248 Aufrufe, 2 Antworten

Custom filter per channel inverse density

Hi all,

During camera ray creation, we give a per channel weight to each sample. However, during a filter node, inverse density returns a float.

Is there some way I could access either a per channel inverse density or the per channel weight created in the sample?

I am limiting some samples to particular channels, so it is not guaranteed that all channels are sampled equally, which can lead to color bias in the results. If it isn't currently possible to access this per channel weighting in a filter, could that be put in as a feature request?

Cheers,

Alan.

Tags (1)
Beschriftungen (1)
2 ANTWORTEN 2
Nachricht 2 von 3
Stephen.Blair
als Antwort auf: Anonymous

You could create a custom AOV that stores the custom weights.
Then you can recover the weight the set at camera ray creation on the shading side with ray->weight if sg->Rt == AI_CAMERA_RAY or something along those lines, and store it in a custom AOV.
You can set this custom shader in options.aov_shaders. At filtering time, you just need to request this AOV as an additional auxiliary AOV.


// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 3
Anonymous
als Antwort auf: Stephen.Blair

Hi Stephen, Thanks very much. Reading through the AOV API, I'm not 100% sure whether I need to register an AOV beforehand, or if I can just call AiAOVSetRGB with the name I want, and then call AiAOVGetRGB within my filter. Though I see the mention of AOVs being ignored if output drivers don't depend upon them ("AOVs are only enabled if there is an output driver which depends on a specific AOV for its input.") If I added the name and type of my custom AOV into my filter initialize, would that be adequate? It's not an output driver, so I wasn't sure.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report