Changeset 12685


Ignore:
Timestamp:
12/02/11 14:45:18 (13 years ago)
Author:
lyard
Message:
fixed camera position bug with blurry pixels
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/BasicGlCamera.cc

    r12671 r12685  
    940940    void BasicGlCamera::calculatePixelsCoords()
    941941    {
    942         if (pixelsCoords[0][1] >= 0.299999 && pixelsCoords[0][1] <= 0.300001)
     942        if (pixelsCoords[0][1] >= (0.299999-hexRadius) && pixelsCoords[0][1] <= (0.300001-hexRadius))
    943943            return;
    944944        pixelsCoords[0][0] = 0;
    945         pixelsCoords[0][1] = 0.3;
     945        pixelsCoords[0][1] = 0.3 - hexRadius;
    946946        pixelsCoords[0][2] = 0;
    947947        pixelsCoords[1][0] = 0;
    948         pixelsCoords[1][1] = 0.3+2*hexRadius;
     948        pixelsCoords[1][1] = 0.3+hexRadius;
    949949        pixelsCoords[1][2] = 0;
    950950        neighbors[0][0] = 1;
     
    997997            break;
    998998            };
     999//            pixelsCoords[i][1] -= hexRadius;
    9991000
    10001001            updateNeighbors(i);
     
    10441045                     cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k];
    10451046
    1046 //                 cVertex[1] -= hexRadius;
    1047 
    10481047                 bool found = false;
    10491048                 for (int k=0;k<numVertices;k++)
     
    10741073                     cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k];
    10751074
    1076 //                 cVertex[1] -= hexRadius;
    1077 
    10781075                 for (int k=0;k<numVertices;k++)
    10791076                 {
Note: See TracChangeset for help on using the changeset viewer.