Skip to content
Discussion options

You must be logged in to vote

Could you explain what you are using the callbacks for?

The VSG by design doesn't have callbacks like OSG does, neither scene graph strictly needs them, and having them adds memory and branching penalty that all nodes have to pay for even if the nodes that have any callbacks assigned to them. Not having them in the VSG is one of the reasons traversals can be an order of magnitude faster than the OSG.

Like the OSG the VSG has virtual void accept(..) and void travers(..) methods which you can override to customize behaviour. The node callbacks in the OSG are just in effect an alternative to subclassing a node to override the traverse(..) method, everything you can do with a node callback yo…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@hearga
Comment options

@robertosfield
Comment options

@hearga
Comment options

@robertosfield
Comment options

@hearga
Comment options

Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants