Navigation

    CreatiCode Scratch

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Setting Camera Properties

    3D Blocks
    1
    1
    118
    Loading More Posts
    • 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.
    • info-creaticode
      CreatiCode last edited by info-creaticode

       

      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:

       

      Parameters

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

      • V-angle: The desired vertical view angle of the camera.

      • H-angle: The desired horizontal view angle of the camera.

      • 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.

      Try it yourself:

      https://play.creaticode.com/projects/464cbfac0d73bb447e70713b

       

      Learn More

      • Reading Camera Properties
      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post