Script Editor

Camera Works

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

Camera Action

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

No CameraWorks Additional cameras also use Orbit Controls. I don't.
CameraWorks + OrbitControls Orbit Controls and both additional cameras To use.
Only CameraWorks Orbit Controls Add without using Only use the camera.
Label Button + CameraWorks WalkIn A text button for starting is displayed in the center of the screen.
Enter text in the right-hand column [Button].
WakIn Create a demo before starting with an additional camera.
Note) WalkIn in VR Viewer Startup is fixed at [Enter VR].
2D Object + CameraWorks WalkIn Display image button for startup. The placement of buttons is set with 2D Object Action.
In the right column [Button], select Action configured 2D Object. WakIn Create a demo before starting with an additional camera.
Note) WalkIn in VR Viewer Startup is fixed at [Enter VR].

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 cameras. Orbit Controls 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.