Sign in to follow this  
Axiverse

Scene graphs and rendering

Recommended Posts

If you are using scene graphs, do you use a manager which will group things together by materials (thus reducing state changes) or do you just transverse the heiarchy with no regards to the materials? If you do, how do you implement such a system?

Share this post


Link to post
Share on other sites
A common solution is to just traverse the heirarchy, putting things you want rendered in a queue. This queue can then be sorted by material to reduce state changes before being fed to the renderer. Its quite probable that this queue wont change much between frames so it might be beneficial to arrange it so you wont have to completely re-sort it every frame.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this