ID3DXMesh Texturing problem

Started by
0 comments, last by SoRich 20 years, 6 months ago
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.
Advertisement
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]

Niko Suni

This topic is closed to new replies.

Advertisement