Skip to content

GUI late render pass #621

Answered by robertosfield
valleymouth asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Denis,

If you want to render text ontop of 3d elements in the scene and have them track the objects what I would do is put the text into the scene graph the underneath the transform that moves the object and set it's layout to billboard so it remains axis aligned and is able to scale nicely. The text position you'd set in the local coordinate frame of that subgraph.

Now the trick to making sure it renders would be to set the text depth value to 1.0 so that it always draws on top, to do this you'll need to override the Text graphics pipeline set by assigning a custom ShaderSet to the vsg::Text element. The vsgtext example has a code path that illustrates how to customize the ShaderSet t…

Replies: 1 comment

Comment options

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