   Effects
  When I try to render an object with effect(.fx) the object is not rendered!// Load effect functionDWORD dwShaderFlags = D3DXFX_NOT_CLONEABLE;#if defined( DEBUG ) || defined( _DEBUG )dwShaderFlags |= D3DXSHADER_DEBUG;#endif#ifdef DEBUG_VSdwShaderFlags |= D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT;#endif#ifdef DEBUG_PSdwShaderFlags |= D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT;#endifLPD3DXBUFFER pBufferErrors = NULL;hRet = D3DXCreateEffectFromFile( pScene->m_pD3DDevice, Buffer, NULL, NULL, dwShaderFlags, NULL, &pNewEffect->Effect, &pBufferErrors );if (FAILED(hRet)) { LPVOID pCompilErrors = pBufferErrors->GetBufferPointer();MessageBox(NULL, (const char*)pCompilErrors, "Fx Compile Error",MB_OK|MB_ICONEXCLAMATION);delete pNewEffect; return NULL; }    // Duplicate the filename for future lookups    pNewEffect->FileName = _tcsdup( FileName );D3DXHANDLE hTech;pNewEffect->Effect->FindNextValidTechnique( NULL, &hTech );pNewEffect->Effect->SetTechnique( hTech );    // Store this item    pScene->m_pEffectList[ pScene->m_nEffectCount++ ] = pNewEffect;//End loading//Render effectif ( EffectIndex >= 0 )pEffect = m_pEffectList[ EffectIndex ]->Effect;elsepEffect = NULL;if ( pEffect != NULL ){// Note : The valid technique we wish to use must already //   as active, usually by the CollectEffect callback.pEffect->Begin( &PassCount, 0 );// Loop through each effect file passfor ( ULONG k = 0; k < PassCount; ++k ){// Set the statespEffect->BeginPass( k );pEffect->CommitChanges( );// Draw this subset.pMesh->DrawSubset( j );// End the effect passpEffect->EndPass( );} // Next Pass// End. Restores device and shader states.pEffect->End( );}else pMesh->DrawSubset( j ); // DrawSubset is my render function!   
  did you set your worldviewprojection matrix for the object ?is the vertex declaration set correctly ?are the index and vertex buffers set ?any register need to be set for the fx effect to render the object ?like ambient, light color/direction etc ?;  May you give me an example, a link?Thank you!   ;  10x! I get it!(LE): ...but my effect is write to work with DxViewer! Can I change it for my game?   