Hi,
So I've had some time to play around with this a bit more and the problem is coming from the fact that the terrain has incoming orthographic UVs (which I would like to keep). Using a UV flatten on the terrain before works fine as does basically any other UV layout besides orthographic. Which makes this tool not very useful as is for terrains without having to have another uv set just for the normal map.
If I delete the nice flat UVs that the terrain has then the baking works correctly with one other minor problem. I dove into the node and noticed the UV projection spacing is set to 2 which was making the usable uv space very poorly optimized. Promoting this parameter to the SOP level might be useful… I lowered it down to 0.01 which is better, but the UV layout has thousands of tiny islands which makes for some ugly seams. Having the tool work with orthographic UVs would be really nice for terrains. The terrain texture SOP is cool, but generates world space normal maps which aren't useful for adding detail to low res terrain.
I've attached a simple example with a small piece of terrain, if you turn on and off the uv flatten, you can see the orthographic uv issue.
https://drive.google.com/open?id=1Pqa0EM–dcvmgcjp4bBFA7kwpuIU_eME [
drive.google.com]
Edit: I added some screenshots with the generated UVs and the Orthographic UV's which are very similar in this certain case, but the ortho UVs fail.
