sunrize 2.2.0 → 2.3.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.
@@ -175,7 +175,7 @@ module .exports = class AnimationEditor extends Interface
175
175
 
176
176
  this .navigation = $("<div></div>")
177
177
  .attr ("id", "animation-editor-navigation")
178
- .addClass (["animation-editor-navigation", "toolbar", "vertical-toolbar"])
178
+ .addClass (["animation-editor-navigation", "toolbar", "vertical-toolbar", "secondary-toolbar"])
179
179
  .appendTo (this .animationEditor);
180
180
 
181
181
  this .zoomOutIcon = $("<span></span>")
@@ -499,7 +499,16 @@ module .exports = class AnimationEditor extends Interface
499
499
  animation .setMetaData ("Animation/duration", new X3D .SFInt32 (10));
500
500
  animation .setMetaData ("Animation/frameRate", new X3D .SFInt32 (10));
501
501
 
502
- Editor .insertValueIntoArray (executionContext, node, field, 0, animation);
502
+ if (group)
503
+ {
504
+ const index = node ._children .findIndex (node => node .metadata ?.name !== "Animation");
505
+
506
+ Editor .insertValueIntoArray (executionContext, node, field, index >= 0 ? index : 0, animation);
507
+ }
508
+ else
509
+ {
510
+ Editor .appendValueToArray (executionContext, node, field, animation);
511
+ }
503
512
 
504
513
  Editor .undoManager .endUndo ();
505
514
 
@@ -40,7 +40,7 @@ module .exports = new class BrowserFrame extends Dialog
40
40
  .attr ("min", 1)
41
41
  .attr ("step", "1")
42
42
  .css ("width", "calc((100% - 20px) / 2)")
43
- .on ("input", () => this .onsize ());
43
+ .on ("change", () => this .onsize ());
44
44
 
45
45
  const x = $("<span></span>")
46
46
  .css ({ "display": "inline-block", "width": "20px", "text-align": "center" })
@@ -51,7 +51,7 @@ module .exports = new class BrowserFrame extends Dialog
51
51
  .attr ("min", 1)
52
52
  .attr ("step", "1")
53
53
  .css ("width", "calc((100% - 20px) / 2)")
54
- .on ("input", () => this .onsize ());
54
+ .on ("change", () => this .onsize ());
55
55
 
56
56
  $("<tr></tr>")
57
57
  .append ($("<th></th>")
@@ -81,7 +81,7 @@ module .exports = new class BrowserFrame extends Dialog
81
81
  .attr ("min", 1)
82
82
  .attr ("step", "1")
83
83
  .css ("width", "calc((100% - 20px) / 2)")
84
- .on ("input", () => this .onchange ());
84
+ .on ("change", () => this .onchange ());
85
85
 
86
86
  const slash = $("<span></span>")
87
87
  .css ({ "display": "inline-block", "width": "20px", "text-align": "center" })
@@ -92,7 +92,7 @@ module .exports = new class BrowserFrame extends Dialog
92
92
  .attr ("min", 1)
93
93
  .attr ("step", "1")
94
94
  .css ("width", "calc((100% - 20px) / 2)")
95
- .on ("input", () => this .onchange ());
95
+ .on ("change", () => this .onchange ());
96
96
 
97
97
  $("<tr></tr>")
98
98
  .append ($("<th></th>")
@@ -23,7 +23,10 @@ module .exports = class Console extends Interface
23
23
 
24
24
  this .console = element;
25
25
  this .left = $("<div></div>") .addClass ("console-left") .appendTo (this .console);
26
- this .toolbar = $("<div></div>") .addClass (["toolbar", "vertical-toolbar", "console-toolbar"]) .appendTo (this .console);
26
+
27
+ this .toolbar = $("<div></div>")
28
+ .addClass (["toolbar", "vertical-toolbar", "secondary-toolbar", "console-toolbar"])
29
+ .appendTo (this .console);
27
30
 
28
31
  this .output = $("<div></div>")
29
32
  .addClass (["console-output", "output"])
@@ -50,7 +50,7 @@ module .exports = class ScriptEditor extends Interface
50
50
  this .verticalSplitter .on ("position", () => this .onSplitterPosition ());
51
51
 
52
52
  this .toolbar = $("<div></div>")
53
- .addClass (["toolbar", "vertical-toolbar", "script-editor-toolbar"])
53
+ .addClass (["toolbar", "vertical-toolbar", "secondary-toolbar", "script-editor-toolbar"])
54
54
  .appendTo (this .scriptEditor);
55
55
 
56
56
  this .toggleSidebarButton = $("<span></span>")
@@ -17,7 +17,7 @@ class AudioParser extends X3D .X3DParser
17
17
  return "ARRAY_BUFFER";
18
18
  }
19
19
 
20
- setInput (input)
20
+ setInput ()
21
21
  { }
22
22
 
23
23
  isValid ()
@@ -58,7 +58,7 @@ class AudioParser extends X3D .X3DParser
58
58
  audioClipNode .url = new X3D .MFString (this .getURL (scene .worldURL));
59
59
  audioClipNode .loop = true;
60
60
 
61
- soundNode .source = audioClipNode;
61
+ soundNode .children = [audioClipNode];
62
62
 
63
63
  scene .rootNodes .push (soundNode);
64
64
 
@@ -17,7 +17,7 @@ class VideoParser extends X3D .X3DParser
17
17
  return "ARRAY_BUFFER";
18
18
  }
