Better Text Handling on 3D Scene

September 4, 2014

This week saw among other things a refactor of the FRAK Engine’s TextComponent. It now has support for unicode. Also basic styling options used by the canvas text drawing API. It means better text handling on 3D scene.

The working principle is simple. Text is render to an off-screen 2D canvas element and upload as a texture. Which is later render on a quad somewhere in the scene.

The text can be updated in runtime (see the text example). It doesn’t seem to cause any significant speed decrease in both Chromium and Firefox.

better_text_handling_on_3D_scene

« »