1
\$\begingroup\$

I have two 100x100 height maps that I am drawing using a triangle mesh. One represents the land height, and the other represents (water + land) height.

I currently draw both meshes on top of each other, and I make the water mesh transparent when the water level is 0.

land and water height map

But where the land meets the water there are lots of artifacts.

I believe the cause is the water mesh is >= the height of the land mesh so at the edges the water mesh height goes from being > land mesh height to == , the visible slope is actually the water mesh slope and not the land mesh slope.

That said, I don't know any good way to fix it.


Note: water level may not be flat so replacing the water mesh with a plane wont work

\$\endgroup\$
5
  • \$\begingroup\$ "water level may not be flat" - why exactly? \$\endgroup\$ Commented Mar 5, 2018 at 4:42
  • \$\begingroup\$ its for a water simulation so the water levels will dynamically change \$\endgroup\$ Commented Mar 6, 2018 at 7:30
  • \$\begingroup\$ You could still replace water table with a separate mesh, not connected with heightmap mesh.. \$\endgroup\$ Commented Mar 6, 2018 at 7:38
  • \$\begingroup\$ it is a separate mesh, I am rendering both the water and the land meshes \$\endgroup\$ Commented Mar 6, 2018 at 7:39
  • \$\begingroup\$ "and the other represents (water + land) height" - why not use water height, without land height? Then the artifacts will go away. \$\endgroup\$ Commented Mar 6, 2018 at 7:58

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.