Visualization, in 3D, points, lines and triangles (C ++ API and file format)

How do people render, in 3D, points, lines and triangles (not just triangles) that are the result of C ++ code?

  • Is there a lightweight C ++ API?
  • Is there a combination of lightweight file format and stable 3D viewing?

OpenGL is too low-level. Also, I don't know how OpenGL is suitable for rendering points and lines. VTK is too complex for such a simple task and is not well documented. X3D is not a lightweight file format. Also, I have not found a viewer who convinces me. DirectX is platform independent.

I am really interested to know what people are doing to solve this problem.

+3


source to share


1 answer


Such libraries are rarely executed in half. If any such library exists I would really be interested.

First of all: consider exporting to any old 3D file format (or 2D in this case). Check here in this case.



Otherwise, you probably want to use OpenGL as it has a lot of community support and is platform independent. Have you checked out OpenSceneGraph ? OSG will take on some of this low-level burden for you.

If you're looking for light weight, go for OpenGL directly ( glut + glew are relatively easy to set up and draw some vertex buffers with points, lines or triangles): I find the redbook a really good resource for beginners (OpenGL <3.1).

+2


source







All Articles