c++ - Drawing a simple anti-aliased stickman in OpenGL -


i draw simple 2d stickman on screen. want anti-aliased.

the problem want use bones system, written after know how draw stickman based on joints positions. means can't use sprites - want stickman controlable in code.

it great if possible draw curves too.

drawing 3d stickman using model great if not better. camera positioned it's 2d, still have depth. problem have experience in maya, , exporting , vertex weighting of model in opengl seems mess...

i tried find libraries 2d anti-aliased drawing or enable multi-sampling , draw normally, had no luck. tried use opengl's native anti-aliasing seems deprecated , line joins bad...

i don't want complicated because, well, shouldn't - it's first part of program, , it's drawing stickman...

i hope guys can me, i'm sure know better me :)

you enable gl_smooth. check if device supports required line width smooth lines, can use glget(gl_smooth_line_width_range);

if want code generic, can use antialiased textures. take @ link

http://www.opengl.org/resources/code/samples/advanced/advanced97/notes/node62.html


Comments