3D Modelling/Create 3D Models/AR.js/main attributes

< 3D Modelling < Create 3D Models < AR.js

Introduction

The following section explains the main attributes of JSON3D4Aframe to construct AR.js objects with more details about the geometric main attributes.

Object Copies/RepetitionCoordinate SystemWater Molecule
Chrystal Lattice for Sodium Clorid
Coordinate System
Water Molecule in Aframe - generated with JSON3D4Aframe

See also

Attributes for geometrische Primitives


AttributeExample Description / Use Case
ID813498723492374 Unique identifier for all objects in the 3D scene
Type of ObjectSphereSelect the type of object from a set of geometric primitives (e.g. Box, Sphere, Text, Torus, ...)
Position XYZ3.0 -1.0 4.5 Position of Object in the coordinate system
Size XYZ3.0 2.0 4.0 For a Box the size defines the width, height and depth of the box. For some geometric primitives only one extension is used for 3D object (e.g. Size X is used for radius or a plane has only a width and a height)
Repeat1 2 0 Defines the number of additional copies (repetitions) of the basic geometric primitives. 0 defines, that there are no additional copies of the geometric primitive (useful for Christal Lattice)
Repeat Steps1.5 2.0 1.0Define the vector length in x-, y- and z-direction. If the basic geometric primitive is a sphere, 1.5 marker units to the right the next sphere is place and 2.0 unit up the next sphere is placed.
Colorred color of the geometric primitive. The color is used for all copies of the geometric primitive.
Scale2.0scale the size of the geometric primitive. 2.0 double the size of the object.
 Opacity1.0a solid object has the opacity value 1.0. Medium transparent object have the opacity value 0.5. To view the 3D structure of the 3D model Opacity value 0.7 is recommended.
Rotation90 30 0Defines the rotation in degree around the x-Axis, y-Axis and z-Axis