4 ms·
It's quite astonishing how complicated it is to draw lines in 3D graphics. As a novice it was a little unbelievable that the primitives for drawing lines was ef
by idbehold 1y ago
It's quite astonishing how complicated it is to draw lines in 3D graphics. As a novice it was a little unbelievable that the primitives for drawing lines was effectively limited to a solid screen-space pixel wide line. Want to draw a 2 pixel wide line? Do it yourself with triangles.
- pixelesque 1y agoIronically, back in the OpenGL 2.0 days, it was a lot easier to do things like this.
- badsectoracula 1y agoWell, technically the API is still available pretty much everywhere (be it directly or via a wrapper library) and most hardware still has support for drawing lines, so it is still easy in current days to do things like this too :-P. I'm using it all the time when i want to draw lines in 3D. (though as far as lines and OpenGL is concerned i remember reading ages ago that not even SGI's implementation had full support for everything OpenGL was supposedly able to do)
- pixelesque 1y agoThe API still exists, but in most implementations things like line styles and thickness are no longer supported.
- badsectoracula 1y agoNot sure about line styles but so far i haven't seen any implementation that doesn't support line thickness (though i only use OpenGL on desktop).