Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

X file Materials not showing up..

4: Adsense

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   

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?




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.