L3DT users' community
Large 3D terrain generator

resizing heightmap

Got a problem or need advice?

resizing heightmap

Postby mistahgrizzly » Wed Jan 27, 2016 11:00 am

every time i try to resize the height map that i imported is going to 50% and then i get this
CMapWrap::SetPixelFast error:
- call to CMosaicMap::SetPixel failed
CMapWrap::SetPixel error:
- call to SetPixelFast failed for x0y0 in 8192x4745
calc_map_Resize error:
- call to CMapWrap::SetPixel failed (2)
CMapWrap::SetHorizScale error
- map is busy
CMapWrap::SetHorizScale error
- map is busy
i use the dev version
mistahgrizzly
New member
 
Posts: 2
Joined: Wed Jan 27, 2016 10:53 am

Re: resizing heightmap

Postby Aaron » Thu Jan 28, 2016 12:08 pm

Hi mistahgrizzly,

I apologise for this fault. I've reproduced it, and will post a fix as soon as possible. I'll post back here when ready. Thanks for the bug report.

Best regards,
Aarob.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Re: resizing heightmap

Postby Aaron » Fri Jan 29, 2016 12:57 pm

Hi Mistahgrizzly,

I've included the fix in the latest dev build (16.01 build 3), which is on the Pro downloads page now. This fault occurred for maps larger than 2048 x 2048 and smaller than 8192x8192, where L3DT uses a memory-mapped page file to store the map data (smaller maps are in memory, larger maps are paged to disk using mosaic maps). The recent update I did to use non-contiguous memory was not properly applied to the memory-mapped case, and I neglected to test a map in this size range (I think I was running 16k x 16k tests at the time.) Anyway, resizing should now complete OK.

Please note that you may get a set of errors during the mipmap generation after the resize. These errors complain about tile lock counts during tile saving, but these don't stop calculations or prevent saving, so you can safely ignore them. I will try to debug those errors now, but it might take a few more days.

Thanks again for the bug report.

Best regards,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia


Return to Help and support

Who is online

Users browsing this forum: No registered users and 13 guests

cron