Opened 6 years ago

Closed 6 years ago

#5021 closed defect (fixed)

Atlas heightmap import should set the last heightmap vertex too

Reported by: elexis Owned by: elexis
Priority: Should Have Milestone: Alpha 23
Component: Atlas editor Keywords:
Cc: Patch:

Description (last modified by elexis)

A map with N tiles contains (N+1)2 vertices, so when importing a heightmap image with N2 pixels to atlas, the last 1 vertex never gets it's heightvalue set. It should use the last pixel value again.

https://trac.wildfiregames.com/raw-attachment/ticket/5021/example.jpg

Attachments (1)

example.jpg (116.0 KB ) - added by elexis 6 years ago.

Download all attachments as: .zip

Change History (3)

by elexis, 6 years ago

Attachment: example.jpg added

comment:1 by elexis, 6 years ago

Description: modified (diff)

comment:2 by elexis, 6 years ago

Resolution: fixed
Status: assignedclosed

In 21111:

When importing a heightmap image in atlas, don't omit the last vertex of each side of the heightmap! Fixes #5021, refs rP12308.
(Since there are 4 vertices per tile, there is one more vertex per side than there are tiles / pixels per side.)

Note: See TracTickets for help on using tickets.