Various investigations into culling errors w.r.t matrix inversion resulted in

the conclusion that the osg::Matrix::inverse was broken, have lifted a new
implementation from sgl and it seems to work fine.  Will need further testing
but looks good.
This commit is contained in:
Robert Osfield
2002-02-07 01:15:15 +00:00
parent 7c7f195d6e
commit d12a726d5b
8 changed files with 177 additions and 50 deletions

View File

@@ -554,7 +554,7 @@ void Viewer::showStats(const unsigned int /*viewport*/)
for (int i=0; i<nbinsUsed; i++) {
primStats[i].setType(Statistics::STAT_PRIMSPERBIN); // cuts out vertices & triangles to save space on screen
ntop+=writePrims((int)(0.96f*vh-ntop),primStats[i]);
osg::notify(osg::INFO) << "ntop "<< ntop<< std::endl;
//osg::notify(osg::INFO) << "ntop "<< ntop<< std::endl;
}
maxbins=(primStats[0].getBins()>maxbins)?primStats[0].getBins():maxbins;
delete [] primStats; // free up