Skip to content

SO3XR3 light pose optimization in combination with tabulated light yields NAN gradients with SPP !=1 #1144

Answered by merlinND
dnakath asked this question in Q&A
Discussion options

You must be logged in to vote

One faster thing you could try first is to walk through the implementation of your new plugin and check for any potentially "unsafe" math, e.g.: sqrt(-1), acos(1.01), exp(very_large), etc.
By replacing each of those calls with a safe version (e.g. clamping the argument to a safe range), you might already find the source of your NaN gradients.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dnakath
Comment options

@merlinND
Comment options

Answer selected by dnakath
@dnakath
Comment options

@njroussel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants