This isn’t really a gl question, more a conceptual thing…
How should one implement a snap-to grid in 2D ortho viewing? I can place vertices and drag objects. Now I have a requirement to snap the vertices to points on a grid.
I can’t see that rendering thousands of grid points in selection mode is the way to do it. It would be hopelessly inffecient. Maybe it would be ok for add vertices, but not dragging.
The effect that I’m supposed to implement is… when you drag a point with the mouse it will jump from grid point to grid point. I can’t find any reference material on this and it seems really tricky.
Any help appreciated.
Matthew