• Advertisement
Sign in to follow this  

How to blend texture in the .x file

This topic is 4898 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

Now I was use the .x file but I found the .x file only have one texture I don't know how to blend more than 2 texture

Share this post


Link to post
Share on other sites
Advertisement
have you consider using HLSL ?
You can make a texture blen in 1 line on code.

Otherwise here is my guess.

load tx1 and tx2




device.SetTextureStageState(0,...
device.SetTexture(0, tx1);

device.SetTextureStageState(1,...
device.SetTexture(1, tx2);

//draw Polygon






Share this post


Link to post
Share on other sites
If you create a model and blend the textures in 3dmax or whatever, then export it as an .x file it should work. That's what I do anyway.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement