views:

30

answers:

1

I have:

  • 3d pointset, wich calculated from 3d reconstruction process from N frame.
  • sample frame snapthot (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 snaphot) on it.

How can i create this triangulation + texture via OpenGL? I can't find any good examples for it =(

+1  A: 

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.

ybungalobill
I understand, that triangulation is a part of recontsrutaion. If I have a triangulation, should I add each triangle as a separate triangle ...? I think that it will not be effective ... I suggest that OpenGL must have some api like drawSurfase(pointset, triangles declaration based on pointset, (u,v) texture coordinates for each point in pointset)... does it exist?
Vie
I can't teach you OpenGl here. Find a good book or tutorial. You can use glVertexPointer family functions to directly send all your data efficiently to OpenGL.
ybungalobill
The problem is that I can't find good examples =(Thank you for your help! glVertexPointer will be my start point =)
Vie