Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. 知识库
  3. 三维积木
  4. 设置摄像头极限

设置摄像头极限

Scheduled Pinned Locked Moved 三维积木
1 Posts 1 Posters 852 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CreatiCode TA 2
    wrote on last edited by admin
    #1

     

    预备知识

    • 在三维场景导航中使用轨道摄像头

     

    介绍

    你可以利用这个编程积木来设置轨道摄像头的极限:

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/804c07cd-b58e-4aa9-91b3-8130c46cb724.png" width="1000" style="">
     

    参数

     

    • 最小/最大半径: 这两个输入框设置了轨道摄像头和他的目标点之间的最小和最大距离。举个例子,如果你把最小半径设置成1,那么当你用鼠标滚动按钮或W键把摄像头放大时,你距离摄像头目标的距离不能小于1个单位的距离:

     
    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;">
     

    • 可见距离 最小/最大: 这两个数值控制场景中被展示的物体范围。举个例子,如果我们把距离设置成5到1000,那么任何和摄像头距离小于五个单位或大于1000个单位的物体将不会被展示在摄像机里。
      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;">

     

    • 上下角度 最小/最大: 这两个数值控制了摄像头的上下角度。默认情况下上下角度为0至180度,这个数值覆盖了所有角度。无论如何,如果你把上下角度设置成更小的角度,那么摄像头将不可以倾斜到大于或小于这个角度:

     
    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;">
     

    • 速度比例 平移/转动: 最后两个数值控制你可以手动平移或旋转摄像头的速度。这两个数值越大,摄像头会移动得越快。举个例子,这个速度展示了500对比5000的平移速度差异:

     
    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;">
     

     
     

    示例

    当我们使用不同的天空时,我们必须要设置摄像头的可见范围。 “设置天空”积木会为场景添加一个巨大的天空背景,但普通的轨道摄像机看不到那么远。因此,我们需要在设置天空后扩大摄像头的可视范围:

    9e624d0d-0390-4671-b385-13202119ac66-image.png

     

    7a06396d-f20e-4ed9-bc43-28c1789e7035-image.png

    1 Reply Last reply
    0
    • CreatiCodeI CreatiCode pinned this topic on

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode