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

How do I convert the model’s 3d local coordinates to global and then to screen coordinates for the 2d div. #17996

Closed
4 of 13 tasks
pxim opened this issue Nov 25, 2019 · 3 comments

Comments

@pxim
Copy link

pxim commented Nov 25, 2019

Description of the problem

How do I convert the model's 3d local coordinates to global
and then to screen coordinates for the 2d div.
image|690x213
image|690x225

target is a mesh.

This is the now result, have a large discrepancy.
image|690x462

https://discourse.threejs.org/t/how-do-i-convert-the-models-local-coordinates-to-global-and-then-to-screen-coordinates/11021

Three.js version
  • Dev
  • r110
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)
@WestLangley
Copy link
Collaborator

This is not a help site. Please do not ask help questions here.

@mrdoob
Copy link
Owner

mrdoob commented Nov 26, 2019

You can use the CSS2DRenderer:
https://threejs.org/examples/?q=css2d#css2d_label

@pxim
Copy link
Author

pxim commented Nov 26, 2019

You can use the CSS2DRenderer:
https://threejs.org/examples/?q=css2d#css2d_label

I solves this problem with use https://threejs.org/examples/?q=css2d#css2d_label
Thank you very much.

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

3 participants