Jump to content

A bug caused by texture formats


Kevin Sun
Go to solution Solved by Isaac,

Recommended Posts

When I applied GTS to my new designed terrain, I found an unexpected visual issue:

 

 spacer.png

 

It seems like a shadow/normal map issue, so I checked the Normal Texture Array and found:

 

spacer.png

 

Some textures' R channels (Normal X-axis by definition) are missing

 

spacer.png

 

but their G channels (Normal Y-axis by definition) are good

 

spacer.png

while the other textures' R channels are good, too.

 

Therefore, I turned to check those R-missing textures and found they have a different format.

 

spacer.png

 

After I toggled off this override setting and created texture arrays again, the terrain now looks good.

 

spacer.png

 

In conclusion, GTS now might be unable to correctly pack texture arrays on textures with “RG compressed BC5” format (or maybe some other formats too). This can be a bug?

 

 

Link to comment
Share on other sites

  • Kevin Sun changed the title to A bug caused by texture formats
  • Solution

Hi @Kevin Sun,

This occurs due to the way that normal maps get compressed depending on their type. When you set a texture to the mode 'Normal map' it places the Normal's X Axis in the Alpha channel, and GTS uses this type as the basis for creating the texture arrays. If the compression format is then set to RG Compressed BC5, it removes the alpha channel where the Normal's X Axis was stored in. 

 

GTS currently does not support override texture formats for each platform - but we can look into supporting it. In the meantime, after the texture arrays have been created, you can set the textures back to the platform overrides - once the texture arrays are created, GTS no longer needs the original textures in order to render.  

 

Can you show me what the properties of the normal map texture looks like (i.e. Texture Type, sRGB (Color Texture), Alpha Source) etc, so I can test it with the same properties you are using?

Link to comment
Share on other sites

  • 2 weeks later...

Hi Isaac,

 

The texture is in TIF format normal map and its property looks below:

 

spacer.png

 

It's actually from the texture set used by Unity official HDRP Terrain Demo Scene.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...