Strange fish eye effect on standard shader problem

I’m using the standard Unity5 shader for a wall and it does a strange fish eye lens type effect when I get the camera close to it.

If I change it to a legacy diffuse shader it all works fine. Here is the material:

Any ideas guys?

no one?

No one can see your video, it is marked as private.

Thanks, didn’t realise I had to publish it as well as upload it. Can you see it now?

Try lowering the height map value and see if that helps.

Lowering Height map as low as it goes to 0.005 made it a bit better as in the fish eye effect happens when you are closer to it now, but it still does it. Removing the height map altogether solves it, but the substance keeps putting the height map back in and I can’t turn it off. Mind you even if I could make it be ‘None’ it would mean I can’t use height maps. Something is very wrong.

I don’t know why the effect is so strong, it shouldn’t… Is the scale of the scene something sensible?

How do you change the scale of the scene? It’s just the default scene that unity creates, I’ve not changed anything, its all 1 unit = 1 meter.

You don’t, I meant if the models are reasonably sized, which judging by the reply you gave me it sounds like they are… sooo… I’m out of ideas…!

Are you sure the standard shader is the issue? Looks like this is a substance created in substance designer. Maybe there’s something wrong with the substance. Try also doing it again with Generate Mip Maps turned off… maybe it’s doing something weird with those, which might explain why only the bits close to the camera are the issue.

Ok, I tried an experiment, removing the substance material. Baking out the bitmaps from the substance in Substance Player. Then creating a standard shader material and adding in the baked bitmaps one at a time. It all goes fisheye when the height map is added in!

Why would a substance height map cause this? More importantly whats the difference between a height map and a bump map?

What if you just put a random heightmap on it… some other non-substance heightmap. What does it do then?

Also, out of curiosity, what import settings did you use on your heightmap?

Ok, I tried a random non substance height map, it does the same, just a slightly different shape shiny lens effect. For the height map I did what Unity docs said to do and import it as a normal map with ‘use greyscale’ option.
Problem is next time you run the game the substance overwrites the textures back to what it wants. It all seems mighty buggy to me, I can’t understand why none else is noticing this effect. I’ll upload my substance if anyone would like to try it out, all you do is map it to a cube and put the camera at say 30 degree angle to one of the faces and move the camera in nice and close. Slide the camera back and forth and the effect is like a mirrored fish eye. Here is the substance.

2360012–160095–stonework copy.sbsar.zip (15.2 KB)

I’ll give it a try tonight if I have a chance. You didn’t accidently attach a script of some kind to your camera did you? Just throwing out ideas here, otherwise I have no idea why it would behave that way.

Nothing attached to the camera except Time of Day camera script. Disabling it doesn’t fix the problem. BUT
I just created a new scene with just the cube and substance on it and it all works fine! I’ve no idea why it works in one scene and not the other. I will keep experimenting to find the cause.