https://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&feed=atom&action=historyManipulating Objects and Shaders in the 3D Preview - Revision history2024-03-28T15:47:32ZRevision history for this page on the wikiMediaWiki 1.31.0https://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6411&oldid=prevJavaJones at 08:39, 7 January 20142014-01-07T08:39:59Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 08:39, 7 January 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l43" >Line 43:</td>
<td colspan="2" class="diff-lineno">Line 43:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>You can drop objects to the terrain. This makes an object sit on the terrain surface. This might be useful if you find an object is floating above the terrain.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>You can drop objects to the terrain. This makes an object sit on the terrain surface. This might be useful if you find an object is floating above the terrain.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>What actually happens is that TG finds the elevation of the terrain at the object position and then sets the Y coordinate to that elevation. This has the effect of dropping the object down onto the terrain.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div>What actually happens is that TG finds the elevation of the terrain at the object position and then sets the Y coordinate <ins class="diffchange diffchange-inline">of the object's "origin" (or "anchor") point </ins>to that elevation. This has the effect of dropping the object down onto <ins class="diffchange diffchange-inline">the terrain. But keep in mind that the the "origin" is not always at the base of an object, it may be in the center, or even in some other part of the object depending on how it was created. This means that sometimes dropping to terrain can bury the object in </ins>the terrain.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>You can drop <del class="diffchange diffchange-inline">and </del>object to the terrain using the drop-to-terrain button on the transform panel. You can also use the "D" key. If you want to see where the object would sit on the terrain if it was dropped you can press "shift-D" to toggle the drop point display. This draws a crosshair at the drop position on the terrain. You may also find the drop point display useful when trying to position objects in the air relative to a point on the terrain.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div>You can drop <ins class="diffchange diffchange-inline">an </ins>object to the terrain using the drop-to-terrain button on the transform panel. You can also use the "D" key. If you want to see where the object would sit on the terrain if it was dropped you can press "shift-D" to toggle the drop point display. This draws a crosshair at the drop position on the terrain. You may also find the drop point display useful when trying to position objects in the air relative to a point on the terrain.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td></tr>
</table>JavaJoneshttps://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6398&oldid=prevJo at 00:56, 31 December 20132013-12-31T00:56:08Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 00:56, 31 December 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactively. Please note that "object" is used below to refer to any node that can be manipulated in the 3D Preview, whether it's an actual object node or a shader.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactively. Please note that "object" is used below to refer to any node that can be manipulated in the 3D Preview, whether it's an actual object node or a shader.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>Objects which can be manipulated will show, at minimum, a set of crosshairs in the preview. These crosshairs are usually at the object origin, which is the location specified by a position parameter, or similar, in the node. Some objects may show additional information. Many show a bounding box. Other examples are the [[Simple Shape Shader]], which can show the outline of its shape, and <del class="diffchange diffchange-inline">or </del>the [[Camera]] which shows a simple camera body and view frustum.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div>Objects which can be manipulated will show, at minimum, a set of crosshairs in the preview. These crosshairs are usually at the object origin, which is the location specified by a position parameter, or similar, in the node. Some objects may show additional information. Many show a bounding box. Other examples are the [[Simple Shape Shader]], which can show the outline of its shape, and the [[Camera]] which shows a simple camera body and view frustum.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>To manipulate an object you first need to select it. When you move the mouse over a selectable object the crosshairs, as well as the object itself, turn yellow. There are a couple of ways to select objects. You can just click on the crosshairs. If you context click in the preview you can also choose any selectable nodes from the "Select Object or Shader" submenu. This may be helpful if there are a number of nodes close together and you're having difficulty selecting the one you're interested in. Only one object can be selected at a time.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>To manipulate an object you first need to select it. When you move the mouse over a selectable object the crosshairs, as well as the object itself, turn yellow. There are a couple of ways to select objects. You can just click on the crosshairs. If you context click in the preview you can also choose any selectable nodes from the "Select Object or Shader" submenu. This may be helpful if there are a number of nodes close together and you're having difficulty selecting the one you're interested in. Only one object can be selected at a time.</div></td></tr>
</table>Johttps://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6388&oldid=prevJo at 01:12, 27 December 20132013-12-27T01:12:51Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 01:12, 27 December 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l40" >Line 40:</td>
<td colspan="2" class="diff-lineno">Line 40:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>When you've finished manipulating an object you can deselect it by clicking away from the object axes. Alternatively you can choose "Deselect" from the Edit menu. This is also useful if you're having trouble deselecting without selecting something else in the scene.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>When you've finished manipulating an object you can deselect it by clicking away from the object axes. Alternatively you can choose "Deselect" from the Edit menu. This is also useful if you're having trouble deselecting without selecting something else in the scene.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>== Drop-to-terrain ==</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div><ins class="diffchange diffchange-inline">=</ins>== Drop-to-terrain <ins class="diffchange diffchange-inline">=</ins>==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>You can drop objects to the terrain. This makes an object sit on the terrain surface. This might be useful if you find an object is floating above the terrain.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>You can drop objects to the terrain. This makes an object sit on the terrain surface. This might be useful if you find an object is floating above the terrain.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
</table>Johttps://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6386&oldid=prevJo at 00:36, 27 December 20132013-12-27T00:36:50Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 00:36, 27 December 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l13" >Line 13:</td>
<td colspan="2" class="diff-lineno">Line 13:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>The default manipulator for most objects is the translation manipulator. You can change to other manipulators by clicking a transform panel button or using the "T" key to switch between them. The drop-to-terrain button doesn't show a manipulator and is described further below. Manipulators are drawn at the object origin.  </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>The default manipulator for most objects is the translation manipulator. You can change to other manipulators by clicking a transform panel button or using the "T" key to switch between them. The drop-to-terrain button doesn't show a manipulator and is described further below. Manipulators are drawn at the object origin.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>The translation manipulator draws the X, Y and Z axes in red, green and blue respectively. Each axis has an arrowhead showing the positive direction. The axes highlight when you mouse over them to what would be selected if you clicked the mouse there. Click and drag on axis to move the object only along that axis. To move the object freely in 3D click on the centre of the crosshairs.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div>The translation manipulator draws the X, Y and Z axes in red, green and blue respectively. Each axis has an arrowhead showing the positive direction. The axes highlight when you mouse over them to <ins class="diffchange diffchange-inline">show </ins>what would be selected if you clicked the mouse there. Click and drag on <ins class="diffchange diffchange-inline">an </ins>axis to move the object only along that axis<ins class="diffchange diffchange-inline">. For example if you click on the X axis the object will only move along the X axis when you drag</ins>. To move the object freely in 3D click on the centre of the crosshairs.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22" >Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>The rotation manipulator draws a set of circles which typically correspond to pitch (red circle), heading (green circle) and bank (blue circle). This may be different for some nodes which don't rotate in the same way, but it will be true for most nodes which support rotation in 3D. A solid line is drawn to show the axis of rotation for each circle. A blue dotted line is drawn to show the object's positive X axis, which can help show the object's orientation in space.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>The rotation manipulator draws a set of circles which typically correspond to pitch (red circle), heading (green circle) and bank (blue circle). This may be different for some nodes which don't rotate in the same way, but it will be true for most nodes which support rotation in 3D. A solid line is drawn to show the axis of rotation for each circle. A blue dotted line is drawn to show the object's positive X axis, which can help show the object's orientation in space.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>To rotate an object mouse over the circle for the rotation. The circle that will be selected when you click will be drawn with a transparent fill. Click and drag <del class="diffchange diffchange-inline">in </del>a <del class="diffchange diffchange-inline">circle </del>around the manipulator to rotate.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div>To rotate an object mouse over the circle for the rotation. The circle that will be selected when you click will be drawn with a transparent fill. Click and drag <ins class="diffchange diffchange-inline">with </ins>a <ins class="diffchange diffchange-inline">circular movement </ins>around the manipulator to rotate.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div><center></div></td></tr>
</table>Johttps://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6385&oldid=prevJo at 00:32, 27 December 20132013-12-27T00:32:14Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 00:32, 27 December 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div><del style="font-weight: bold; text-decoration: none;">== Headline text ==</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactively. Please note that "object" is used below to refer to any node that can be manipulated in the 3D Preview, whether it's an actual object node or a shader.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactively. Please note that "object" is used below to refer to any node that can be manipulated in the 3D Preview, whether it's an actual object node or a shader.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
</table>Johttps://www.planetside.co.uk/wiki/index.php?title=Manipulating_Objects_and_Shaders_in_the_3D_Preview&diff=6384&oldid=prevJo: Created page with "== Headline text == Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactiv..."2013-12-27T00:31:28Z<p>Created page with "== Headline text == Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactiv..."</p>
<p><b>New page</b></p><div>== Headline text ==<br />
Terragen allows you to manipulate objects and many shaders in the 3D Preview. This page describes how to move, rotate and scale objects and shaders interactively. Please note that "object" is used below to refer to any node that can be manipulated in the 3D Preview, whether it's an actual object node or a shader.<br />
<br />
Objects which can be manipulated will show, at minimum, a set of crosshairs in the preview. These crosshairs are usually at the object origin, which is the location specified by a position parameter, or similar, in the node. Some objects may show additional information. Many show a bounding box. Other examples are the [[Simple Shape Shader]], which can show the outline of its shape, and or the [[Camera]] which shows a simple camera body and view frustum.<br />
<br />
To manipulate an object you first need to select it. When you move the mouse over a selectable object the crosshairs, as well as the object itself, turn yellow. There are a couple of ways to select objects. You can just click on the crosshairs. If you context click in the preview you can also choose any selectable nodes from the "Select Object or Shader" submenu. This may be helpful if there are a number of nodes close together and you're having difficulty selecting the one you're interested in. Only one object can be selected at a time.<br />
<br />
When you select a node the transform panel is shown. The transform panel is a set of four buttons that let you choose a manipulator. This is what they look like:<br />
<br />
[[image:wwo_transform_panel.gif|center]]<br />
<br />
From left to right the buttons are for translation (moving), rotation, scaling and drop-to-terrain. Not all objects support all the transformations. Transform buttons will be greyed out for unsupported transformations.<br />
<br />
The default manipulator for most objects is the translation manipulator. You can change to other manipulators by clicking a transform panel button or using the "T" key to switch between them. The drop-to-terrain button doesn't show a manipulator and is described further below. Manipulators are drawn at the object origin. <br />
<br />
The translation manipulator draws the X, Y and Z axes in red, green and blue respectively. Each axis has an arrowhead showing the positive direction. The axes highlight when you mouse over them to what would be selected if you clicked the mouse there. Click and drag on axis to move the object only along that axis. To move the object freely in 3D click on the centre of the crosshairs.<br />
<br />
<center><br />
[[image:wwo_translate_handle.gif]]<br /><br />
<font size="-1">Translation manipulator</font><br />
</center><br />
<br />
The rotation manipulator draws a set of circles which typically correspond to pitch (red circle), heading (green circle) and bank (blue circle). This may be different for some nodes which don't rotate in the same way, but it will be true for most nodes which support rotation in 3D. A solid line is drawn to show the axis of rotation for each circle. A blue dotted line is drawn to show the object's positive X axis, which can help show the object's orientation in space.<br />
<br />
To rotate an object mouse over the circle for the rotation. The circle that will be selected when you click will be drawn with a transparent fill. Click and drag in a circle around the manipulator to rotate.<br />
<br />
<center><br />
[[image:wwo_rotate_handle.gif]]<br /><br />
<font size="-1">Rotation manipulator</font><br />
</center><br />
<br />
The final manipulator is the scale manipulator. The scale manipulator draws the X, Y and Z axes in red, green and blue respectively, along with a ball on the ends of each axis. To scale an object along a particular axis you click and drag on one of those balls. To scale the object along all axes at once (uniform scaling) you click and drag on the purple ball in the centre.<br />
<br />
<center><br />
[[image:wwo_scale_handle.gif]]<br /><br />
<font size="-1">Scale manipulator</font><br />
</center><br />
<br />
Not all objects allow manipulation along all axes. Manipulators only draw handles for the axes that are allowed. An example of this is the [[Simple Shape Shader]], which only allows rotation around the Y axis. The rotation manipulator for the Simple Shape Shader only draws the Y axis circle.<br />
<br />
When you've finished manipulating an object you can deselect it by clicking away from the object axes. Alternatively you can choose "Deselect" from the Edit menu. This is also useful if you're having trouble deselecting without selecting something else in the scene.<br />
<br />
== Drop-to-terrain ==<br />
You can drop objects to the terrain. This makes an object sit on the terrain surface. This might be useful if you find an object is floating above the terrain.<br />
<br />
What actually happens is that TG finds the elevation of the terrain at the object position and then sets the Y coordinate to that elevation. This has the effect of dropping the object down onto the terrain.<br />
<br />
You can drop and object to the terrain using the drop-to-terrain button on the transform panel. You can also use the "D" key. If you want to see where the object would sit on the terrain if it was dropped you can press "shift-D" to toggle the drop point display. This draws a crosshair at the drop position on the terrain. You may also find the drop point display useful when trying to position objects in the air relative to a point on the terrain.<br />
<br />
<center><br />
[[image:wwo_drop_point.jpg]]<br /><br />
<font size="-1">Object showing drop point in orange</font><br />
</center><br />
<br />
<br />
<br />
[[Working with Objects|Back to Working with Objects]]</div>Jo