Detail Mesh painting on terrain not working correctly

Okay, so I’ve been using the terrain functions and they’re all working well (speed trees, grass, texture painting, etc.) but for some reason, the detail mesh painting just isn’t co-operating.

So here I showcase 3 things:
1 - The grass paints on the terrain just fine, so there’s no issue.
2 - The third detail in the list (IslePebbleObj) just does not draw onto the terrain at all.
3 - The one that DOES draw on (Rock01) doesn’t draw on correctly; as you can see it leaves odd gaps.

I also tested with a cube prefab I made in Unity and it works just fine; so I tried to just make a regular object out of my rock/pebble models (that I imported) so that they’d be no different to the cube, but it didn’t work anyway (basically I dragged the imported model onto the scene, then made it into a prefab, just like the cube).

These models are visible on the scene when I drag them in, and it doesn’t seem to matter whether it’s FBX (preferred) or OBJ or whatever. The two rock/pebble details you see were imported the exact same way, both as FBX files, just as different models; so why does one work (kinda) and the other doesn’t?

Are there any settings I need to have specifically set for detail meshes to work or is it all a bug?
Also, I’m using the latest version of Unity (5.5.1), 64-bit on Windows.

Bump, because I need to know if it’s a bug.

Alright, I’ve found the solutions!

First, having the meshes actually appear and work properly. When making the object in blender, you need to unwrap the object and apply a material to it; not sure why you need to do both but that’s the only way it works (also, rotate it 90 degrees on the X-axis, and click Ctrl+A and apply rotation - then when exporting, set forward to Y and Z-up).

Secondly, the missing spaces were appearing as some counter-measure to having too many detail meshes on the screen at once (at least in scene view). Drawing them on in large numbers (like one click with a large brush and max opacity/strength) will do this; draw on less at once and more spread out.

1 Like

Cheers mate! This is what my problem was.

(My issue was the textures not appearing on the mesh/object. I created my own shader and apparently Unity error msg complaining about “Material doesnt have a texture property “_MainTex””, so I named my Albedo texture slot to “_MainTex”,This is kind of dumb, but another fix if any of you have similar problems. Thanks)