Jump to content

  • Log In with Google      Sign In   
  • Create Account

X file Materials not showing up..


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 KevinJohnson   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 August 2001 - 07:14 AM

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?

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS