Archived

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

How could I apply linear filters on textures from X files?

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

Hi, How could I apply linear filters on textures from X files? Where I should add the code lines: SetSamplerState(0,D3DSAMP_MINFILTER,D3DTEXF_LINEAR); SetSamplerState(0,D3DSAMP_MAGFILTER,D3DTEXF_LINEAR); to render scene correctly (with filters)? I added this lines and nothing happened (no texture filter was showed). Thanks.

Share this post


Link to post
Share on other sites
Anywhere, as long as it doesn''t get overwritten by another SetSamplerState() call or Reset() call, you don''t have to call it again. You should write your program to be able to switch between the filters, so you can actually see the difference during execution.

.lick

Share this post


Link to post
Share on other sites