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

Two drawing question #115

Open
victor-freedom opened this issue Jun 5, 2023 · 1 comment
Open

Two drawing question #115

victor-freedom opened this issue Jun 5, 2023 · 1 comment

Comments

@victor-freedom
Copy link

1、How to convert a 3D coordinate system into a corresponding 2D coordinate system based on camera's eye and target parameters?
I want to draw an arrow pointing to a certain point,And rotate along with the rotation
2、How to draw text on the canvas?
image
I just want to achieve the effect shown in the above image

@aothms
Copy link
Member

aothms commented Jun 5, 2023

You're in luck we have sth related to this https://github.com/opensourceBIM/BIMsurfer/blob/master/viewer/svgoverlay.js

It's used for measurements for example, draw a polyline as 3d points in the model, but render them as 2d SVG elements with lengths, because text looks so much better in svg than webgl.

hope that helps.

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