revert #1148 as prematurely incorporated

it's getting there, but there have been a few spots noted where it eroneously corrupts text, so we'll have to pull this back out for a bit barring a proper resolution
This commit is contained in:
AzaezelX 2024-01-11 13:33:03 -06:00
parent 78b56688d3
commit f946088214
22 changed files with 1813 additions and 20385 deletions

View file

@ -316,9 +316,16 @@ void ImposterCapture::_separateAlpha( GBitmap *imposterOut )
if ( 0 )
{
imposterOut->writeBitmap("png", "./imposterout.png");
FileStream fs;
if ( fs.open( "./imposterout.png", Torque::FS::File::Write ) )
imposterOut->writeBitmap( "png", fs );
bmp->writeBitmap("png", "./temp.png");
fs.close();
if ( fs.open( "./temp.png", Torque::FS::File::Write ) )
bmp->writeBitmap( "png", fs );
fs.close();
}
@ -475,13 +482,26 @@ void ImposterCapture::capture( const MatrixF &rotMatrix,
if ( 0 )
{
// Render out the bitmaps for debug purposes.
mBlackBmp->writeBitmap( "png", "./blackbmp.png" );
FileStream fs;
if ( fs.open( "./blackbmp.png", Torque::FS::File::Write ) )
mBlackBmp->writeBitmap( "png", fs );
mWhiteBmp->writeBitmap( "png", "./whitebmp.png" );
fs.close();
(*normalMapOut)->writeBitmap( "png", "./normalbmp.png" );
if ( fs.open( "./whitebmp.png", Torque::FS::File::Write ) )
mWhiteBmp->writeBitmap( "png", fs );
(*imposterOut)->writeBitmap( "png", "./finalimposter.png" );
fs.close();
if ( fs.open( "./normalbmp.png", Torque::FS::File::Write ) )
(*normalMapOut)->writeBitmap( "png", fs );
fs.close();
if ( fs.open( "./finalimposter.png", Torque::FS::File::Write ) )
(*imposterOut)->writeBitmap( "png", fs );
fs.close();
}
}