Skip to content

Document text tag style #372

@saxondigital

Description

@saxondigital

Tag style and size are determined by two factors:

  1. Each glyph node's 'tag_mode' encodes its individual style (font, box style, hide/show and size).

  2. Each camera applies a size multiplier (to all tags) specific to the camera view.

    • Camera's 'scale_z' is the scene wide size multiplier.
    • Camera's 'tag_mode' is the multiplier mode:
      • Fixed size (in screen pixels with no distance factor) = 1
      • Linear scale with distance (relative to node size) = 2
      • Non-linear scale distance (log of distance and node scale) = 3

The easiest way to set a style is to use the interface to get the look you want, then save and copy that nodes 'tag_mode' integer (it'll be a big number).

(wiki) User Commands - Text Tag Console

Note the camera's 'tag_mode' sets the multiplier mode, but is NOT encoded like the glyph node 'tag_mode' (valid camera mode values are 1, 2 and 3 as noted above).

FYI: the encoding is not intuitive, the integer is parsed from/to binary. We plan to document this later, but if you're immediately curious, you can convert the integer to hex, (the segments become a little more readable).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions