• Advertisement


This topic is now archived and is closed to further replies.

X file Materials not showing up..

This topic is 6000 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok here is my stupid question... using directx 8.. I load a .X file object using Create helper method of the CD3DMesh class. In my render loop i load it to the screen with: m_pd3dDevice->SetMaterial( &m_oArray[x].mtrl ); m_pd3dDevice->SetTransform(D3DTS_WORLD, &m_oArray[x].matLocal ); m_pd3dDevice->SetStreamSource( 0, m_pVB[x], sizeof(CUSTOMVERTEX) ); m_pd3dDevice->SetVertexShader( FVF_CUSTOMVERTEX ); m_pd3dDevice->SetIndices( m_pIB[x], 0 ); m_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, m_dwNumVertices[x], 0, m_dwNumFaces[x]); How come my textures (as specified in my X file) don''t show up? what am i missing?

Share this post

Link to post
Share on other sites

  • Advertisement