I’m working on a project which requires multiple materials (shaders) and renderstates on a per camera basis. Trying to organize everything is a big mess. After playing with different scenegraphs and camera states, I always end up in some frustrated state.
On the way home today, I suddenly realized that the key thing bothering me is that while objects generally have some spatial organization, which is useful to organize in a spatial graph, their render attributes are better organized in a different graph that has nothing to do with their spatial graph. Thus, trying to stuff everything down one scene graph and manipulating things via camera tag states gets really complicated.
What do you guys think? Is Panda2 going to separate spatial vs material inheritances or is it going to use some other system?