-
Notifications
You must be signed in to change notification settings - Fork 42
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
API to draw points on top of VTS earth environment #193
Comments
There is no API for drawing point. But you can use renderer.drawImage to draw points. Small image is almost as good as point. In case you need to draw many points like point cloud, you can modify rendere.drawMesh function to support points as rendering primitive: Just add option to this function: vts-browser-js/src/core/renderer/interface.js Line 162 in a0d80a5
Pass that option into this function: vts-browser-js/src/core/renderer/gpu/mesh.js Line 107 in a0d80a5
and replace gl.TRIANGLES with gl.POINTS |
You can do it using renderer.drawLineString() and passing an array with a single point in it. |
The APIs to draw line, circle or image are exposed and available for use.
Do we have any API for drawing a point? If No, is there any example available that demonstrates how to draw points?
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: