How to render text in world space? #1233
-
does the vsg::text only available in screen space? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
vsg::Text is rendered in whatever coordinate frame you place it in, but that screen space or world space. You just add the vsg::Text node to your scene graph like any other object you want rendered. Almost all the examples put the scene into world coordinates and this includes the two text related examples vsgtext and vsgtextgroup. I'm a bit perplexed why you might think that vsg::Text is only available in screen space. As far as I'm aware there is nothing in documentation, discussions on the forum, or the examples that would suggest this. Could it be you asking the more advanced question about rendering text in ECEF (Earth Center Earth Fixed) as required by GIS and whole earth/space applications? Just place the text under a vsg::MatrxTrasform to place text set up in local origin into ECEF. |
Beta Was this translation helpful? Give feedback.
vsg::Text is rendered in whatever coordinate frame you place it in, but that screen space or world space. You just add the vsg::Text node to your scene graph like any other object you want rendered.
Almost all the examples put the scene into world coordinates and this includes the two text related examples vsgtext and vsgtextgroup.
I'm a bit perplexed why you might think that vsg::Text is only available in screen space. As far as I'm aware there is nothing in documentation, discussions on the forum, or the examples that would suggest this.
Could it be you asking the more advanced question about rendering text in ECEF (Earth Center Earth Fixed) as required by GIS and whole earth/space appl…