Search code examples
c++opengl3dglut

OpenGl surface&texture


I have:

  • 3d pointset, which is calculated from 3d reconstruction process from N frame.
  • sample frame snapshot (for example first frame when camera in (0,0,0))
  • 3d to 2d corresponds

I want:

  • create triangulation of point set and put texture (frame snapshot) on it.

How can I create this triangulation + texture via OpenGL?


Solution

  • Triangulation must be part of the reconstruction process. OpenGL has nothing to do with it.

    When you done the triangulation you project the texture by specifying 2d screen coordinates of the vertices in the original frame as texture UV coordinates.