Best place to trigger element sorting when camera position changes

Apr 17, 2014 at 10:12 PM
Hi, I have several billboard elements which follow the camera. I need to sort these for transparency reasons whenever the camera moves. Is there an event I can use to achieve this by adding the appropriate code in the handler?
Apr 29, 2014 at 9:18 AM
What is transparent - the billboards or other objects in the scene?
Should the billboards be shown behind or in front of the other objects in the scene?
Can you create an example/demo?
Apr 29, 2014 at 12:02 PM
I have uploaded an example solution here:

Download demo solution zip file

If you pan around you will see that depending upon which direction you are looking from the transparency works or doesn't depending on which billboard is nearest the camera. I need to add code to sort the viewport contents depending on their distance from the camera but I am unsure where to hook this in. It would be nice if the was a camera position changed event or something like that or perhaps you can suggest a better solution.
May 5, 2014 at 2:03 PM
Thanks for creating the demo, now I understand :)
I created