Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
yoshitomop
343 Views, 5 Replies

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;
}
Tags (1)
Labels (1)
5 REPLIES 5
Message 2 of 6
Stephen.Blair
in reply to: yoshitomop

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?



// Stephen Blair
// Arnold Renderer Support
Message 3 of 6
yoshitomop
in reply to: yoshitomop

@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.

Message 4 of 6
Stephen.Blair
in reply to: yoshitomop

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?



// Stephen Blair
// Arnold Renderer Support
Message 5 of 6
Stephen.Blair
in reply to: yoshitomop

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

The decay filter sets Liu



// Stephen Blair
// Arnold Renderer Support
Message 6 of 6
yoshitomop
in reply to: yoshitomop

@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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums