I have to render a line with end points (Dimension Line). In OpenGL, I used GL_POINT_SMOOTH.
I’m looking for the BabylonJS equivalent for the same.
Is there any option in Babylon?
MeshBuilder.CreateSphere is not helpful as these line ends points should not be zoomed to bigger/smaller sizes on Camera zoom in/out.
Here’s a playground sample that renders endpoints are squares that I expect to get as smooth circles.
I do not think that WebGL support GL_POINT_SMOOTH unfortunately
what about a sphere with infinite distance set to on?
Babylon.js Playground (babylonjs-playground.com)
2 Likes
Hi @anand471 just checking in, have you had a chance to look at David’s playground?
@carolhmj , Sorry, I didn’t reply to this post for many days.
Actually, the infinite distance option works well in the playground sample.
But in our case, we use a custom Ortho camera & this solution didn’t fit for all scenarios right away. And I need to further investigate on that camera with this option.