Hello!
I am using IForestGetRenderNodes() to collect all instances before rendering.
Then for every instance I generate unique name and use that name as a seed for material settings (for example, to apply random tint). This generated name can be used for cryptomatte hash also.
So, having a ForestPack object "WhiteCorals", I send to the renderer "WhiteCorals[0]", "WhiteCorals[1]", "WhiteCorals[2]" and so on.
Problem is that IForestGetRenderNodes() returns different random order of instances each time the scene file is reloaded. I have set number of CPU Threads in the ForestPack settings to 1, without any effect.
Unfortunately, TForestInstance structure does not have any global ID of the instance, so no way to sort instances by ID and keep same order of instances between animation frames.
I could sort instances by coordinates, but this sounds like a bad solution - what if distribution surface is animated?
Could you provide a solution to keep the order of instances constant?
<FP 8.2.6>
Mikhail.