-
Notifications
You must be signed in to change notification settings - Fork 129
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
Comments
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
1、How to convert a 3D coordinate system into a corresponding 2D coordinate system based on camera's eye and target parameters?
![image](https://private-user-images.githubusercontent.com/131346088/243241742-b29b4f22-682d-4775-949a-d4746600fa22.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzNTI0ODIsIm5iZiI6MTcxODM1MjE4MiwicGF0aCI6Ii8xMzEzNDYwODgvMjQzMjQxNzQyLWIyOWI0ZjIyLTY4MmQtNDc3NS05NDlhLWQ0NzQ2NjAwZmEyMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNFQwODAzMDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZTcyZDUwNDAxNWM3MjU4NzM0YjA3ZDUxMmI1Njk1YTNiMWIyZTg1NTgxNmQ5MjE3MWMzZDc0YTI3MjYwODc3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kLeilgPfM4m6IZNpu7oKp_O9FFVymRtNevL3t4psuBY)
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?
I just want to achieve the effect shown in the above image
The text was updated successfully, but these errors were encountered: