I keep getting triangles/ wireframe like lines in my height map rendered out from xnormal. I have the low poly mesh smoothed out and subdivided a few times to eliminate the lines but the result is still the same or is the mesh corrupt?
Any ideas?
Thanks.
Replies
That way you will not get any shading artefacts since faces that are not supposed to be displaced will be shown as your chosen grey mid point.
Other issues are probably coming from inappropriate scaling. Displacement maps work with absolute distances, therefore you need to carefully set your model scale.
Then imagine this flanttened, like on the top example on the image. So it makes total sense that you see the lowpoly edges in your height map. This doesn't happen in the case of tileables, because you compare the hp heights to a flat plant.
Displacement map/height map is a kind of distance map from the lowpoly surface to the highpoly...
So don't worry about the visible topology in the heightmap, its actually needed for good result on anything more complex than a plane. You won't actually see them, once you apply it as a displacement map. Using higher poly lowpoly mesh would indeed reduce the visibility of the topology lines - since the surfaces match the hp closer.
If you would subdivide the lowpoly to the density of the highpoly, you would loose these bumps/topology traces in the heightmap, so when it actually comes to any sort of displacement on the lowpoly, you map wouldn't be able to tell, which new vertex should offset how much.
Technically this should be a thing in CG too but I guess the base "lowpoly" is so much higher poly than a game one, you don't use the displacement for bigger features like surface smoothness and curvature, you do it for small details, and then it doesn't matter.
Edit - So after further investigation, it turns out that you can do it both ways, and the need of triangles in the displacement map depends. My example with the drawing still applies, if you don't put like a turbosmooth, you just tessellate (equals to flat tessellation in Unreal). But if you turbo smooth or use PN triangles as tessellation method in Unreal, you don't need them. So both can work, depending on how you do it.
Would you by any chance know if there is there a way to tile a base texture of a uvmapped high poly in Xnormal?