Archived

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

SoRich

ID3DXMesh Texturing problem

Recommended Posts

Hello, all! I have a mesh of semisphere with texture coordinates. And I want to wrap it with proceduraly generated texture of clouds. As I understand texture binds is loading with mesh and mesh can be rendered only with predefined texture. Does anybody know how can I set texture for my ID3DXMesh at runtime? Becouse just
SD3dDeviceI->SetTexture(0, mpFinalTexture);
 
don''t doing anything.

Share this post


Link to post
Share on other sites
Does the mesh render correctly with it's "default" texture?
Any valid texture should do BTW...

kind rgds Nik

EDIT:
Set the texture first, then draw the mesh.

[edited by - Nik02 on October 6, 2003 6:59:56 AM]

Share this post


Link to post
Share on other sites