Skip to content

defaultScale(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

defaultScale(val: number): this;

Sets the default scale of the TargetGroup.

The default scale indicates the physical size of the target and is necessary in order to render the objects on the target at the correct depth and size in a 3D stereoscopic headset. For more information see Tracking in Headsets.

The default scale determines the physical size of 1 unit of target space in meters. Thus, since target space ranges from -1 at the bottom of the target image to +1 at the top, a defaultScale of 1 implies that the target is 2 meters in height. A target that is 40cm tall should have a defaultScale value of 0.2.

ParameterTypeDescription
valnumberThe scale to set the TargetGroup to.