Archived

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

adriano_usp

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

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