Jump to content

Null Reference Exception when generating Texture Array's


Broudy
 Share

Go to solution Solved by Adam,

Recommended Posts

I have 4 textures on my terrain, and can apply the profile, but when it tries to generate the texture array I get the attached.

I've tried a new profile, re-importing GTS.  Also tried clearing the layers etc, restarting Unity

 

Using 2021.3.5f1.  Terrain generated by Gaia Pro 2021, with textures from LetsMakeCoolArt and Aquarius Max Poly Rocks.

Null Reference Exception.png

Link to comment
Share on other sites

Hi @Broudy, I looked into this and this seems to be caused by the terrain layer not having a normal map assigned - this is a bug in GTS as this should of course be an user choice to have a normal map or not.
If you do have normal maps for those textures and want to use them, can you please assign them in the terrain layers here & recreate the texture arrays:


image.png

If you intentionally do not want to use normal maps, can you please assign any texture (e.g. reassign the same texture used in "albedo map texture"), then when the texture arrays have been created, drag the "Normal Strength" slider all the way down to 0. This gives essentially the same result as not using a normal map to begin with.

Link to comment
Share on other sites

Thanks Peter, that texture doesn't have a normal map it was just one I had in a pack I'd imported for other things.  I'll make sure that there is a normal map for everything.  

But I must say great work, even with the little time I spent my terrains looked much better.  

  • Like 1
Link to comment
Share on other sites

  • Solution
4 hours ago, Broudy said:

Thanks Peter, that texture doesn't have a normal map it was just one I had in a pack I'd imported for other things.  I'll make sure that there is a normal map for everything.  

But I must say great work, even with the little time I spent my terrains looked much better. 

Patch has been released 🙂

  • Thanks 2
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
 Share

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