<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modenc2.markjfox.net/history/Voxel_Bounds?feed=atom</id>
	<title>Voxel Bounds - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modenc2.markjfox.net/history/Voxel_Bounds?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/history/Voxel_Bounds"/>
	<updated>2026-11-22T20:21:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3870&amp;oldid=prev</id>
		<title>MarkJFox: 3 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3870&amp;oldid=prev"/>
		<updated>2025-03-31T19:27:06Z</updated>

		<summary type="html">&lt;p&gt;3 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:27, 31 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>MarkJFox</name></author>
	</entry>
	<entry>
		<id>https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3869&amp;oldid=prev</id>
		<title>en&gt;ATHSE: spelling</title>
		<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3869&amp;oldid=prev"/>
		<updated>2025-01-17T00:33:39Z</updated>

		<summary type="html">&lt;p&gt;spelling&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:33, 17 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Voxel bounds are useful for shrinking the unit in any, or all, directions as well. It is an excellent way to make slight size adjustments where drawing the voxel unit proportionally would result in a loss of details, and it just needs to be narrowed in one axis, but it can also be used to mitigate (if not eliminate) &amp;quot;black dot syndrome&amp;quot; as it is known.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Voxel bounds are useful for shrinking the unit in any, or all, directions as well. It is an excellent way to make slight size adjustments where drawing the voxel unit proportionally would result in a loss of details, and it just needs to be narrowed in one axis, but it can also be used to mitigate (if not eliminate) &amp;quot;black dot syndrome&amp;quot; as it is known.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In many voxels with a single layer thickness, a lack of shrinkage means that at certain rendering angles, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;espectially &lt;/del&gt;on curved or angled surfaces, the engine would allow the player to see &quot;between&quot; the dots in places. That gap is then filled by rendering whichever dot was the next layer visible, almost certainly with a normals value facing the opposing direction. The side effect of seeing that wrong dot is then the lighting applied inverted, making the dot appear black, or without light.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In many voxels with a single layer thickness, a lack of shrinkage means that at certain rendering angles, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;especially &lt;/ins&gt;on curved or angled surfaces, the engine would allow the player to see &quot;between&quot; the dots in places. That gap is then filled by rendering whichever dot was the next layer visible, almost certainly with a normals value facing the opposing direction. The side effect of seeing that wrong dot is then the lighting applied inverted, making the dot appear black, or without light.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Shrinking such a voxel to even 90% size (ie. multiplying the bounds values by 0.9) is enough to close the gaps in most cases, but greater shrinkage can be applied. Ultimately the better solution is to thicken the voxel&amp;#039;s skin, applying the same or similar normals values to the second layer of dots, as the auto-normals tool in VXLSE does, however there are still benefits to shrinkage.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Shrinking such a voxel to even 90% size (ie. multiplying the bounds values by 0.9) is enough to close the gaps in most cases, but greater shrinkage can be applied. Ultimately the better solution is to thicken the voxel&amp;#039;s skin, applying the same or similar normals values to the second layer of dots, as the auto-normals tool in VXLSE does, however there are still benefits to shrinkage.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: The &lt;/del&gt;voxel renderer in RA2/YR is actually very good at colour blending neighbouring dots as they overlap, but with shrinkage applied this happens in all directions and all facings, which means that remappable sections that aren&#039;t large enough will be colour blended with their neighbours also. This can drastically alter the resulting colour as seen by the player.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;One caveat, the &lt;/ins&gt;voxel renderer in RA2/YR is actually very good at colour blending neighbouring dots as they overlap, but with shrinkage applied this happens in all directions and all facings, which means that remappable sections that aren&#039;t large enough will be colour blended with their neighbours also. This can drastically alter the resulting colour as seen by the player.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A good example would be: a blue toned unit with a red house colour, will blend adjacent dots to some shade of pink or purple, which could in fact be another house colour, making at-a-glance identification difficult. One way to mitigate this is using remappable areas surrounded by grayscale texturing, then any blending will only change brightness, not the tonal range.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A good example would be: a blue toned unit with a red house colour, will blend adjacent dots to some shade of pink or purple, which could in fact be another house colour, making at-a-glance identification difficult. One way to mitigate this is using remappable areas surrounded by grayscale texturing, then any blending will only change brightness, not the tonal range.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>en&gt;ATHSE</name></author>
	</entry>
	<entry>
		<id>https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3868&amp;oldid=prev</id>
		<title>en&gt;ATHSE at 10:44, 8 December 2018</title>
		<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3868&amp;oldid=prev"/>
		<updated>2018-12-08T10:44:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:44, 8 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The unit &amp;quot;box&amp;quot; is approximately 11 voxelblocks high and is positioned at ground level, the turret &amp;quot;box&amp;quot; is positioned exactly above the body &amp;quot;box&amp;quot; (turret.minZ approx= body.maxZ) , and the barrel &amp;quot;box&amp;quot; is directly in front of the &amp;quot;turret &amp;quot;box&amp;quot; (barrel.minX approx= turret.maxX).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The unit &amp;quot;box&amp;quot; is approximately 11 voxelblocks high and is positioned at ground level, the turret &amp;quot;box&amp;quot; is positioned exactly above the body &amp;quot;box&amp;quot; (turret.minZ approx= body.maxZ) , and the barrel &amp;quot;box&amp;quot; is directly in front of the &amp;quot;turret &amp;quot;box&amp;quot; (barrel.minX approx= turret.maxX).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The combined object&amp;#039;s Z axis (and the not-so-important Y axis) is shifted a bit to the back, since MinX and MaxX values are different in value, not just in sign.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The combined object&amp;#039;s Z axis (and the not-so-important Y axis) is shifted a bit to the back, since MinX and MaxX values are different in value, not just in sign.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Advanced Usage ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Voxel bounds are useful for shrinking the unit in any, or all, directions as well. It is an excellent way to make slight size adjustments where drawing the voxel unit proportionally would result in a loss of details, and it just needs to be narrowed in one axis, but it can also be used to mitigate (if not eliminate) &quot;black dot syndrome&quot; as it is known. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In many voxels with a single layer thickness, a lack of shrinkage means that at certain rendering angles, espectially on curved or angled surfaces, the engine would allow the player to see &quot;between&quot; the dots in places. That gap is then filled by rendering whichever dot was the next layer visible, almost certainly with a normals value facing the opposing direction. The side effect of seeing that wrong dot is then the lighting applied inverted, making the dot appear black, or without light. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Shrinking such a voxel to even 90% size (ie. multiplying the bounds values by 0.9) is enough to close the gaps in most cases, but greater shrinkage can be applied. Ultimately the better solution is to thicken the voxel&#039;s skin, applying the same or similar normals values to the second layer of dots, as the auto-normals tool in VXLSE does, however there are still benefits to shrinkage.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: The voxel renderer in RA2/YR is actually very good at colour blending neighbouring dots as they overlap, but with shrinkage applied this happens in all directions and all facings, which means that remappable sections that aren&#039;t large enough will be colour blended with their neighbours also. This can drastically alter the resulting colour as seen by the player. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A good example would be: a blue toned unit with a red house colour, will blend adjacent dots to some shade of pink or purple, which could in fact be another house colour, making at-a-glance identification difficult. One way to mitigate this is using remappable areas surrounded by grayscale texturing, then any blending will only change brightness, not the tonal range.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The effects of voxel shrinkage should be considered (and tested!) as it relates to the renderer, care should be taken with drawing and texturing the voxel.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Credits ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Credits ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This article is a compilation of information provided by various members of the community, including Blade, CannisRabidus, and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Stucuk&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This article is a compilation of information provided by various members of the community, including Blade, CannisRabidus&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, Stucuk&lt;/ins&gt;, and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G-E&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:General Editing Information]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:General Editing Information]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>en&gt;ATHSE</name></author>
	</entry>
	<entry>
		<id>https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3867&amp;oldid=prev</id>
		<title>en&gt;DCoder: Created the page, but it&#039;s very technical. Feel free to rewrite.</title>
		<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/index.php?title=Voxel_Bounds&amp;diff=3867&amp;oldid=prev"/>
		<updated>2005-10-19T08:56:31Z</updated>

		<summary type="html">&lt;p&gt;Created the page, but it&amp;#039;s very technical. Feel free to rewrite.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;: This article uses a 3D coordinate system where:&lt;br /&gt;
* The X axis increases to the right.&lt;br /&gt;
* The Y axis increases towards the screen.&lt;br /&gt;
* The XY plane is the &amp;quot;ground&amp;quot; plane.&lt;br /&gt;
* The Z axis increases upwards.&lt;br /&gt;
&lt;br /&gt;
== Technical explanation ==&lt;br /&gt;
Voxel bounds define the dimensions of a &amp;quot;voxel container box&amp;quot;, so to speak, its relative position in the game world, and thus, the box&amp;#039;s center of rotation.&lt;br /&gt;
&lt;br /&gt;
When a unit is placed in a cell, the game assumes the center of that cell&amp;#039;s ground plane to be the 0,0,0 point of the said &amp;quot;voxel container box&amp;quot;. The &amp;quot;boxes&amp;quot; of the turret/barrel of that voxel also assume the same point as 0,0,0. Thus, all three parts of the unit have the same axes of rotation. The Z axis of rotation (vertical axis) is particularly important, since the unit will rotate around it when turning.&lt;br /&gt;
&lt;br /&gt;
Even more technical comment:&lt;br /&gt;
The game defines bounds as six integers: MinX, MinY, MinZ, MaxX, MaxY, MaxZ. Each of them stores a corresponding x/y/z coordinate of the &amp;quot;box&amp;quot;&amp;#039;s two opposite corner points (back lower left corner is assumed as Min, front upper right is assumed as Max), relative to the said 0,0,0 point.&lt;br /&gt;
&lt;br /&gt;
Thus, a voxel&amp;#039;s &amp;quot;box&amp;quot; is always (MaxX-MinX) x (MaxY-MinY) x (MaxZ-MinZ) , and its rotational center is always 0,0,0 .&lt;br /&gt;
&lt;br /&gt;
So, following this logic, the turret&amp;#039;s &amp;quot;box&amp;quot; should be positioned on top of the unit &amp;quot;box&amp;quot;, and the barrel &amp;quot;box&amp;quot; should be in front of the turret &amp;quot;box&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You should also know that the voxel will be resized to fit in the &amp;quot;box&amp;quot; if necessary. So, if you want to make the voxel unit half as long and twice as wide, you can just halven the min/max X values and double the min/max Y values.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;: When creating train voxels, it is recommended to set the minZ to at least 3, to avoid the traintrack images overlapping your train.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
For example, observe the Rhino Tank:&lt;br /&gt;
&lt;br /&gt;
Unit (htnk.vxl) bounds:&lt;br /&gt;
 Min X: -19&lt;br /&gt;
 Min Y: -17&lt;br /&gt;
 Min Z: 0&lt;br /&gt;
 &lt;br /&gt;
 Max X: 26&lt;br /&gt;
 Max Y: 16.5&lt;br /&gt;
 Max Z: 11.5&lt;br /&gt;
&lt;br /&gt;
Turret (htnktur.vxl) bounds:&lt;br /&gt;
 Min X: -16&lt;br /&gt;
 Min Y: -9&lt;br /&gt;
 Min Z: 11.5&lt;br /&gt;
 &lt;br /&gt;
 Max X: 11.5&lt;br /&gt;
 Max Y: 9&lt;br /&gt;
 Max Z: 20&lt;br /&gt;
&lt;br /&gt;
Barrel (htnkbarl.vxl) bounds:&lt;br /&gt;
 Min X: 12&lt;br /&gt;
 Min Y: -1.5&lt;br /&gt;
 Min Z: 13&lt;br /&gt;
 &lt;br /&gt;
 Max X: 30.5&lt;br /&gt;
 Max Y: 1.5&lt;br /&gt;
 Max Z: 16&lt;br /&gt;
&lt;br /&gt;
As you can see:&lt;br /&gt;
* The unit &amp;quot;box&amp;quot; is 45 x 33.5 x 11.5 .&lt;br /&gt;
* The turret &amp;quot;box&amp;quot; is 28.5 x 18 x 8.5 .&lt;br /&gt;
* The barrel &amp;quot;box&amp;quot; is 17.5 x 3 x 29 .&lt;br /&gt;
* The unit &amp;quot;box&amp;quot; is approximately 11 voxelblocks high and is positioned at ground level, the turret &amp;quot;box&amp;quot; is positioned exactly above the body &amp;quot;box&amp;quot; (turret.minZ approx= body.maxZ) , and the barrel &amp;quot;box&amp;quot; is directly in front of the &amp;quot;turret &amp;quot;box&amp;quot; (barrel.minX approx= turret.maxX).&lt;br /&gt;
* The combined object&amp;#039;s Z axis (and the not-so-important Y axis) is shifted a bit to the back, since MinX and MaxX values are different in value, not just in sign.&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
This article is a compilation of information provided by various members of the community, including Blade, CannisRabidus, and Stucuk.&lt;br /&gt;
&lt;br /&gt;
[[Category:General Editing Information]]&lt;/div&gt;</summary>
		<author><name>en&gt;DCoder</name></author>
	</entry>
</feed>