comparison Indoor.cpp @ 1294:6bbd50bda571

Слияние
author Ritor1
date Mon, 17 Jun 2013 09:09:30 +0600
parents 24bc24b64ec2 8a196c858180
children 86a83e12d795
comparison
equal deleted inserted replaced
1293:557c0c3cc314 1294:6bbd50bda571
345 { 345 {
346 BspRenderer_stru0 *pNode = &pBspRenderer->nodes[i]; 346 BspRenderer_stru0 *pNode = &pBspRenderer->nodes[i];
347 v4 = pRenderer->uTargetSurfacePitch * pNode->field_C._viewport_space_y; 347 v4 = pRenderer->uTargetSurfacePitch * pNode->field_C._viewport_space_y;
348 if ( pNode->field_C._viewport_space_y <= pNode->field_C._viewport_space_w ) 348 if ( pNode->field_C._viewport_space_y <= pNode->field_C._viewport_space_w )
349 { 349 {
350 //v5 = (char *)&pBspRenderer->nodes[0].field_C.viewport_right_side[pNode->field_C._viewport_space_y + v7]; 350 //v5 = (char *)&pBspRenderer->nodes[0].field_C.array_3D8[pNode->field_C._viewport_space_y + v7];
351 v5 = &pNode->field_C.viewport_right_side[pNode->field_C._viewport_space_y]; 351 v5 = &pNode->field_C.viewport_right_side[pNode->field_C._viewport_space_y];
352 v8 = &pNode->field_C.viewport_left_side[pNode->field_C._viewport_space_y]; 352 v8 = &pNode->field_C.viewport_left_side[pNode->field_C._viewport_space_y];
353 do 353 do
354 { 354 {
355 v1[v4 + *v8] = 255; 355 v1[v4 + *v8] = 255;
1257 { 1257 {
1258 //unsigned int v3; // edx@1 1258 //unsigned int v3; // edx@1
1259 //stru170 *v4; // ebx@1 1259 //stru170 *v4; // ebx@1
1260 //BLVFace *v5; // eax@1 1260 //BLVFace *v5; // eax@1
1261 //int v6; // ecx@2 1261 //int v6; // ecx@2
1262 unsigned __int16 TransitionSectorID; // ax@11 1262 unsigned __int16 v7; // ax@11
1263 //Vec3_short_ *v8; // esi@15 1263 Vec3_short_ *v8; // esi@15
1264 int v9; // edx@15 1264 int v9; // edx@15
1265 //signed int v10; // eax@18 1265 //signed int v10; // eax@18
1266 //signed int v11; // edi@19 1266 //signed int v11; // edi@19
1267 //signed int v12; // ecx@19 1267 //signed int v12; // ecx@19
1268 //signed int v13; // esi@19 1268 //signed int v13; // esi@19
1324 { 1324 {
1325 if ( abs(pFace->pFacePlane_old.dist + pBLVRenderParams->vPartyPos.x * pFace->pFacePlane_old.vNormal.x 1325 if ( abs(pFace->pFacePlane_old.dist + pBLVRenderParams->vPartyPos.x * pFace->pFacePlane_old.vNormal.x
1326 + pBLVRenderParams->vPartyPos.y * pFace->pFacePlane_old.vNormal.y 1326 + pBLVRenderParams->vPartyPos.y * pFace->pFacePlane_old.vNormal.y
1327 + pBLVRenderParams->vPartyPos.z * pFace->pFacePlane_old.vNormal.z) <= 589824 ) // we sure are standing at the portal plane 1327 + pBLVRenderParams->vPartyPos.z * pFace->pFacePlane_old.vNormal.z) <= 589824 ) // we sure are standing at the portal plane
1328 { 1328 {
1329 TransitionSectorID = pFace->uSectorID; 1329 v7 = pFace->uSectorID;
1330 if ( nodes[0].uSectorID == TransitionSectorID ) // draw back sector 1330 if ( nodes[0].uSectorID == v7 ) // draw back sector
1331 TransitionSectorID = pFace->uBackSectorID; 1331 v7 = pFace->uBackSectorID;
1332 nodes[num_nodes].uSectorID = TransitionSectorID; 1332 nodes[num_nodes].uSectorID = v7;
1333 nodes[num_nodes].uFaceID = uFaceID; 1333 nodes[num_nodes].uFaceID = uFaceID;
1334 nodes[num_nodes].uViewportX = pBLVRenderParams->uViewportX; 1334 nodes[num_nodes].uViewportX = pBLVRenderParams->uViewportX;
1335 nodes[num_nodes].uViewportZ = pBLVRenderParams->uViewportZ; 1335 nodes[num_nodes].uViewportZ = pBLVRenderParams->uViewportZ;
1336 nodes[num_nodes].uViewportY = pBLVRenderParams->uViewportY; 1336 nodes[num_nodes].uViewportY = pBLVRenderParams->uViewportY;
1337 nodes[num_nodes].uViewportW = pBLVRenderParams->uViewportW; 1337 nodes[num_nodes].uViewportW = pBLVRenderParams->uViewportW;
1338 nodes[num_nodes].field_C.GetViewportData(pBLVRenderParams->uViewportX, pBLVRenderParams->uViewportY, 1338 nodes[num_nodes].field_C._43F9E1(pBLVRenderParams->uViewportX, pBLVRenderParams->uViewportY,
1339 pBLVRenderParams->uViewportZ, pBLVRenderParams->uViewportW); 1339 pBLVRenderParams->uViewportZ, pBLVRenderParams->uViewportW);
1340 AddBspNodeToRenderList(++num_nodes - 1); 1340 AddBspNodeToRenderList(++num_nodes - 1);
1341 return; 1341 return;
1342 } 1342 }
1343 //v5 = v39; 1343 //v5 = v39;
1344 //v6 = a0; 1344 //v6 = a0;
1345 } 1345 }
1346 1346
1347 // 1347 v8 = &pIndoor->pVertices[pFace->pVertexIDs[0]];
1348 v9 = pFace->pFacePlane_old.vNormal.x * (pIndoor->pVertices[pFace->pVertexIDs[0]].x - pBLVRenderParams->vPartyPos.x) 1348 v9 = pFace->pFacePlane_old.vNormal.x * (v8->x - pBLVRenderParams->vPartyPos.x)
1349 + pFace->pFacePlane_old.vNormal.y * (pIndoor->pVertices[pFace->pVertexIDs[0]].y - pBLVRenderParams->vPartyPos.y) 1349 + pFace->pFacePlane_old.vNormal.y * (v8->y - pBLVRenderParams->vPartyPos.y)
1350 + pFace->pFacePlane_old.vNormal.z * (pIndoor->pVertices[pFace->pVertexIDs[0]].z - pBLVRenderParams->vPartyPos.z); 1350 + pFace->pFacePlane_old.vNormal.z * (v8->z - pBLVRenderParams->vPartyPos.z);
1351 if (p->uSectorID != pFace->uSectorID) 1351 if (p->uSectorID != pFace->uSectorID)
1352 v9 = -v9; 1352 v9 = -v9;
1353 if (v9 >= 0) 1353 if (v9 >= 0)
1354 return; 1354 return;
1355 1355
1489 v3->nodes[v3->num_nodes].uFaceID = uFaceID; 1489 v3->nodes[v3->num_nodes].uFaceID = uFaceID;
1490 v3->nodes[v3->num_nodes].uViewportX = LOWORD(pBLVRenderParams->uViewportX); 1490 v3->nodes[v3->num_nodes].uViewportX = LOWORD(pBLVRenderParams->uViewportX);
1491 v3->nodes[v3->num_nodes].uViewportZ = LOWORD(pBLVRenderParams->uViewportZ); 1491 v3->nodes[v3->num_nodes].uViewportZ = LOWORD(pBLVRenderParams->uViewportZ);
1492 v3->nodes[v3->num_nodes].uViewportY = LOWORD(pBLVRenderParams->uViewportY); 1492 v3->nodes[v3->num_nodes].uViewportY = LOWORD(pBLVRenderParams->uViewportY);
1493 v3->nodes[v3->num_nodes].uViewportW = LOWORD(pBLVRenderParams->uViewportW); 1493 v3->nodes[v3->num_nodes].uViewportW = LOWORD(pBLVRenderParams->uViewportW);
1494 v3->nodes[v3->num_nodes++].field_C.GetViewportData( 1494 v3->nodes[v3->num_nodes++].field_C._43F9E1(
1495 SLOWORD(pBLVRenderParams->uViewportX), 1495 SLOWORD(pBLVRenderParams->uViewportX),
1496 pBLVRenderParams->uViewportY, 1496 pBLVRenderParams->uViewportY,
1497 SLOWORD(pBLVRenderParams->uViewportZ), 1497 SLOWORD(pBLVRenderParams->uViewportZ),
1498 pBLVRenderParams->uViewportW); 1498 pBLVRenderParams->uViewportW);
1499 v7 = v3->num_nodes - 1; 1499 v7 = v3->num_nodes - 1;