Skip to content

update node #1300

Answered by dov
hasanshamsijeze asked this question in Q&A
Discussion options

You must be logged in to vote

This was recently discussed in #1298 .

I learned, that the preferred way is not to delete and recreate, but instead to insert a MatrixTransform above the Builder generated box in the scenegraph. You can then update the matrix attribute of the MatrixTransform to move the box from one place to another, without the need to delete it.

I also learned that in order to delete the node, you have to put it into a queue that survives at least three frames.

Make sure to turn on windowTraits->debugLayer=true; to see any vulkan errors.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hasanshamsijeze
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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