@3dverse/livelink.core 0.7.12 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/_prebuild/EditorMessageHandler.d.ts +5 -5
  2. package/dist/_prebuild/GatewayConnection.d.ts +6 -0
  3. package/dist/_prebuild/GatewayMessageHandler.d.ts +7 -4
  4. package/dist/_prebuild/enums.d.ts +4 -1
  5. package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +18 -17
  6. package/dist/_prebuild/messages/editor/EditorEntity.d.ts +52 -3
  7. package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +6 -0
  8. package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -1
  9. package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +3 -0
  10. package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +3 -3
  11. package/dist/_prebuild/messages/editor/index.d.ts +1 -1
  12. package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +2 -2
  13. package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +3 -2
  14. package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +3 -3
  15. package/dist/_prebuild/messages/gateway/ClientConfig.d.ts +4 -4
  16. package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +3 -3
  17. package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +3 -3
  18. package/dist/_prebuild/messages/gateway/FrameData.d.ts +5 -5
  19. package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +3 -3
  20. package/dist/_prebuild/messages/gateway/InputState.d.ts +3 -3
  21. package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +4 -4
  22. package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +4 -3
  23. package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +2 -2
  24. package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +4 -3
  25. package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +2 -2
  26. package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +4 -4
  27. package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +4 -4
  28. package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +1 -1
  29. package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +4 -3
  30. package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +4 -3
  31. package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +4 -4
  32. package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +4 -4
  33. package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +4 -4
  34. package/dist/_prebuild/messages/gateway/enums.d.ts +6 -6
  35. package/dist/_prebuild/types/ComponentsHashes.d.ts +53 -0
  36. package/dist/_prebuild/types/ComponentsRecord.d.ts +186 -0
  37. package/dist/_prebuild/types/SceneSettingsRecord.d.ts +50 -0
  38. package/dist/_prebuild/types/assets.d.ts +27 -23
  39. package/dist/_prebuild/types/components.d.ts +380 -318
  40. package/dist/_prebuild/types/{settings.d.ts → sceneSettings.d.ts} +85 -70
  41. package/dist/sources/ActivityWatcher.d.ts +44 -0
  42. package/dist/sources/LivelinkCore.d.ts +12 -11
  43. package/dist/sources/RequestHandler.d.ts +2 -0
  44. package/dist/sources/Serializer.d.ts +6 -6
  45. package/dist/sources/{types/constants.d.ts → constants.d.ts} +2 -2
  46. package/dist/sources/controllers/GatewayController.d.ts +10 -3
  47. package/dist/sources/core.d.ts +25 -5
  48. package/dist/sources/interfaces/ClientInterface.d.ts +5 -0
  49. package/dist/sources/interfaces/EntityInterface.d.ts +11 -0
  50. package/dist/sources/interfaces/SessionInterface.d.ts +9 -4
  51. package/dist/sources/types/RTID.d.ts +4 -3
  52. package/dist/sources/types/UUID.d.ts +4 -4
  53. package/dist/sources/types/dataObjects.d.ts +52 -0
  54. package/dist/sources/types/index.d.ts +2 -5
  55. package/dist/sources/types/math.d.ts +38 -17
  56. package/dist/sources/types/nativeTypes.d.ts +84 -13
  57. package/package.json +10 -2
  58. package/dist/_prebuild/messages/editor/EntityCreationOptions.d.ts +0 -6
  59. package/dist/sources/controllers/ActivityWatcher.d.ts +0 -22
@@ -1,6 +1,6 @@
1
1
  import { RTID, Quat, Vec3 } from "../../../sources/types";
2
2
  /**
3
- *
3
+ * @category Gateway
4
4
  */
5
5
  export type SkeletonPartialPose = {
6
6
  positions?: Map<number, Vec3>;
@@ -8,18 +8,18 @@ export type SkeletonPartialPose = {
8
8
  scales?: Map<number, Vec3>;
9
9
  };
10
10
  /**
11
- *
11
+ * @category Gateway
12
12
  */
13
13
  export type SkeletonPoseMessage = {
14
14
  controller_rtid: RTID;
15
15
  partial_pose: SkeletonPartialPose;
16
16
  };
17
17
  /**
18
- *
18
+ * @internal
19
19
  */
20
20
  export declare function compute_SkeletonPoseMessage_size(skeletonPoseMessage: SkeletonPoseMessage): number;
21
21
  /**
22
- *
22
+ * @internal
23
23
  */
24
24
  export declare function serialize_SkeletonPoseMessage({ data_view, offset, skeletonPoseMessage, }: {
25
25
  data_view: DataView;
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * @internal
3
3
  */
4
4
  export type SessionAuth = {
5
5
  session_key: string;
@@ -1,16 +1,17 @@
1
1
  /**
2
- *
2
+ * @experimental
3
+ * @category Gateway
3
4
  */
4
5
  export type SetFilterMessage = {
5
6
  name: string;
6
7
  rpn: string;
7
8
  };
8
9
  /**
9
- *
10
+ * @internal
10
11
  */
11
12
  export declare function compute_SetFilterMessage_size(setFilterCommand: SetFilterMessage): number;
12
13
  /**
13
- *
14
+ * @internal
14
15
  */
15
16
  export declare function serialize_SetFilterMessage({ data_view, offset, setFilterMessage, }: {
16
17
  data_view: DataView;
@@ -1,16 +1,17 @@
1
1
  /**
2
- *
2
+ * @experimental
3
+ * @category Gateway
3
4
  */
4
5
  export type ToggleFilterMessage = {
5
6
  name: string;
6
7
  enabled: boolean;
7
8
  };
8
9
  /**
9
- *
10
+ * @internal
10
11
  */
11
12
  export declare function compute_ToggleFilterMessage_size(toggleFilterMessage: ToggleFilterMessage): number;
12
13
  /**
13
- *
14
+ * @internal
14
15
  */
15
16
  export declare function serialize_ToggleFilterMessage({ data_view, offset, toggleFilterMessage, }: {
16
17
  data_view: DataView;
@@ -1,8 +1,8 @@
1
1
  import { EntityInterface } from "../../../sources/interfaces/EntityInterface";
2
- import { ComponentType } from "../../types/components";
3
2
  import { ComponentSerializer } from "../../../sources/Serializer";
3
+ import { ComponentType } from "../../types/ComponentsRecord";
4
4
  /**
5
- *
5
+ * @category Gateway
6
6
  */
7
7
  export type UpdateEntitiesFromBytesMessage = {
8
8
  components: Array<{
@@ -12,11 +12,11 @@ export type UpdateEntitiesFromBytesMessage = {
12
12
  }>;
13
13
  };
14
14
  /**
15
- *
15
+ * @internal
16
16
  */
17
17
  export declare function compute_UpdateEntitiesFromBytes_size(updateEntitiesFromBytesMessage: UpdateEntitiesFromBytesMessage): number;
18
18
  /**
19
- *
19
+ * @internal
20
20
  */
21
21
  export declare function serialize_UpdateEntitiesFromBytes({ data_view, offset, updateEntitiesFromBytesMessage, }: {
22
22
  data_view: DataView;
@@ -1,7 +1,7 @@
1
1
  import { EntityInterface } from "../../../sources/interfaces/EntityInterface";
2
- import { ComponentType } from "../../types/components";
2
+ import { ComponentType } from "../../types/ComponentsRecord";
3
3
  /**
4
- *
4
+ * @category Gateway
5
5
  */
6
6
  export type UpdateEntitiesFromJsonMessage = {
7
7
  components: Array<{
@@ -10,11 +10,11 @@ export type UpdateEntitiesFromJsonMessage = {
10
10
  }>;
11
11
  };
12
12
  /**
13
- *
13
+ * @internal
14
14
  */
15
15
  export declare function compute_UpdateEntitiesFromJsonMessage_size(updateEntitiesFromJsonMessage: UpdateEntitiesFromJsonMessage): number;
16
16
  /**
17
- *
17
+ * @internal
18
18
  */
19
19
  export declare function serialize_UpdateEntitiesFromJsonMessage({ data_view, offset, updateEntitiesFromJsonMessage, }: {
20
20
  data_view: DataView;
@@ -1,6 +1,6 @@
1
1
  import { Float, Int32, RTID } from "../../../sources/types";
2
2
  /**
3
- *
3
+ * @category Gateway
4
4
  */
5
5
  export type ViewportConfig = {
6
6
  left: Float;
@@ -11,17 +11,17 @@ export type ViewportConfig = {
11
11
  render_target_index?: Int32;
12
12
  };
13
13
  /**
14
- *
14
+ * @category Gateway
15
15
  */
16
16
  export type ViewportConfigs = Array<ViewportConfig>;
17
17
  /**
18
- *
18
+ * @internal
19
19
  */
20
20
  export declare function compute_ViewportConfigs_size({ viewport_configs }: {
21
21
  viewport_configs: ViewportConfigs;
22
22
  }): number;
23
23
  /**
24
- *
24
+ * @internal
25
25
  */
26
26
  export declare function serialize_ViewportConfigs({ data_view, offset, viewport_configs, }: {
27
27
  data_view: DataView;
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * @internal
3
3
  */
4
4
  export declare enum ChannelId {
5
5
  authentication = 0,
@@ -21,7 +21,7 @@ export declare enum ChannelId {
21
21
  gpu_memory_profiler = 16
22
22
  }
23
23
  /**
24
- *
24
+ * @internal
25
25
  */
26
26
  export declare enum ClientRemoteOperation {
27
27
  asset_loading_status = 0,
@@ -37,7 +37,7 @@ export declare enum ClientRemoteOperation {
37
37
  physics_raycast = 10
38
38
  }
39
39
  /**
40
- *
40
+ * @internal
41
41
  */
42
42
  export declare enum ViewerControlOperation {
43
43
  resize = 0,
@@ -48,7 +48,7 @@ export declare enum ViewerControlOperation {
48
48
  set_viewports = 5
49
49
  }
50
50
  /**
51
- *
51
+ * @internal
52
52
  */
53
53
  export declare enum CodecType {
54
54
  h264 = 0,
@@ -56,7 +56,7 @@ export declare enum CodecType {
56
56
  h265 = 2
57
57
  }
58
58
  /**
59
- *
59
+ * @internal
60
60
  */
61
61
  export declare enum InputOperation {
62
62
  reset = 0,
@@ -92,7 +92,7 @@ export declare enum InputOperation {
92
92
  headset_move = 30
93
93
  }
94
94
  /**
95
- *
95
+ * @internal
96
96
  */
97
97
  export declare enum EditorRemoteOperation {
98
98
  update_config = 0,
@@ -0,0 +1,53 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE MANUALLY.
3
+ * This file has been generated automatically from ftl-schemas
4
+ */
5
+ /**
6
+ * @category Engine Schemas
7
+ */
8
+ export declare enum ComponentsHashes {
9
+ animation_controller = 2978761622,
10
+ animation_sequence_controller = 1078130395,
11
+ bone = 1352454807,
12
+ box_geometry = 3718707752,
13
+ camera = 1515175333,
14
+ capsule_geometry = 3996568839,
15
+ character_controller = 304568171,
16
+ collision_geometry_ref = 3193374355,
17
+ constraint = 3735282166,
18
+ culling_geometry = 611599156,
19
+ cylinder_geometry = 2497701877,
20
+ debug_name = 2737255849,
21
+ decal_projector = 2842087135,
22
+ environment = 227427331,
23
+ joint = 2286235554,
24
+ lineage = 2698448560,
25
+ local_aabb = 4132624459,
26
+ local_transform = 64958624,
27
+ material = 4100970527,
28
+ material_ref = 2816861126,
29
+ mesh_ref = 1660697531,
30
+ orthographic_lens = 3326403741,
31
+ overrider = 2758112134,
32
+ perspective_lens = 1113360699,
33
+ physics_material = 1550394949,
34
+ plane_geometry = 4075752378,
35
+ point_cloud_ref = 457361603,
36
+ point_light = 3624222817,
37
+ reflection_probe = 3879689944,
38
+ rigid_body = 3452128059,
39
+ scene_ref = 371342060,
40
+ script_map = 3291722836,
41
+ shadow_caster = 3403528636,
42
+ skeleton_ref = 36879215,
43
+ sound_ref = 369352309,
44
+ sphere_geometry = 1159992935,
45
+ spot_light = 1508811228,
46
+ stereoscopic_lens = 698679321,
47
+ tags = 163258925,
48
+ vehicle_controller = 1287796174,
49
+ volume_filter = 2625356468,
50
+ volume_material_ref = 3229245461,
51
+ volume_ref = 2808449574
52
+ }
53
+ export { ComponentsHashes as ComponentHash };
@@ -0,0 +1,186 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE MANUALLY.
3
+ * This file has been generated automatically from ftl-schemas
4
+ */
5
+ import * as Components from "./components";
6
+ /**
7
+ * @category Engine Schemas
8
+ */
9
+ export type ComponentType = keyof ComponentsRecord;
10
+ /**
11
+ * @category Engine Schemas
12
+ */
13
+ export type ComponentsRecord = {
14
+ /**
15
+ * Animation controller with reference to an animation graph and an animation set. Enables skeletal animation on its skinned mesh descendents whose skeleton is compatible with the animations in the animation set.
16
+ */
17
+ animation_controller?: Components.AnimationController;
18
+ /**
19
+ * Animation sequence controller with reference to an animation sequence and assigned entities.
20
+ */
21
+ animation_sequence_controller?: Components.AnimationSequenceController;
22
+ /**
23
+ * Links entity to bone in skeleton.
24
+ */
25
+ bone?: Components.Bone;
26
+ /**
27
+ * Box geometry.
28
+ */
29
+ box_geometry?: Components.BoxGeometry;
30
+ /**
31
+ * Virtual camera.
32
+ */
33
+ camera?: Components.Camera;
34
+ /**
35
+ * Capsule geometry.
36
+ */
37
+ capsule_geometry?: Components.CapsuleGeometry;
38
+ /**
39
+ * Character controller used for movement constrained by collisions without having to deal with a rigid body. A character controller is kinematic, and so is not affected by forces. It uses its own tweaked collision algorithm to give a good feeling while controlling the character.
40
+ */
41
+ character_controller?: Components.CharacterController;
42
+ /**
43
+ * Reference to a collision geometry.
44
+ */
45
+ collision_geometry_ref?: Components.CollisionGeometryRef;
46
+ /**
47
+ * A physics constraint that can be configured along 6 degrees of freedom. In its default state it behaves as a fixed constraint - that is, it rigidly fixes the constraint frames of its two entities. However, individual degrees of freedom may be unlocked to permit any combination of rotation around the x-, y- and z- axes, and translation along these axes.
48
+ */
49
+ constraint?: Components.Constraint;
50
+ /**
51
+ * Culling geometry. Add this component in addition to another geometry component (e.g. box geometry, sphere geometry, etc.) to enable culling geometry.
52
+ */
53
+ culling_geometry?: Components.CullingGeometry;
54
+ /**
55
+ * Cylinder geometry.
56
+ */
57
+ cylinder_geometry?: Components.CylinderGeometry;
58
+ /**
59
+ * Name of the entity.
60
+ */
61
+ debug_name?: Components.DebugName;
62
+ /**
63
+ * Decal Projector.
64
+ */
65
+ decal_projector?: Components.DecalProjector;
66
+ /**
67
+ * The environment of a scene. Used to give a scene a skybox.
68
+ */
69
+ environment?: Components.Environment;
70
+ /**
71
+ * Base component of all the other joint components (revolute_joint, etc.). By itself it will lock the orientations and distances of the constrainer and constrainee.
72
+ */
73
+ joint?: Components.Joint;
74
+ /**
75
+ * Lineage of the entity through linkers.
76
+ */
77
+ lineage?: Components.Lineage;
78
+ /**
79
+ * Local Axis Aligned Bounding Box of the entity.
80
+ */
81
+ local_aabb?: Components.LocalAabb;
82
+ /**
83
+ * Local transform of the entity.
84
+ */
85
+ local_transform?: Components.LocalTransform;
86
+ /**
87
+ * References a shader and specifies input values if needed.
88
+ */
89
+ material?: Components.Material;
90
+ /**
91
+ * Reference to a material.
92
+ */
93
+ material_ref?: Components.MaterialRef;
94
+ /**
95
+ * Reference to a mesh.
96
+ */
97
+ mesh_ref?: Components.MeshRef;
98
+ /**
99
+ * A lens that applies an orthographic projection.
100
+ */
101
+ orthographic_lens?: Components.OrthographicLens;
102
+ /**
103
+ * Overrides a given entity in a sub scene.
104
+ */
105
+ overrider?: Components.Overrider;
106
+ /**
107
+ * A lens that applies a perspective projection.
108
+ */
109
+ perspective_lens?: Components.PerspectiveLens;
110
+ /**
111
+ * Physics material which represents a set of physical surface properties.
112
+ */
113
+ physics_material?: Components.PhysicsMaterial;
114
+ /**
115
+ * Plane geometry.
116
+ */
117
+ plane_geometry?: Components.PlaneGeometry;
118
+ /**
119
+ * Reference to a point cloud.
120
+ */
121
+ point_cloud_ref?: Components.PointCloudRef;
122
+ /**
123
+ * A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
124
+ */
125
+ point_light?: Components.PointLight;
126
+ /**
127
+ * Omni directional reflection probe parameters, used for local cubemap reflection generation.
128
+ */
129
+ reflection_probe?: Components.ReflectionProbe;
130
+ /**
131
+ * Rigid body parameters.
132
+ */
133
+ rigid_body?: Components.RigidBody;
134
+ /**
135
+ * Reference to a scene.
136
+ */
137
+ scene_ref?: Components.SceneRef;
138
+ /**
139
+ * References multiple scripts.
140
+ */
141
+ script_map?: Components.ScriptMap;
142
+ /**
143
+ * Enables a light to cast shadows.
144
+ */
145
+ shadow_caster?: Components.ShadowCaster;
146
+ /**
147
+ * Reference to a skeleton.
148
+ */
149
+ skeleton_ref?: Components.SkeletonRef;
150
+ /**
151
+ * Reference to a sound.
152
+ */
153
+ sound_ref?: Components.SoundRef;
154
+ /**
155
+ * Sphere geometry.
156
+ */
157
+ sphere_geometry?: Components.SphereGeometry;
158
+ /**
159
+ * Adds a cutoff to a point light to simulate a spot light.
160
+ */
161
+ spot_light?: Components.SpotLight;
162
+ /**
163
+ * A lens that applies a custom projection.
164
+ */
165
+ stereoscopic_lens?: Components.StereoscopicLens;
166
+ /**
167
+ * Tags used to filter entities.
168
+ */
169
+ tags?: Components.Tags;
170
+ /**
171
+ * Vehicle Controller parameters.
172
+ */
173
+ vehicle_controller?: Components.VehicleController;
174
+ /**
175
+ * Filtering properties applied to the volume.
176
+ */
177
+ volume_filter?: Components.VolumeFilter;
178
+ /**
179
+ * Reference to a material to use with a volume.
180
+ */
181
+ volume_material_ref?: Components.VolumeMaterialRef;
182
+ /**
183
+ * Reference to a volume made of voxels.
184
+ */
185
+ volume_ref?: Components.VolumeRef;
186
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE MANUALLY.
3
+ * This file has been generated automatically from ftl-schemas
4
+ */
5
+ import * as SceneSettings from "./sceneSettings";
6
+ /**
7
+ * @category Engine Schemas
8
+ */
9
+ export type SceneSettingType = keyof SceneSettingsRecord;
10
+ /**
11
+ * @category Engine Schemas
12
+ */
13
+ export type SceneSettingsRecord = {
14
+ /**
15
+ * Settings for debug lines
16
+ */
17
+ debug_lines?: SceneSettings.DebugLines;
18
+ /**
19
+ * Settings for the display
20
+ */
21
+ display?: SceneSettings.Display;
22
+ /**
23
+ * Settings for the environment
24
+ */
25
+ environment?: SceneSettings.Environment;
26
+ /**
27
+ * Miscellaneous settings
28
+ */
29
+ misc?: SceneSettings.Misc;
30
+ /**
31
+ * Settings for the physics engine.
32
+ */
33
+ physics?: SceneSettings.Physics;
34
+ /**
35
+ * Renderer settings
36
+ */
37
+ renderer?: SceneSettings.Renderer;
38
+ /**
39
+ * Sound settings
40
+ */
41
+ sound?: SceneSettings.Sound;
42
+ /**
43
+ * Settings for the scene streaming
44
+ */
45
+ streaming?: SceneSettings.Streaming;
46
+ /**
47
+ * Settings for voxel rendering
48
+ */
49
+ voxel?: SceneSettings.Voxel;
50
+ };
@@ -1,23 +1,27 @@
1
- export type ActionMap = {};
2
- export type Algorithm = {};
3
- export type Animation = {};
4
- export type AnimationGraph = {};
5
- export type AnimationSequence = {};
6
- export type AnimationSet = {};
7
- export type CollisionGeometry = {};
8
- export type Cubemap = {};
9
- export type EventMap = {};
10
- export type Material = {};
11
- export type Mesh = {};
12
- export type Module = {};
13
- export type PointCloud = {};
14
- export type RenderGraph = {};
15
- export type Scene = {};
16
- export type Script = {};
17
- export type Shader = {};
18
- export type Skeleton = {};
19
- export type Sound = {};
20
- export type Texture = {};
21
- export type Texture1D = {};
22
- export type Texture3D = {};
23
- export type VolumeMaterial = {};
1
+ /**
2
+ * DO NOT EDIT THIS FILE MANUALLY.
3
+ * This file has been generated automatically from ftl-schemas
4
+ */
5
+ export type ActionMap = object;
6
+ export type Algorithm = object;
7
+ export type Animation = object;
8
+ export type AnimationGraph = object;
9
+ export type AnimationSequence = object;
10
+ export type AnimationSet = object;
11
+ export type CollisionGeometry = object;
12
+ export type Cubemap = object;
13
+ export type EventMap = object;
14
+ export type Material = object;
15
+ export type Mesh = object;
16
+ export type Module = object;
17
+ export type PointCloud = object;
18
+ export type RenderGraph = object;
19
+ export type Scene = object;
20
+ export type Script = object;
21
+ export type Shader = object;
22
+ export type Skeleton = object;
23
+ export type Sound = object;
24
+ export type Texture = object;
25
+ export type Texture1D = object;
26
+ export type Texture3D = object;
27
+ export type VolumeMaterial = object;