Sign in to follow this  

Texture Filtering and Direct3D9 vs Direct3D11

This topic is 1652 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 all,

 

I am making a voxel engine similar to Minecraft which uses a texture atlas for the textures of different blocks.

 

This is an example of rendering 4 chunks:

gpqb.png

 

This is with no texture filtering. If I enable some filtering, i.e. linear, it looks terrible due to the texture atlas. See the below image, which is using trilinear filtering.

ska.png

 

So, my question is, what is filtering for? Is it worth using in my case (does it improve performance or something)? In my case it just makes the scene look terrible.

 

And my second question is what are the advantages of using a Direct3D version greater than 9? Is it worth culling out any Windows XP users?

Edited by BMW

Share this post


Link to post
Share on other sites

Texture filtering is used to improve texture quality. The better the filtering, the better the visuals (but at a performance cost). 

You should pick-up a graphics programming book in order to understand why you need filtering and what it is for.

 

The reason it looks wrong in your case is because you probably didn't add borders in your atlas.

Share this post


Link to post
Share on other sites

With D3D10+ you can use a texture array rather than a testure atlas (assuming that your textures are all the same size) which will resolve this problem for you.  Regarding XP, according to the latest Steam hardware survey, XP is at just over 7% of PCs, so it depends on how important you view that 7%.  Personally I'd say: forget about XP (also bearing in mind that it's already out of mainstream support and will be leaving extended support in April of next year).

Share this post


Link to post
Share on other sites

The reason it looks wrong in your case is because you probably didn't add borders in your atlas.

 

Ok, I haven't added borders, I'll guess I'll do that. Thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this