Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document text tag style #372

Open
saxondigital opened this issue Jun 1, 2023 · 0 comments
Open

Document text tag style #372

saxondigital opened this issue Jun 1, 2023 · 0 comments
Assignees

Comments

@saxondigital
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant