(03-11-2014, 19:24)OrangePL Wrote:
(03-12-2014, 10:01)Dude Wrote: I want terrain creator...
for( nZ = 0; nZ < common_size; nZ += r_ter_lod->integer ) { for( nX = 0; nX < common_size; nX += r_ter_lod->integer ) { for( nTri = 0; nTri < 6; nTri++ ) { // for the level of detail flX = (float) nX + ( ( nTri == 1 || nTri == 2 || nTri == 5 ) ? r_ter_lod->value : 0.0f ); flZ = (float) nZ + ( ( nTri == 2 || nTri == 4 || nTri == 5 ) ? r_ter_lod->value : 0.0f ); // fill our data m_pVertices[nIndex].x = scaleX * (flX - ( common_size / 2 )); m_pVertices[nIndex].y = scaleY * ter_getheight( (int) flX, (int) flZ ); m_pVertices[nIndex].z = scaleZ * (flZ - ( common_size / 2 )); // scretch the texture m_pTexCoords[nIndex].u = flX / r_ter_texturescratching->integer; m_pTexCoords[nIndex].v = flZ / r_ter_texturescratching->integer; m_pNormals[nIndex].x = 0; m_pNormals[nIndex].y = 1; m_pNormals[nIndex].z = 0; // com_print("%f %f %f\n", m_pVertices[nIndex].x, m_pVertices[nIndex].y, m_pVertices[nIndex].z ); nIndex++; } } }
(03-13-2014, 04:39)Dude Wrote: oh , not terrain creator I want have iw5 engine , Gsc compiler/extracter. MW3 SOURCE CODE !!! I need it!!!