Followers 0

# [TEXTURE] BC7

## 11 posts in this topic

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:

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.

Edited by Alundra
0

##### Share on other sites

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.

1

##### 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
0

##### 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
0

##### 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
2

##### 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.

0

##### 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.

0

##### 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.

0

##### Share on other sites

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

There's many different schemes to pack normals into two channels. Partial derivitive normal maps (storing n.xy/n.z, reconstructing with normalize(vec3(tex.xy, 1)) are pretty handy too, because they allow you to combine many layers by simply adding or lerping them together before the reconstruction step -- good for detail-normal-maps, wrinkle-maps, decals, etc...

On previous-gen games, it was common to actually store normal-maps in just the G and A channels of a DXT5 texture (wasting the B/R channels), because RGB-data and A-data is compressed separately, so there's no cross-channel compression artifacts introduced. BC5 (aka ATI2n) solves the issue of the wasted channels here.

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.

What's "it's bad to listen to that" mean?
What if you've got a specific memory limit for your game to use, and you're exceeding that limit? In that case, you have to listen if you want to ship your game...

Edited by Hodgman
2

##### Share on other sites
What's "it's bad to listen to that" mean?

That mean we always have limits to have the best, we are in 2014 and we again have limits.

-1

## Create an account

Register a new account