Recompute scene graph function