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. Knowledge Base
  3. 3D Blocks
  4. Setting Camera Properties

Setting Camera Properties

Scheduled Pinned Locked Moved 3D Blocks
1 Posts 1 Posters 1.2k 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 info-creaticode
    #1

     

    Prerequisite

    • Using an Orbit Camera for 3D Scene Navigation

     

    Description

    You can change a camera’s properties easily using this block below, and it supports animations as well:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c34ab74e-2a35-43eb-b05d-bbc8f5962580.png" width="1000" style="">

     

    Parameters

    • Distance: The desired distance between the camera and the target point.

    • V-angle: The desired vertical view angle of the camera, between 0 (view from the top) and 180 (view from the bottom)

    • H-angle: The desired horizontal view angle of the camera (0 means looking forward along the Y-axis)

    • Z Offset: For a “follow camera”, its target is the position of the target object it is following by default. But you can assign a “Z Offset” to shift the camera’s target point along the Z axis up or down relative to the target object’s position.

    • X/Y/Z: The desired position of the camera’s target point (the point that the camera is looking at).

    • Period: If 0 or empty, then the 3 properties will be changed immediately. Otherwise, these properties will be gradually changed from their current values to the target values over this time period, creating an animated camera view.

     

    Demo

    In this program, we rotate the camera around the box over a period of 5 seconds, and also shift the target to the position with X of 90.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/04e7bc92-930d-49e3-a8da-18a19eb4894f.gif" width="1100" style="border-radius: 5px; border: 1px solid #29622d;">

    Try it yourself:

    play.creaticode.com/projects/464cbfac0d73bb447e70713b

     

    Learn More

    • Reading Camera Properties
    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