Download

[Bug] Landscape processing with wrong vertex data when Overall Resolution is 511x511

img_33.png

I created a landscape with Overall Resolution of 511x511 but got a wrong result.
img_29.jpg

Rendering landscape component mesh with wrong vertex data and getting warning “VertexOrder count of 65534 did not match expected size of 65536”.
After tracing the source code , I found that the index of the vertex data had some hash collision. Hash collision caused vertex data loss.

LandscapeEdit.cpp: GeneratePlatformVertexData()
img_34.png

img_35.png

I tried to roll back the version of **MakeKey **function. then got the correct rendering result:
img_36.png

img_32.jpg

Finally:
1. Is this a known bug and will it be fixed in a future release?
2. Whether modifying this hash algorithm in the engine will cause other problems?
thks~