Page 1 of 1

Error when i try to vertically resample an heightfield

PostPosted: Thu Jan 11, 2007 2:14 pm
by mauronen
Hi Aaron. Your nightly nightmare is back :D .
Another bug. When i try to vertically resample a Terrage imported heightfield, in Error Log appears this:
Code: Select all
CMapWrap::SetPixel error:
 - invalid coordinates

CMapWrap::SetPixel error
 - call to SetPixel failed for mipmap


but it seems that concerns about mipmap generation and don't affects heightfield resampling.

Best regards.

Mauro

PostPosted: Thu Jan 11, 2007 11:49 pm
by Aaron
Thanks for the bug report Mauro.

The mipmaps are only used for the display at the moment, so if there's an error in setting mipmap pixels it shouldn't affect anything else. What I suspect has happened here is that the mipmaps weren't destroyed when the map was resized, so the dimensions of the mipmaps were wrong (thus a SetPixel error).

I'll upload a fix next week.

Best regards,
Aaron.