Basically, I got two for loops, one inside the other, a variable is reset in the outer loop before starting the inner loop; the inner loop adds various values to it, and then I write the result to an array when the inner loop completes. But things are behaving weirdly; I’m not quite sure how to describe it, but there seems to be some spatial patterns (when the contents of the array are visualized as a pixel array (the array is arranged in rows and columns, with brightness proportional to the value stored on each “position”), there are shapes) even though each point in the array has no reason to act different due to their position in the array, the same code is running for each point, and I’m writing the results on a temporary array and only replacing the original array after the outer loop is done.
Odds are I got something wired wrong, the BP is a mess; but I’ve been trying to figure out where it is going wrong for a while with no success. Are for loops executed in parallel instead of in sequence? Does anything change with nested loops? Is the stuff connected to the “Completed” exec executed before the loop ends under any circumstance? Can you think of anything, other than a bug in my logic, that could be causing the order things are executed to affect the calculations?
ps:I’m not sure if it would be worth to post a screenshot of the BP here; like I said, it is such a mess that even me, the author, am having a hard time reading it…
pps:I do got some background in amateur programing, but when it comes to UE and blueprints, I’m mostly learning as I go; so maybe it’s just some dumb mistake on my part