Skip to main content
GameDev.net gamedev.net
🔒 Locked

High Poly .x Models

Started by ovidiuvio Apr 20, 2009 at 12:31 PM 0 replies 700+ views
Original Post
ovidiuvio
ovidiuvio
I am currently trying to render high poly .x (directx mesh) models for a small shooter game that i am working on. I currently get : 20 fps - Athlon 3000+, geforce7300 - 200k poly mesh untextured Is this normal ? Rendering code for .x:

for(DWORD i = 0; i < numMaterials; i++)    
	{	
		// set the appropriate material for the subset	
		Dx9Render->m_pD3DDevice->SetMaterial( &vMaterials );  

		if( vTextures != NULL ) 
			Dx9Render->m_pD3DDevice->SetTexture( 0, vTextures );

		// draw the subset
		meshObjFromX->DrawSubset(i);    
	}
Any idea how efficient drawing .x meshes is ? Any help on rendering high-poly models is appreciated. Thank you.
feal87
feal87
200k vertices mesh is EXTREME for a game...use a lowdef mesh and a normal map created from the highdef one and you'll be fine without too much difference.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.