top | item 43656323

(no title)

idbehold | 10 months 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.

discuss

order

pixelesque|10 months ago

Ironically, back in the OpenGL 2.0 days, it was a lot easier to do things like this.

badsectoracula|10 months ago

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)