Skip to main content
GameDev.net gamedev.net
🔒 Locked

X file texture tiling

Started by DesignerX Mar 7, 2007 at 6:35 AM 0 replies 450+ views
Original Post
DesignerX
DesignerX
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.
There is nothing that can't be solved. Just people that can't solve it. :)
cannonicus
cannonicus
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
Emil Jonssonvild

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.