Open pkgw opened 5 years ago
We have a text rendering class implemented in WWT and could make use of that for the hover.
@astrojonathan Do you mean SkyText and related classes? I was wondering: do those have full font coverage? The glyphs1.png
file doesn't seem to have all of the letters ...
We can create textures for any font set we want to use. We can also render to an HTML Canvas with HTML5 and capture that as a Texture and use that to render.
It should be possible to create annotations with associated text that appears when the mouse hovers over them:
However, this doesn't work anymore because
WWTControl.DrawHoverText
isn't implemented for the WebGL rendering backend (here).Fixing this will require some kind of implementation of generic text rendering in WebGL; this set of articles lays out some of the possible approaches.
CC @DougBurke.