Jump to content
  • Advertisement

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?

This topic is 5470 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!