<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[设置摄像头极限]]></title><description><![CDATA[<p dir="auto"> </p>
<h2><a class="anchor-offset" name="预备知识"></a>预备知识</h2>
<ul>
<li><a href="/topic/9/using-an-orbit-camera-for-3d-scene-navigation">在三维场景导航中使用轨道摄像头</a></li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="介绍"></a>介绍</h2>
<p dir="auto">你可以利用这个编程积木来设置轨道摄像头的极限：</p>
<p dir="auto"> <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/804c07cd-b58e-4aa9-91b3-8130c46cb724.png" width="1000" /><br />
 </p>
<h3><a class="anchor-offset" name="参数"></a>参数</h3>
<p dir="auto"> </p>
<ul>
<li><strong>最小/最大半径</strong>: 这两个输入框设置了轨道摄像头和他的目标点之间的最小和最大距离。举个例子，如果你把最小半径设置成1，那么当你用鼠标滚动按钮或W键把摄像头放大时，你距离摄像头目标的距离不能小于1个单位的距离：</li>
</ul>
<p dir="auto"> <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/562807f8-f433-43b3-b465-654aea3fbe7f.gif" width="800" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<ul>
<li><strong>可见距离 最小/最大</strong>: 这两个数值控制场景中被展示的物体范围。举个例子，如果我们把距离设置成5到1000，那么任何和摄像头距离小于五个单位或大于1000个单位的物体将不会被展示在摄像机里。<br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ffb7320a-2b35-4503-83ab-b58a658e57a3.gif" width="1000" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /></li>
</ul>
<p dir="auto"> </p>
<ul>
<li><strong>上下角度 最小/最大</strong>: 这两个数值控制了摄像头的上下角度。默认情况下上下角度为0至180度，这个数值覆盖了所有角度。无论如何，如果你把上下角度设置成更小的角度，那么摄像头将不可以倾斜到大于或小于这个角度：</li>
</ul>
<p dir="auto"> <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0cfe478c-e903-4331-8233-3896395b0801.gif" width="860" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<ul>
<li><strong>速度比例 平移/转动</strong>: 最后两个数值控制你可以手动平移或旋转摄像头的速度。这两个数值越大，摄像头会移动得越快。举个例子，这个速度展示了500对比5000的平移速度差异：</li>
</ul>
<p dir="auto"> <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/cdab3197-53a3-4f09-a00c-e72d44592cdd.gif" width="800" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<p dir="auto"> <br />
 </p>
<h2><a class="anchor-offset" name="示例"></a>示例</h2>
<p dir="auto">当我们使用不同的天空时，我们必须要设置摄像头的可见范围。 “设置天空”积木会为场景添加一个巨大的天空背景，但普通的轨道摄像机看不到那么远。因此，我们需要在设置天空后扩大摄像头的可视范围：</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/582775fb-4f00-4080-800d-0d5a40034ef9.png" alt="9e624d0d-0390-4671-b385-13202119ac66-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"> </p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/5d859f19-2f33-44a7-a465-df7c92c566de.png" alt="7a06396d-f20e-4ed9-bc43-28c1789e7035-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.creaticode.com/topic/737/设置摄像头极限</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 05:28:43 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/737.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Nov 2022 03:30:13 GMT</pubDate><ttl>60</ttl></channel></rss>