I'm currently facing an issue related to the render order within my scene. All objects in the scene have transparency, and there are multiple child objects for each main object.
The scenarios below all use the same dataset:
Option 1 is functioning correctly, however, I need option 2 to work as the application user should not be required to manually input data into the system.
- If I manually add a set of objects in a specific order, they render properly.
- When I load all objects together and then add them to the scene in a particular order, the render sequence is incorrect. I assumed that they would be rendered based on the order added to the scene, which should yield the same outcome as option 1.
- Loading all objects and hardcoding the render order results in an incorrect sequence due to differences in depth among the child objects in the scene.
I'm puzzled as to why option 1 and option 2 produce different outcomes. Ideally, I'd like to avoid resorting to option 3.
Could there be factors beyond just the order of objects added to the scene influencing the render order?
Here are two videos for reference: