tried figuring out what causing this problem but failed, please help me
THE PROBLEM:
Some vertices are running loop twice ( duplicate quad )
https://drive.google.com/file/d/18omWDEi2jYlKgo7ZnW4_eArVKrLARi20/view?usp=sharing
The map to render and RenderDoc file for diagnose:
https://drive.google.com/drive/folders/1R_7hqJh4XbmYSDQzMEid5R32jfTIP7Mt?usp=sharing
The code for getting vertex ids for rendering:
// m_pXXX - Pointer to specific lump data
for (size_t i = 0; i < m_FaceNum; ++i)
{
for (size_t j = 0; j < m_pFaces[i].edgeNum; ++j)
{
Int32 edgeID = m_pSurfaceEdge[m_pFaces[i].firstEdgeId + j];
if (edgeID > 0)
IDs.push_back(m_pEdges[edgeID].first);
else
IDs.push_back(m_pEdges[-edgeID].second);
}
}