Jump to content
  • Advertisement
Sign in to follow this  
Alundra

[TEXTURE] BC7

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

BC7 is a modern format who is supported on both D3D11 and OGL4.

He is the best of the best, and for that he needs a compute shader to convert because he is complex.

The difference is huge, it's why he is the best of the best, here some pictures to compare:

http://www.reedbeta.com/blog/wp-content/uploads/2012/01/brick_blocks_compare.png

http://www.reedbeta.com/blog/wp-content/uploads/2012/02/brick_blocks_compare_bc7.png

http://www.reedbeta.com/blog/wp-content/uploads/2012/02/gradient_compare_bc7.png

As you can see, the quality of BC7 is very good and all know good texture quality is a need.

Now the question is other format than BC7 is needed nowadays ?

BC7 works well on RGB and RGBA.

Thanks to answer

Edited by Alundra

Share this post


Link to post
Share on other sites
Advertisement

I'm going to take a second to shamelessly plug FasTC if you'd like a (reasonably) fast BC7 compressor. If you want a really fast one that doesn't require a GPU, you can take a look at Intel's ISPC based compressor.

 

http://gamma.cs.unc.edu/FasTC

http://software.intel.com/en-us/articles/fast-ispc-texture-compressor

 


BC7 isn't ideal for normal maps, so for that you will want BC5.

 

BC7 and BC5 have the same bitrate, so the only argument that BC5 is better for normal maps is that it's tailored for 2-channel data, but you can actually get pretty good BC7 encoded normal maps too with a few bit tricks. In modern day games, textures are packed so that color channels end up being uncorrelated, so you really will end up only using whatever the best format is for your game.

Share this post


Link to post
Share on other sites

That said, I have no doubt though that those developing exclusively for hardware that supports BC7 (not very many people on PC yet!), will end up with the majority of their textures as BC7, especially if someone can put together a faster encoder with some clever heuristics to reduce the search space.

 

Doubling your memory usage is a tough pill to swallow for most console games, where RAM is always a precious resource. I'm sure BC1 will be in use for quite a long time because of that. The encoding time is also a major issue given the number and size of textures being thrown around on PS4/XB1 games. 

Edited by MJP

Share this post


Link to post
Share on other sites
BC7 isn't ideal for normal maps, so for that you will want BC5.

Using BC5 you have to compute the vector from the normal map like that for each pixel :

float3 MakeNormalHemisphere(float2 xy)
{
    float3 n;
    n.x = xy.x;
    n.y = xy.y;
    n.z = 1.0f - saturate(dot(n.xy, n.xy);
    return normalize( n );
}

Using BC7 you don't have to do that but the alpha channel is stored for nothing.

Doubling your memory usage is a tough pill to swallow for most console games, where RAM is always a precious resource. I'm sure BC1 will be in use for quite a long time because of that. The encoding time is also a major issue given the number and size of textures being thrown around on PS4/XB1 games. 

Does that mean BC7 can't be used because of that or it's a particular case where BC7 should not be used ?

Edited by Alundra

Share this post


Link to post
Share on other sites

Using BC5 you have to compute the vector from the normal map like that for each pixel

 

A fairly trivial calculation by today's standard. The advantage is that the R and G channels are completely uncorrelated, and you have 8bpp divided between just two channels instead of 3. If anyone happens to know of a in depth comparison of BC5 and BC7 specifically for normal maps, I'd be interested to see it.

 


Does that mean BC7 can't be used because of that or it's a particular case where BC7 should not be used ?

 

I would say to use BC1 over BC7 whenever you can get away with it, e.g. whenever the quality difference will not be noticeable.

Edited by Chris_F

Share this post


Link to post
Share on other sites

 

BC7 isn't ideal for normal maps, so for that you will want BC5.

Using BC5 you have to compute the vector from the normal map like that for each pixel :

float3 MakeNormalHemisphere(float2 xy)
{
    float3 n;
    n.x = xy.x;
    n.y = xy.y;
    n.z = 1.0f - saturate(dot(n.xy, n.xy);
    return normalize( n );
}

Using BC7 you don't have to do that but the alpha channel is stored for nothing.

Doubling your memory usage is a tough pill to swallow for most console games, where RAM is always a precious resource. I'm sure BC1 will be in use for quite a long time because of that. The encoding time is also a major issue given the number and size of textures being thrown around on PS4/XB1 games. 

Does that mean BC7 can't be used because of that or it's a particular case where BC7 should not be used ?

 

 

I meant that those issues will most likely serve as a barrier that prevents BC7 from being used on "a majority of textures", as C0lumbo suggested. Currently in our toolset we default to BC1 for textures with no alpha data, and only use BC7 when artists specifically enable it for a particular texture.

Share this post


Link to post
Share on other sites

 

Using BC7 you don't have to do that but the alpha channel is stored for nothing.

 

BC7 has many block modes, and alpha is optional. You can have higher precision without alpha if that's what you want to do.

Share this post


Link to post
Share on other sites

BC7 has many block modes, and alpha is optional. You can have higher precision without alpha if that's what you want to do.

 

 

 

Using BC7 you don't have to do that but the alpha channel is stored for nothing.

 

BC7 has many block modes, and alpha is optional. You can have higher precision without alpha if that's what you want to do.

 

At the end BC7 can be used for everything, so only the problem to not use it always is the memory, it's bad to listen that.

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!