19
19
 
20
- setInput (input)
20
+ setInput ()
21
21
  { }
22
22
 
23
23
  isValid ()
@@ -74,8 +74,7 @@ class VideoParser extends X3D .X3DParser
74
74
 
75
75
  shapeNode .appearance = appearanceNode;
76
76
  shapeNode .geometry = rectangleNode;
77
-
78
- soundNode .source = textureNode;
77
+ soundNode .children = [textureNode];
79
78
 
80
79
  transformNode .children .push (shapeNode, soundNode);
81
80
 
@@ -74,7 +74,7 @@ class X3DNodeTool extends X3DBaseTool
74
74
  if (!this [tool])
75
75
  continue;
76
76
 
77
- if (this [tool] .hasOwnProperty ("selected"))
77
+ if (Object .hasOwn (this [tool], "selected"))
78
78
  this [tool] .selected = value;
79
79
  }
80
80
  }
@@ -122,7 +122,7 @@ class X3DNodeTool extends X3DBaseTool
122
122
 
123
123
  this .#innerNodes .push (this [tool] .getValue () .getInnerNode ());
124
124
 
125
- if (this [tool] .hasOwnProperty ("selected"))
125
+ if (Object .hasOwn (this [tool], "selected"))
126
126
  this [tool] .selected = this .#selected;
127
127
  }
128
128
  }
@@ -479,7 +479,7 @@ class X3DNodeTool extends X3DBaseTool
479
479
  toolPointing = true;
480
480
  nodePush = false;
481
481
 
482
- isNodeTraversable (type)
482
+ isNodeTraversable ()
483
483
  {
484
484
  return true;
485
485
  }
@@ -53,7 +53,8 @@
53
53
  <UnlitMaterial
54
54
  transparency='1'/>
55
55
  <DepthMode
56
- polygonOffset='-1 -1'/>
56
+ polygonOffset='-1 -1'
57
+ depthRange='0 0.9999'/>
57
58
  </Appearance>
58
59
  <Box
59
60
  size='1 1 1'/>
@@ -77,7 +78,8 @@
77
78
  </IS>
78
79
  </UnlitMaterial>
79
80
  <DepthMode
80
- polygonOffset='-1 -1'/>
81
+ polygonOffset='-1 -1'
82
+ depthRange='0 0.9999'/>
81
83
  </Appearance>
82
84
  <IndexedLineSet
83
85
  coordIndex='0, 1, 2, 3, 0, -1, 4, 5, 6, 7, 4, -1, 0, 4, -1, 3, 7, -1, 1, 5, -1, 2, 6, -1'>
@@ -91,7 +91,8 @@
91
91
  <UnlitMaterial
92
92
  transparency='1'/>
93
93
  <DepthMode
94
- polygonOffset='-1 -1'/>
94
+ polygonOffset='-1 -1'
95
+ depthRange='0 0.9999'/>
95
96
  </Appearance>
96
97
  <Box
97
98
  size='1 1 1'/>
@@ -111,7 +112,8 @@
111
112
  </IS>
112
113
  </UnlitMaterial>
113
114
  <DepthMode
114
- polygonOffset='-1 -1'/>
115
+ polygonOffset='-1 -1'
116
+ depthRange='0 0.9999'/>
115
117
  </Appearance>
116
118
  <IndexedLineSet
117
119
  coordIndex='0, 1, 2, 3, 0, -1, 4, 5, 6, 7, 4, -1, 0, 4, -1, 3, 7, -1, 1, 5, -1, 2, 6, -1'>
@@ -4,15 +4,15 @@
4
4
  <head>
5
5
  <component name='Core' level='2'/>
6
6
  <component name='Shaders' level='1'/>
7
+ <component name='X_ITE' level='1'/>
7
8
  <meta name='created' content='Tue, 28 Nov 2023 21:59:27 GMT'/>
8
9
  <meta name='comment' content='Rise and Shine'/>
9
10
  <meta name='creator' content='Holger Seelig'/>
10
11
  <meta name='generator' content='Sunrize X3D Editor V2.2.0, https://create3000.github.io/sunrize/'/>
11
- <meta name='modified' content='Sun, 23 Aug 2026 07:25:05 GMT'/>
12
+ <meta name='modified' content='Sun, 23 Aug 2026 08:15:22 GMT'/>
12
13
  </head>
13
14
  <Scene>
14
15
  <ExternProtoDeclare name='ToolShader' url='"../Shaders/ToolShader.x3d"'>
15
- <field accessType='inputOutput' type='SFFloat' name='depthOffset'/>
16
16
  <field accessType='inputOutput' type='SFBool' name='instanced'/>
17
17
  </ExternProtoDeclare>
18
18
  <ProtoDeclare name='X3DGeometryNodeTool'>
@@ -60,9 +60,10 @@
60
60
  <connect nodeField='emissiveColor' protoField='linesColor'/>
61
61
  </IS>
62
62
  </Material>
63
- <ProtoInstance name='ToolShader' DEF='_1' containerField='shaders'>
64
- <fieldValue name='depthOffset' value='1e-5'/>
65
- </ProtoInstance>
63
+ <ProtoInstance name='ToolShader' DEF='_1' containerField='shaders'/>
64
+ <DepthMode DEF='_2'
65
+ polygonOffset='-1 -1'
66
+ depthRange='0 0.9999'/>
66
67
  </Appearance>
67
68
  <IndexedLineSet>
68
69
  <IS>
@@ -91,6 +92,7 @@
91
92
  </IS>
92
93
  </Material>
93
94
  <ProtoInstance name='ToolShader' USE='_1' containerField='shaders'/>
95
+ <DepthMode USE='_2'/>
94
96
  </Appearance>
95
97
  <PointSet>
96
98
  <IS>
@@ -8,21 +8,18 @@
8
8
  <meta name='creator' content='Holger Seelig'/>
9
9
  <meta name='generator' content='Sunrize X3D Editor V2.2.0, https://create3000.github.io/sunrize/'/>
10
10
  <meta name='identifier' content='file:///Users/holger/Desktop/X_ITE/sunrize/src/sunrize/Tools/Shaders/ToolShader.x3d'/>
11
- <meta name='modified' content='Sun, 23 Aug 2026 07:44:54 GMT'/>
11
+ <meta name='modified' content='Sun, 23 Aug 2026 08:14:24 GMT'/>
12
12
  </head>
13
13
  <Scene>
14
14
  <ProtoDeclare name='ToolShader'>
15
15
  <ProtoInterface>
16
- <field accessType='inputOutput' type='SFFloat' name='depthOffset' appinfo='depthOffset is in Normalized Device Coordinates (NDC)'/>
17
16
  <field accessType='inputOutput' type='SFBool' name='instanced'/>
18
17
  </ProtoInterface>
19
18
  <ProtoBody>
20
19
  <ComposedShader DEF='ToolShader'
21
20
  language='GLSL'>
22
- <field accessType='inputOutput' type='SFFloat' name='depthOffset'/>
23
21
  <field accessType='inputOutput' type='SFBool' name='instanced'/>
24
22
  <IS>
25
- <connect nodeField='depthOffset' protoField='depthOffset'/>
26
23
  <connect nodeField='instanced' protoField='instanced'/>
27
24
  </IS>
28
25
  <ShaderPart DEF='ToolVertexShader'>
@@ -36,8 +33,6 @@ uniform mat3 x3d_NormalMatrix;
36
33
 
37
34
  uniform x3d_PointPropertiesParameters x3d_PointProperties;
38
35
 
39
- // depthOffset is in Normalized Device Coordinates (NDC)
40
- uniform float depthOffset;
41
36
  uniform bool instanced;
42
37
 
43
38
  in mat4 x3d_InstanceMatrix;
@@ -58,8 +53,6 @@ main ()
58
53
  normal = normalize (x3d_NormalMatrix * x3d_Normal);
59
54
 
60
55
  gl_Position = x3d_ProjectionMatrix * x3d_ModelViewMatrix * instancedMatrix * x3d_Vertex;
61
-
62
- gl_Position .z -= depthOffset * gl_Position .w;
63
56
  }
64
57
  ]]>
65
58
  </ShaderPart>
@@ -100,7 +100,7 @@
100
100
  margin-left: 5px;
101
101
  }
102
102
 
103
- .etabs .tab-audio,
103
+ .etabs .tab-mute,
104
104
  .etabs .tab-pin,
105
105
  .etabs .tab-close,
106
106
  .etabs .tab-close button {
@@ -115,37 +115,37 @@
115
115
  }
116
116
 
117
117
  @media (prefers-color-scheme: light) {
118
- .etabs .tab-audio:hover,
118
+ .etabs .tab-mute:hover,
119
119
  .etabs .tab-close:hover,
120
120
  .etabs .tab-close:hover button {
121
121
  background-color: var(--system-gray4);
122
122
  }
123
123
  }
124
124
 
125
- .etabs .tab-audio:hover,
125
+ .etabs .tab-mute:hover,
126
126
  .etabs .tab-close:hover,
127
127
  .etabs .tab-close:hover button {
128
128
  color: var(--system-gray0);
129
129
  }
130
130
 
131
131
  .etabs .tab-pin,
132
- .etabs .tab-audio {
132
+ .etabs .tab-mute {
133
133
  display: none;
134
134
  }
135
135
 
136
- .etabs .tab:not(.active) .tab-audio {
136
+ .etabs .tab:not(.active) .tab-mute {
137
137
  display: none !important;
138
138
  }
139
139
 
140
- .etabs .tab:not(.active, :hover, :focus) :where(.tab-close button, .tab-audio, .tab-pin) {
140
+ .etabs .tab:not(.active, :hover, :focus) :where(.tab-close button, .tab-mute, .tab-pin) {
141
141
  color: var(--text-disabled);
142
142
  }
143
143
 
144
- .etabs .tab-audio {
144
+ .etabs .tab-mute {
145
145
  margin-right: -3px;
146
146
  }
147
147
 
148
- .etabs .tab-audio,
148
+ .etabs .tab-mute,
149
149
  .etabs .tab-pin,
150
150
  .etabs .tab-close {
151
151
  margin-left: 5px;
@@ -100,7 +100,7 @@
100
100
  margin-left: 5px;
101
101
  }
102
102
 
103
- .etabs .tab-audio,
103
+ .etabs .tab-mute,
104
104
  .etabs .tab-pin,
105
105
  .etabs .tab-close,
106
106
  .etabs .tab-close button {
@@ -115,37 +115,37 @@
115
115
  }
116
116
 
117
117
  @media (prefers-color-scheme: light) {
118
- .etabs .tab-audio:hover,
118
+ .etabs .tab-mute:hover,
119
119
  .etabs .tab-close:hover,
120
120
  .etabs .tab-close:hover button {
121
121
  background-color: var(--system-gray4);
122
122
  }
123
123
  }
124
124
 
125
- .etabs .tab-audio:hover,
125
+ .etabs .tab-mute:hover,
126
126
  .etabs .tab-close:hover,
127
127
  .etabs .tab-close:hover button {
128
128
  color: var(--system-gray0);
129
129
  }
130
130
 
131
131
  .etabs .tab-pin,
132
- .etabs .tab-audio {
132
+ .etabs .tab-mute {
133
133
  display: none;
134
134
  }
135
135
 
136
- .etabs .tab:not(.active) .tab-audio {
136
+ .etabs .tab:not(.active) .tab-mute {
137
137
  display: none !important;
138
138
  }
139
139
 
140
- .etabs .tab:not(.active, :hover, :focus) :where(.tab-close button, .tab-audio, .tab-pin) {
140
+ .etabs .tab:not(.active, :hover, :focus) :where(.tab-close button, .tab-mute, .tab-pin) {
141
141
  color: var(--text-disabled);
142
142
  }
143
143
 
144
- .etabs .tab-audio {
144
+ .etabs .tab-mute {
145
145
  margin-right: -3px;
146
146
  }
147
147
 
148
- .etabs .tab-audio,
148
+ .etabs .tab-mute,
149
149
  .etabs .tab-pin,
150
150
  .etabs .tab-close {
151
151
  margin-left: 5px;
@@ -11,6 +11,7 @@
11
11
  <div id="horizontal-splitter" class="horizontal-splitter">
12
12
  <div class="horizontal-splitter-top">
13
13
  <div id="browser-pane">
14
+ <div id="browser-top-bar"></div>
14
15
  <div id="browser-frame">
15
16
  <x3d-canvas
16
17
  id="browser"
@@ -22,7 +23,7 @@
22
23
  update="auto"
23
24
  xrSessionMode="NONE"></x3d-canvas>
24
25
  </div>
25
- <div id="secondary-toolbar" class="toolbar vertical-toolbar large-toolbar secondary-toolbar"></div>
26
+ <div id="secondary-toolbar" class="toolbar vertical-toolbar large-toolbar"></div>
26
27
  </div>
27
28
  </div>
28
29
  <div class="horizontal-splitter-bottom">
@@ -11,6 +11,7 @@
11
11
  <div id="horizontal-splitter" class="horizontal-splitter">
12
12
  <div class="horizontal-splitter-top">
13
13
  <div id="browser-pane">
14
+ <div id="browser-top-bar"></div>
14
15
  <div id="browser-frame">
15
16
  <x3d-canvas
16
17
  id="browser"
@@ -22,7 +23,7 @@
22
23
  update="auto"
23
24
  xrSessionMode="NONE"></x3d-canvas>
24
25
  </div>
25
- <div id="secondary-toolbar" class="toolbar vertical-toolbar large-toolbar secondary-toolbar"></div>
26
+ <div id="secondary-toolbar" class="toolbar vertical-toolbar large-toolbar"></div>
26
27
  </div>
27
28
  </div>
28
29
  <div class="horizontal-splitter-bottom">
@@ -0,0 +1,43 @@
1
+ {
2
+ "New Scene":
3
+ {
4
+ "ar": "مشهد جديد",
5
+ "bg": "Нова Сцена",
6
+ "ca": "Escena Nova",
7
+ "cs": "Nová Scéna",
8
+ "da": "Ny Scene",
9
+ "de": "Neue Szene",
10
+ "el": "Νέα Σκηνή",
11
+ "en": "New Scene",
12
+ "es": "Nueva Escena",
13
+ "et": "Uus Stseen",
14
+ "fi": "Uusi Näkymä",
15
+ "fr": "Nouvelle Scène",
16
+ "he": "סצנה חדשה",
17
+ "hi": "नया दृश्य",
18
+ "hr": "Nova Scena",
19
+ "hu": "Új Jelenet",
20
+ "id": "Adegan Baru",
21
+ "it": "Nuova Scena",
22
+ "ja": "新しいシーン",
23
+ "ko": "새 장면",
24
+ "lt": "Nauja Scena",
25
+ "lv": "Jauna Aina",
26
+ "nb": "Ny Scene",
27
+ "nl": "Nieuwe Scène",
28
+ "pl": "Nowa Scena",
29
+ "pt": "Nova Cena",
30
+ "ro": "Scenă Nouă",
31
+ "ru": "Новая Сцена",
32
+ "sk": "Nová Scéna",
33
+ "sl": "Nov Prizor",
34
+ "sr": "Нова Сцена",
35
+ "sv": "Ny Scen",
36
+ "th": "ฉากใหม่",
37
+ "tr": "Yeni Sahne",
38
+ "uk": "Нова Сцена",
39
+ "vi": "Cảnh Mới",
40
+ "zh-CN": "新场景",
41
+ "zh-TW": "新場景"
42
+ }
43
+ }