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 669 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.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    预备知识

    • 使用轨道摄像头观察场景

     

    介绍

    当你把一个轨道摄像头添加到场景里后,你可以利用以下积木设置它的距离、角度(俯视角度,仰视角度),同时它也支持动画效果。

    477d7ec0-b015-4157-98bb-71f73b7be74f-image.png

     

    参数

    • 距离: 摄像头与目标之间的距离。

    • 俯视角度: 摄像头俯视角度的度数。

    • 侧视角度: 摄像头侧视角度的度数。

    • 目标 X/Y/Z:摄像头目标点(摄像头正在注视的点)的位置。如不设置,那么摄像头将把目标设定为原点,即 x = 0, y = 0, z = 0的位置。

    • 时长: 如果时长为 0 或没有填入任何数值,那么距离、俯视角度和侧视角度会在程序运行时被立刻改变。反之,以上三个参数会随着时长而逐渐改变,直到变成被设置的参数为止,参数逐渐改变的过程会创造出一个动态的摄像头视角。

     

    演示

    在这个程序中,我们让摄像头围着物体旋转5秒。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/3e56cf3a-b9d5-479e-8748-d71aa1d7a2b8.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">

     
    你可以打开这个项目试试看:

    https://play.creaticode.cn/projects/64d3629d786c29288acc4218

    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