View Full Version : d3d9 crc32 logging
for model recognation would be nice
Jordon
01-27-2005, 01:06 PM
I think the pizza base may have it, also ict dx was released that includes a crc32 logger.
awww man I don't get it
it doesn't log the CRC's, I've added all the logging code:
// Generic Index
int iAx = 0;
// Debugging Texture CrC Vector
vector< DWORD > vTextures;
// ----- Function to catch all the given CrC's seen in a range
void CatchAllCrC( DWORD dwValue )
{
if( vTextures.size( ) == 0 )
{
vTextures.push_back( dwValue );
return;
}
for( int x = 0; x < vTextures.size( ); x++ )
{
if( vTextures[x] == dwValue )
return;
}
vTextures.push_back( dwValue );
// add_log( "Texture CrC: 0x%X", dwValue );
}
and
if( GetAsyncKeyState( VK_ADD ) & 1 )
if( iAx <= vTextures.size( ) )
iAx++;
else if( iAx > vTextures.size( ) )
iAx = 0;
if( GetAsyncKeyState( VK_SUBTRACT ) & 1 )
if( vTextures.size( ) != 0 )
add_log( "Texture CRC: 0x%X", vTextures[iAx] );
(beginscene)
and
if( pD3D9CurrTex != NULL )
if( dxPlayer.m_Stride == 64 )
if( pD3D9CurrTex->m_Format == 827611204 )
{
CatchAllCrC( pD3D9CurrTex->m_CrC32 );
if( vTextures[iAx] == pD3D9CurrTex->m_CrC32 )
return D3D_OK;
}
(DrawIndexedPrimitive)
but it still doesn't work, after I push ADD or SUBTRACT it doesn't add anything into my log file
supadupe
02-01-2005, 10:20 AM
i think the link to the pizzabase is dead.. .and as for ict.. .couldn find their source with crc32 fuctions in it
CouchPotato
02-01-2005, 05:35 PM
i think the link to the pizzabase is dead.. .and as for ict.. .couldn find their source with crc32 fuctions in it
If you can't find the logging func then you're an idiot.
Powered by vBulletin® Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.