Script Editor

Camera Works

VR that allows viewers to freely move their cameras and Walk around the virtual world WalkIn[w] is the basic VR and Embed Viewer [w] basically uses one camera.
However, WalkIn[w] is not running Embed Viewer[w], various expressions can be realized by operating the camera.
There are roughly two types of cameras handled by WEB-XR.studio. Orbit Controls[w ] The use of cameras and additional cameras by developers is called Camera Works[w] ..

Camera Action

Script Board[w] to Camera Action. First, from the items displayed at the top, decide the type of camera used for the entire scene of XR content [w].

Only WalkIn WalkIn[w] becomes to be enabled.
OrbitControls Orbit Controls [w] becomes to be enabled.
Only CameraWorks Only use the additional cameras.
This selection apperes when you have one more additional camera.
Label Button + CameraWorks WalkIn[w] A text button for starting is displayed in the center of the screen.
Enter text in the right-hand column [Button].
WakIn[w] Create a demo before starting with an additional camera.
By default, this button has no behavior.
Use the [CW Start Trigger] of the trigger group to give the behavior.

Note) WalkIn[w in VR Viewer[w] ] Startup is fixed at [Enter VR].
This selection apperes when you have one more additional camera.
2D Object + CameraWorks WalkIn[w] Display image button for startup. The placement of buttons is set with 2D Object Action.
In the right column [Button], select Action[w] configured 2D Object. WakIn[w] Create a demo before starting with an additional camera.
By default, this button has no behavior.
Use the [CW Start Trigger] of the trigger group to give the behavior.

Note) WalkIn[w in VR Viewer[w] ] Startup is fixed at [Enter VR].
This selection apperes when you have one more additional camera.

Orbit Controls

You can freely turn with Mouse / Touch drag.

Auto Rotation Rotate Pan[Experimental implementation]
Automatic swivel activation/deactivation Manual swivel activation/deactivation Manual bread active/inactive
OC Camera OC Target
Orbit Controls[w] cameras. Orbit Controls[w] Specifies the target object that will be the center of rotation.
Min Pan[Experimental implementation] Max Pan[Experimental implementation]
Specifies the lower range for manual pan.
If it is 0, there is no limit.
Specifies the upper limit of manual pan.
If it is 0, there is no limit.
Min Angle Max Angle
Specifies the lower angle of the vertical direction for manual rotation.
If it is 0, there is no limit.
Specifies the upper vertical angle of the manual swivel.
If it is 0, there is no limit.

Camera Action Row

Action[w] that handles the startup of the additional camera.
The additional camera itself is set with Additional Camera.

ID Type Camera Angle Of View Look At Offset Y[Experimental implementation] Distance Speed
ID number.
Click the ID number to display the delete dialog.
  • Normal
    The stopped camera.
  • Rotate
    It is an automatic turning camera.
  • Both cameras can be moved with Position Action.
Specify the added camera with Additional Camera. Specify the angle of view with Degree. 45° is the initial value. Specify the object to gaze. Specifies the Y-axis position offset of the camera in meters. Active only when [Type] is set to Rotate.
Specifies the distance from the center of rotation in the metric system.
Active only when [Type] is set to Rotate.
Specify the turning speed. Rotation in 1fps unit is specified by radian value.