mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
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:
parent
78b56688d3
commit
f946088214
22 changed files with 1813 additions and 20385 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue