diff --git a/docs/design/cuberenderimgs/chunk_height.png b/docs/design/cuberenderimgs/chunk_height.png index f56b282..8b4257d 100644 Binary files a/docs/design/cuberenderimgs/chunk_height.png and b/docs/design/cuberenderimgs/chunk_height.png differ diff --git a/docs/design/cuberenderimgs/chunk_height.svg b/docs/design/cuberenderimgs/chunk_height.svg index 8908f1e..532e06c 100644 --- a/docs/design/cuberenderimgs/chunk_height.svg +++ b/docs/design/cuberenderimgs/chunk_height.svg @@ -54,9 +54,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="2.3840074" - inkscape:cx="126.00362" - inkscape:cy="123.42865" + inkscape:zoom="1.6857478" + inkscape:cx="180.45474" + inkscape:cy="219.80008" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -4163,7 +4163,7 @@ sodipodi:cy="85.117432" sodipodi:rx="0.5" sodipodi:ry="0.5" - d="m 2,85.117432 a 0.5,0.5 0 1 1 -1,0 0.5,0.5 0 1 1 1,0 z" + d="m 2,85.117432 c 0,0.276142 -0.2238576,0.5 -0.5,0.5 -0.2761424,0 -0.5,-0.223858 -0.5,-0.5 0,-0.276143 0.2238576,-0.5 0.5,-0.5 0.2761424,0 0.5,0.223857 0.5,0.5 z" transform="matrix(2,0,0,2,62.037936,613.88763)" /> 1680 + y="475.16006">1704 1704 + y="904.1225">1728 diff --git a/docs/design/designdoc.rst b/docs/design/designdoc.rst index 3546caa..e6a7ef7 100644 --- a/docs/design/designdoc.rst +++ b/docs/design/designdoc.rst @@ -253,8 +253,8 @@ Two cubes that are neighbors after projection to the image (diagonally neighboring in the world) have a horizontal offset of 24 pixels from each other, as shown below on the left. This is mostly trivial, since the images don't end up overlapping at all. Two cubes in the same configuration but rotated 90 -degrees have some overlap, and are only vertically offset by 12 pixels, as shown -on the right. +degrees have some overlap in the image, and are only vertically offset by 12 +pixels, as shown on the right. .. image:: cubepositionimgs/cube_horizontal_offset.png :alt: Two cubes horizontally positioned are offset by 24 pixels on the X axis. @@ -269,9 +269,9 @@ image, but by how much? Interestingly enough, due to the projection, this is exactly the same offset as the situation above for diagonally neighboring cubes. The cube outlined in green is drawn 12 pixels below the other one. Only the order that the cubes are drawn -is changed. +is different. -And finally, what about cubes that are next to each other in the world, or +And finally, what about cubes that are next to each other in the world --- diagonally next to each other in the image? .. image:: cubepositionimgs/cube_neighbors.png @@ -326,19 +326,12 @@ red cube is at vertical offset 1524 below. The green cube at the bottom most tip is the cube with the lowest vertical placement on the image, so its offset plus 24 pixels for its height will be the -chunk height. Since cubes in that configuration are 12 pixels lower, add 15*12 +chunk height. Since the green cubes each have an offset of 12 pixels, add 15*12 pixels to get the offset of the lowest green cube: 1704. -So the total size of a chunk in pixels is 384 wide by 1704 tall. That's pretty +So the total size of a chunk in pixels is 384 wide by 1728 tall. That's pretty tall! -.. note:: - - The original code had an incorrect height for a chunk, but it turns out not - to matter, since the chunk image will either have some blank space or be - slightly cut off. Now that chunks are rendered directly to tiles, it matters - even less, but this is still important for calculating some later things. - Tile Rendering ============== .. Covers the placement of chunk images on a tile