Support NISortAdjustNode
Thanks to Capostrophic to getting this node loaded, the next step is getting this supported.
As far as I can tell these are the behaviors for the various flags, please correct me if I've gotten something incorrect.
Sorting modes
-
SortingMode_Inherit
I thought this was redundant at first, but it's not. This allows a node to inherit the parents sorting mode but set a new accumulator. -
SortingMode_OFF
No sorting is done on the node hierarchy, analogous to the traversal order renderbin. -
SortingMode_Subsort
Depth sorting relative to its hierarchy. Really it's just a sorted subgraph where the children can be re-ordered, but the hierarchy as a whole will stay at its position in the scenegraph draw order.
Accumulators
-
NiAlphaAccumulator
Some type of depth sorting bin, analogous to the depth sorted renderbin, where all alpha blended objects are sorted and drawn after opaques, absolute order is relative to the sorting modes from above. -
NiClusterAccumulator
Pretty much identical to anNiAlphaAccumulator
, but does not differentiate between alpha blended and opaque objects. This would be analogous to the standard back to front renderbin.
Now, I am not sure entirely sure replicating all this behavior is possible with nested renderbins, but I believe it is. Hopefully, things can be done without need for custom renderbins, as the sorting behaviors needed are all present in the default OSG bins.