texture terrain: problem with 5 or more textures

I’m using Unity 3.5.6 built in terrain tools. When I paint >4 textures on the terrain, I get the above issue when rendered in game view. Any idea what would cause this?

The only time I’ve seen something like this is when I had experimented with other terrain shaders, and hadn’t replaced them with the default Unity one.

Hmmm. Well this is a clean project, only using the default Unity shaders. I ended up reducing my texture set to 4 for now. Thanks for the input.
We plan to upgrade to 4.0 soon, maybe that will fix the issue.

I have something like this in unity 4. Terrain is darker when it have 5 textures,normalmaps. Terrain material don’t work good;/

Have this same problem and came across a work around that worked for me, simply bake out a light map and everything seems to work just fine. Not sure what the issue is but i know it has something to do with deferred rendering as the issue disappears with forward rendering. can some one else please confirm this so this issue could be resolved? Wasted a good day trying to figure this out and id hate for it to happen to someone else.

I cant answer this problem but maybe able to point you in the right direction.

Each splat map can only have 4 textures, one for each channel (RGBA)

When you add the 5ith texture it needs to be added to a new splat map. I dont know if unity does this for you or you need to manually do it.
This maybe the source of the problem.

How to add splat map? I use dynamic rendering for my game.

I would like to know this as well, please, any help would be appreciated.

shamless self bump

I believe JC was right. I found that even though I was not using them, there were some “substance” shaders in my project. I removed these and now 5 or more textures works fine.

Thanks.

I’m having the same problem with Unity 4. Does anyone know how to fix this?

to Aengys: I fixed it by removing any extra asset packs or shaders that I was not using. For example, terrain substances or similar non-default terrain shaders.

Im not using any shaders or packs. Just built in materails with textures with alpha.

Well, as I said before, I only have the Terrain with the built-in Unity 4 shader for Terrain Bumped Specular, with 4 Texture with Alpha. Don’t know whats the problem. :\

I’ve seen this behaviour only on replaced shaders. Please submit a bug report with a minimal project using 5 textures on terrain and showing this behaviour. Then link case number here and I’ll take a look.

Thanks

I’ve reported the bug with a file but it doesnt gave me any number.

I’ll sent you a message with the email that I sent the problem.

EDIT: Case 535912

Sorry, didnt noticed the email. :slight_smile:

No news? :\

I’m seeing very weird behaviour on forward rendering and very subtle artifacts on deferred. I’ve flagged it with some developers and we’re looking into it.

Already got my answer. Thank you.

I’ll leave it here as well for those who have the same problem.

It’s the Normal Map texture that needs to be set as Normal in the Import Settings.