question

Yoshitomo Okuyama avatar image
Yoshitomo Okuyama asked ·

Liu (unoccluded incident radiance of AtLightSample) of custom light filter is invalidated with Radius parameter?

MtoA 2.0.1
Arnold core 5.0.1.0

I created a plug-in for the custom light filter and I manipulate the Liu parameter, but when I operate the Radius parameter on the GUI, I am in trouble because Liu parameter is overwritten.
Is there anyone who knows about this?

if( sg->light_filter )
{
	AtRGB rgbLColor	 = AiNodeGetRGB( sg->light_filter->Lp, "color" );
	float myIntensity = AiShaderEvalParamFlt( p_intensity );
	sg->light_filter->Liu = rgbLColor * myIntensity;
}
arnold5
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

I tested a point light with the decay filter, and it works even after I change the radius.

The decay filter sets Liu

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

Can you send me your compiled filter, and the exact steps to reproduce the problem?

It sounds like the filter works when the radius is 0, and the filter doesn't work when the radius is non-zero.

Or does the filter work if you change the radius first, and then apply the filter?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Yoshitomo Okuyama avatar image
Yoshitomo Okuyama answered ·

@Stephen Blair

Thanks for your reply, your report has been very helpful. I read that changing the radius is still working, I tested my filter carefully again. With that I noticed that Arnold's Radius parameter is fixed in meters. I have created scenes in centimeters, and for testing it was only creating sizes of about 10 square centimeters. I was misunderstanding that Radius was set in units of 1 or 0.1 and it was not functioning. When set at the second decimal place or less, attenuation worked as expected. I solved it with a lot of effort. Again, thank you.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Yoshitomo Okuyama avatar image
Yoshitomo Okuyama answered ·
@Stephen Blair

Thank you for the question.

The result is the same as ArnoldRenderView and final image. Also, sorry, the parameter was "Liu" instead of "Li". Even if "Liu" is processed, if you operate "aiRadius" such as point light from the GUI, the result seems to be overwritten.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

Is it just the Arnold Render View, or do you see the problem when you render a final image?

What if you modify Liu instead?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.