• Create Account

Posted 22 December 2012 - 08:07 AM

Like L.Spiro wrote, the scenegraph should only be used as a transformation hierarchy. The general consensus these days also seems to be that a Draw() method does not belong in the entities themselves, rather the entities should provide all information that is needed to draw them to the render system.

This reduces the scenegraph basically to:
class Node {
Matrix transform;
Node parent;
}


Posted 22 December 2012 - 08:07 AM

Like L.Spiro wrote, the scenegraph should only be used as a transformation hierarchy. The general consensus these days also seems to be that a Draw() method does not belong in the entities themselves, rather the entities should provide all information that is needed to draw them to the render system.

This reduces the scenegraph basically to:
class Node {
Matrix transform;
Node parent;
}


Posted 22 December 2012 - 08:07 AM

Like L.Spiro wrote, the scenegraph should only be used as a transformation hierarchy. The general consensus these days also seems to be that a Draw() method does not belong in the entities themselves, rather the entities should provide all information that is needed to draw them to the render system.

This reduces the scenegraph basically to:

class Node {
Matrix transform;
Node parent;
}


PARTNERS