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

label of segment widths #909

Open
kfarr opened this issue Nov 2, 2024 · 2 comments
Open

label of segment widths #909

kfarr opened this issue Nov 2, 2024 · 2 comments

Comments

@kfarr
Copy link
Collaborator

kfarr commented Nov 2, 2024

@rahulkgupta
Copy link
Collaborator

a couple questions / thoughts:

  • how to place the toggling of labels in the ux (maybe in photo mode?)
  • what happens if you want a different view w/ labels (eg what does it look like in x-section view)

@kfarr
Copy link
Collaborator Author

kfarr commented Nov 3, 2024

how to place the toggling of labels in the ux (maybe in photo mode?)

  • yes it'd probably be something people want to toggle in photo mode, and I could also see label toggling as a desirable option in the viewport as a button similar in spirit to grid toggle, snap-to-grid toggle

what happens if you want a different view w/ labels (eg what does it look like in x-section view)

  • if we do three.js geometry with labels facing camera it should look good from many perspectives -- for background, I tried doing a dom-based approach a year ago (below screenshot) but it didn't work well.
  • basic implementation idea to try: create entities in aframe-streetmix-parsers.js such as for each cylinders of 1cm radius coming out of the segment borders ~2 meters long, troika text labels centered between each. for label content, try segment name first line, width second line (centered) eventually this needs to be merged geometry but can prototype with separate entities. try first without a line connecting in between all segments, just text in between

screenshot from failed dom attempt:
image

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

No branches or pull requests

2 participants