antz icon indicating copy to clipboard operation
antz copied to clipboard

Document text tag style

Open saxondigital opened this issue 1 year ago • 0 comments

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).

saxondigital avatar Jun 01 '23 12:06 saxondigital