Jump to content
  • Advertisement

Archived

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

SoRich

ID3DXMesh Texturing problem

This topic is 5375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!