Jump to content
  • Advertisement
Sign in to follow this  
DesignerX

X file texture tiling

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

I have created a model using the 3DSMax5 trial version and exported the "model" into a .x file. My model contains tiled textures. When loading and rendering my mesh with DirectX9 functions the textures are displayed but aren't tiled. How can I save the tile information so I could also use it with DirectX9 ? thx.

Share this post


Link to post
Share on other sites
Advertisement
Maybe your sampler is set to clamp textures instead of tiling them? I dont think you can set these things from within a .x file, but in code you do:

Device->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_WRAP);
Device->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_WRAP);

Hope it helps

//Emil

Share this post


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

  • 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!