• Advertisement
Sign in to follow this  

Scene graphs and rendering

This topic is 4618 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement