Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:visualizer:3d-sets [2024/01/11 16:24] – created julia | en:visualizer:3d-sets [2025/08/18 15:32] (current) – adminwiki | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== 3D sets ===== | ===== 3D sets ===== | ||
- | 3D sets are code elements that can be inserted into the scene instead of 3D objects. They are used when complex composite elements that form a unit and should | + | |
+ | {{INLINETOC 3}} | ||
+ | |||
+ | 3D sets are code elements that can be inserted into the scene instead of 3D objects. They are used when complex composite elements that form a unit and react like a single model are required. 3D sets can contain interaction elements, animations and audio clips. In addition, 3D sets can also interact with other elements in a scene. | ||
Example: | Example: | ||
Line 8: | Line 11: | ||
* An animation with sounds: An animation is shown in which a cordless screwdriver tightens a screw. A sound is played. | * An animation with sounds: An animation is shown in which a cordless screwdriver tightens a screw. A sound is played. | ||
- | 3D sets are defined in AFRAME (https:// | + | 3D sets are created with AFRAME (https:// |
The UI with which the elements can be customised can be configured using an EditorConfig or EditorConfigGlobal attribute on each a-entity tag. | The UI with which the elements can be customised can be configured using an EditorConfig or EditorConfigGlobal attribute on each a-entity tag. | ||
Line 18: | Line 21: | ||
{{visualizer: | {{visualizer: | ||
- | ==== Syntax ==== | + | ==== Parameters of the neo-code component ==== |
+ | |||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | |||
+ | === Parsing the parameter values === | ||
+ | |||
+ | The default parameter type is '' | ||
+ | - Value: ' | ||
+ | - Value: ' | ||
+ | - Value: '0 1' (two numerical values separated by spaces) -> Vector2 '' | ||
+ | - Value: '0 1 2' (three numerical values separated by spaces) -> Vector3 '' | ||
+ | - Value: 'val1, val2, val3' (comma-separated values) or parameter name ends with ' | ||
+ | |||
+ | ==== Syntax | ||
This syntax applies: | This syntax applies: | ||
Line 25: | Line 47: | ||
- Value range: '' | - Value range: '' | ||
- | ==== editorConfigGlobal vs. editorConfig | + | === editorConfigGlobal vs. editorConfig === |
The controls defined by editorConfigGlobal are displayed in the upper 'Scene settings' | The controls defined by editorConfigGlobal are displayed in the upper 'Scene settings' | ||
- | ==== Labels ==== | + | === Attributes vs. property === |
- | + | ||
- | ==== Attributes vs. property | + | |
Values for properties such as position or colour are values for the corresponding entity attributes. The attributes can also be components, which in turn have attributes. These are then called properties (cf. the AFRAME docs). For example, the component '' | Values for properties such as position or colour are values for the corresponding entity attributes. The attributes can also be components, which in turn have attributes. These are then called properties (cf. the AFRAME docs). For example, the component '' | ||
Line 39: | Line 59: | ||
Attributes are generally referred to below, but the statements also generally apply to component properties. | Attributes are generally referred to below, but the statements also generally apply to component properties. | ||
- | ==== Attribute value changes | + | === Attribute value changes === |
Line 51: | Line 71: | ||
Numerical values are configured using a slider. The syntax is: | Numerical values are configured using a slider. The syntax is: | ||
- | * '' | + | * '' |
* '' | * '' | ||
- | minValue and maxValue can also be replaced | + | minValue and maxValue can also be represented |
If minValue and maxValue are the same (the respective pair for vectors), no selection is possible and the value is fixed. | If minValue and maxValue are the same (the respective pair for vectors), no selection is possible and the value is fixed. | ||
Line 86: | Line 106: | ||
A colour selection element is then displayed in the UI. | A colour selection element is then displayed in the UI. | ||
- | ==== Translations | + | === Labels |
+ | Labels for UI elements can be added after the property separated by a tilde (' | ||
+ | |||
+ | Example: '' | ||
+ | * functionName: | ||
+ | * Info: Text before the button | ||
+ | * button: Type of definition (can also be bool or a value range (see below)) | ||
+ | * show: Label text on the button | ||
+ | |||
+ | === Translations | ||
Unless explicitly specified, the label names are derived from the attribute names specified in the editorConfig. | Unless explicitly specified, the label names are derived from the attribute names specified in the editorConfig. | ||
- | === Creation of translation keys === | + | == Creation of translation keys == |
The formation of keys follows these rules (in the examples, the key is marked in bold after the ':' | The formation of keys follows these rules (in the examples, the key is marked in bold after the ':' | ||
Line 98: | Line 127: | ||
If the value range is a vector (e.g. for position or material.repeat), | If the value range is a vector (e.g. for position or material.repeat), | ||
- | The room viewer checks for each label ('' | + | The room viewer checks for each label ('' |
- controller: Translations for standard control labels | - controller: Translations for standard control labels | ||
- environment: | - environment: | ||
Line 104: | Line 133: | ||
The check is performed in the specified order. This means that the translation of the standard control labels cannot be overwritten by element translations. | The check is performed in the specified order. This means that the translation of the standard control labels cannot be overwritten by element translations. | ||
- | **Note: Translation keys (as with the ember-intl used) must be used in a case-sensitive manner** | + | //Note: Translation keys (as with the ember-intl used) must be used in a case-sensitive manner// |
Characters appended with an underscore ' | Characters appended with an underscore ' | ||
Line 112: | Line 141: | ||
* Bed_Whiteline -> Bed Whiteline (Whiteline is a product name that is not translated) | * Bed_Whiteline -> Bed Whiteline (Whiteline is a product name that is not translated) | ||
- | === Translation of Keys === | + | == Translation of Keys == |
The key is first checked in full (without the part after ' | The key is first checked in full (without the part after ' | ||
Line 121: | Line 150: | ||
* And so on until the key cannot be shortened any further | * And so on until the key cannot be shortened any further | ||
- | **Please note:** Translations cannot currently be added in the Visualiser. However, existing keys can be used. | + | //Note: Translations cannot currently be added in the Visualiser. However, existing keys can be used.// |
- | ==== Configuration examples | + | === Configuration examples === |
* '' | * '' | ||
Line 129: | Line 158: | ||
* Therefore all objects must first fit to the right wall. | * Therefore all objects must first fit to the right wall. | ||
* '' | * '' | ||
- | * => scale in the default range of ''' | + | * => scale in the default range of ''' |
* '' | * '' | ||
* Adjust the scale from 0 to 2 for x, y and z. | * Adjust the scale from 0 to 2 for x, y and z. | ||
* The range ''' | * The range ''' | ||
- | * '' | + | * '' |
- | * Adjust the values from half of the current value to the current value multiplied by 2. | + | * Adjust the values from 0 to 2 for x, y and z. |
- | * '' | + | * '' |
- | * Adjust the values for scale and position. | + | * Adjust the values for scale (with default values) |
* '' | * '' | ||
* Adjust the colour of the entity with a colour picker. | * Adjust the colour of the entity with a colour picker. |