简体   繁体   English

OpenGl 表面和纹理

[英]OpenGl surface&texture

I have:我有:

  • 3d pointset, which is calculated from 3d reconstruction process from N frame. 3d 点集,由 N 帧的 3d 重建过程计算得出。
  • sample frame snapshot (for example first frame when camera in (0,0,0))样本帧快照(例如相机在 (0,0,0) 时的第一帧)
  • 3d to 2d corresponds 3d到2d对应

I want:我想要:

  • create triangulation of point set and put texture (frame snapshot) on it.创建点集的三角剖分并在其上放置纹理(帧快照)。

How can I create this triangulation + texture via OpenGL?如何通过 OpenGL 创建此三角剖分 + 纹理?

Triangulation must be part of the reconstruction process.三角测量必须是重建过程的一部分。 OpenGL has nothing to do with it. OpenGL 与它无关。

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.完成三角测量后,通过将原始帧中顶点的 2d 屏幕坐标指定为纹理 UV 坐标来投影纹理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM