Hello,
I’m quite new to OpenGL. I’m studying the docs and playing with examples.
I’d like to ask you some hints to put me on the right way.
The goal is to draw a 3D path. It will look like a PCB milling toolpath (I can’t insert an example url due to forum policy).
My questions:
-
should I draw lines or cylinders?
-
I will provide a “zoom” feature. In fact I want to change the viewed area, not the rendered dimensions of the items. I mean: let’s say my lines at default distance are 3 pixel width. When the zoom changes I would like the lines are still rendered with a width of 3 pixels.
-
I also have a pan feature. In this case I want the object follows the mouse pointer regardless the actual distance. The only (cumbersome) way I found is to calculate the delta at a given distance as the item is at the default, but it is difficult and not accurate. Is there any trick using matrix and transformations?
Thanks in advance!
Mark