Shape at fixed view position
I would like to position a Shape3D object on a fixed position in the view. I.e. when the view is changed, rotated, translated or scaled the object shall always remain in the same position in the view. The object shall be pickable so I can't use overlay.
I update the transformation for the shape every time the view transform changes and I think I have all the tranformations sorted out correctly but I can't update the position without lag and flickering. The object moves a little and then jumps to the correct position again.
I have tried to implement it as a transform change behavior, put the update in Canvas3D.preRender and postRender and to update the shape TG at the same time as the view TG is updated but nothing of this has worked any better. There seems to be some delay between the view update and the scenegraph update.
Any suggestions on how to do this?