We are trying to create a Graph that doesn't rotate whereas other elements in the scene does move based on mouse movement. I found Display Grid
Above is a display grid I have created and I want to plot a graph with the same. Idea is to set color to the pixel based on the parameters. Reason to go with this is it will avoid people rotating the graph and avoid misinterpretation of the same.
@carolhmj You guys are awesome exactly what I was looking for
@carolhmj just one observation I want to keep this object in the right corner irrespective of screen size. But if I give vector it keeps moving from the right corner towards center based on screen size which is understandable. Any solution to this ?.
@carolhmj I am drawing lines , Which will specify vector position. If its rectangle / sphere yes its sticking but not for CreateLines… How can we give relative vectors so on resizing it would take care ?
Ooh, if you’re using meshes, then the solution will be to use Vector3.Unproject Vector3 | Babylon.js Documentation (babylonjs.com) to get the mesh’s position in screen coordinates and adjust it accordingly. But if you’re just going to use 2D elements, I’d recommend using GUI, it will be easier.
Thanks @carolhmj Yes its 2D so I started using GUI Lines…