Sign in to follow this  
DesignerX

X file texture tiling

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this