Area size in Terrain import Author Message
rstralberg
Member

 Post: #1 Area size in Terrain import Hi. More questions on terrain import. I created a terrain in L3DT Terrain size 256x256 with 1 meter resolution That would then in E2 be with an area size of 64 be 256/64 = 4 areas if I have understod things correctly Setting the SizeX = SizeY = 4 in the import dialog gives 5 'steps' in the viewer. Is that correct. I though each square would be 64 pixels. The import goes well but I dont understand the size=4 while its 5 in the viewer.
08-22-2014 03:23 PM
Zervox
Member

 Post: #2 RE: Area size in Terrain import if I am not mistaken this is due to 0 counting at area(0,0) so areas should be 3.
08-23-2014 12:07 AM
Esenthel

 Post: #3 RE: Area size in Terrain import Hi, It's because the formula is calculated like that in this case : Area rect.max=rect.min+size; And then the rect is processed with min and Max inclusive, so you end up with 1 more square. I may adjust this behavior to ignore the last square for next release.
08-23-2014 02:02 AM
rstralberg
Member

 Post: #4 RE: Area size in Terrain import Thank's for the explanation. Then I understand why the area has to be one less then what it would be. No problem with that when I know why
08-23-2014 10:14 AM
Esenthel