Skip to content

lib.sprite.TextSprites

Thomas Mann edited this page Jan 17, 2024 · 2 revisions

TextSprites

in lib.sprite


Creates Points and Sprites from a text that can be animated and then rendered with [DrawPointSprites] or [DrawPointSpritesShaded].

This operator is an advanced solution that loads a BmFont fond definition and the matching MSDF (multichannel distance field) texture and generates a set of buffers. This buffers can then be modified and combined with other operators.

The Point - buffer includes position, orientation and W (size). The Sprite - buffer contains additional attributes for rendering like texture UV coordinates for characters, pivot, size and layout information.

Some tips:

  • You might replace the Point buffer with another buffer (e.g. [RadialPoints].
  • For rending basic text usage consider using [Text].

Check the examples.


Input Parameters

Name (Relevancy & Type) Description
Text (String) -
Filepath (String) -
Color (Vector4) -
Size (Single) -
Spacing (Single) -
LineHeight (Single) -
Position (Vector3) -
VerticalAlign (Int32) -
HorizontalAlign (Int32) -
OffsetBaseLine (Single) -

Outputs

Name Type
PointBuffer T3.Core.DataTypes.BufferWithViews
SpriteBuffer T3.Core.DataTypes.BufferWithViews
Texture SharpDX.Direct3D11.Texture2D

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

Clone this wiki locally