0

fixed math error in design docs (I'm pretty sure)

also touched up the wording of some other areas
This commit is contained in:
Andrew Brown
2011-10-07 00:38:58 -04:00
parent cbe3d7e1a3
commit 88448f932b
3 changed files with 13 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -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)" />
<text
xml:space="preserve"
@@ -4184,7 +4184,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,232.03794,697.88763)" />
<text
xml:space="preserve"
@@ -4197,7 +4197,7 @@
sodipodi:role="line"
id="tspan13132"
x="116.86209"
y="475.16006">1680</tspan></text>
y="475.16006">1704</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend)"
d="m 141,463.61743 c 16,-13 20,12 29,-19"
@@ -4235,6 +4235,6 @@
sodipodi:role="line"
id="tspan13420"
x="234.03793"
y="904.1225">1704</tspan></text>
y="904.1225">1728</tspan></text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 192 KiB

View File

@@ -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