🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
X file Materials not showing up..
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement