Hacker News new | ask | show | jobs
by idbehold 433 days 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.
1 comments

Ironically, back in the OpenGL 2.0 days, it was a lot easier to do things like this.
Well, 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)

The API still exists, but in most implementations things like line styles and thickness are no longer supported.
Not 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).