com.shinolab.autd3-sdk.pattern.holo 0.2.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.
- package/AUTD3.Pattern.Holo.asmdef +17 -0
- package/AUTD3.Pattern.Holo.asmdef.meta +7 -0
- package/GlobalUsings.cs +7 -0
- package/GlobalUsings.cs.meta +11 -0
- package/Holo.cs +331 -0
- package/Holo.cs.meta +11 -0
- package/LICENSE.md +21 -0
- package/LICENSE.md.meta +7 -0
- package/Plugins/linux-x64/libautd3_pattern_holo.so +0 -0
- package/Plugins/linux-x64/libautd3_pattern_holo.so.meta +35 -0
- package/Plugins/linux-x64.meta +8 -0
- package/Plugins/osx-arm64/libautd3_pattern_holo.dylib +0 -0
- package/Plugins/osx-arm64/libautd3_pattern_holo.dylib.meta +35 -0
- package/Plugins/osx-arm64.meta +8 -0
- package/Plugins/win-x64/autd3_pattern_holo.dll +0 -0
- package/Plugins/win-x64/autd3_pattern_holo.dll.meta +35 -0
- package/Plugins/win-x64.meta +8 -0
- package/Plugins.meta +8 -0
- package/README.md +41 -0
- package/README.md.meta +7 -0
- package/THIRD-PARTY-LICENSES.md +1083 -0
- package/THIRD-PARTY-LICENSES.md.meta +7 -0
- package/csc.rsp +2 -0
- package/csc.rsp.meta +7 -0
- package/package.json +15 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "AUTD3.Pattern.Holo",
|
|
3
|
+
"rootNamespace": "AUTD3.Holo",
|
|
4
|
+
"references": [
|
|
5
|
+
"AUTD3.Pattern",
|
|
6
|
+
"AUTD3.Core"
|
|
7
|
+
],
|
|
8
|
+
"includePlatforms": [],
|
|
9
|
+
"excludePlatforms": [],
|
|
10
|
+
"allowUnsafeCode": false,
|
|
11
|
+
"overrideReferences": false,
|
|
12
|
+
"precompiledReferences": [],
|
|
13
|
+
"autoReferenced": true,
|
|
14
|
+
"defineConstraints": [],
|
|
15
|
+
"versionDefines": [],
|
|
16
|
+
"noEngineReferences": false
|
|
17
|
+
}
|
package/GlobalUsings.cs
ADDED
package/Holo.cs
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using System.Numerics;
|
|
3
|
+
using System.Runtime.InteropServices;
|
|
4
|
+
|
|
5
|
+
namespace AUTD3.Holo
|
|
6
|
+
{
|
|
7
|
+
public enum Directivity : byte
|
|
8
|
+
{
|
|
9
|
+
Sphere = 0,
|
|
10
|
+
T4010A1 = 1,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public readonly struct Amplitude
|
|
14
|
+
{
|
|
15
|
+
internal const float AbsoluteThresholdOfHearing = 20e-6f;
|
|
16
|
+
|
|
17
|
+
internal float Pascal { get; }
|
|
18
|
+
|
|
19
|
+
private Amplitude(float pascal)
|
|
20
|
+
{
|
|
21
|
+
Pascal = pascal;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public static Amplitude FromPascal(float value) =>
|
|
25
|
+
new Amplitude(NativeHolo.autd3_holo_amplitude_pascal(value));
|
|
26
|
+
|
|
27
|
+
public static Amplitude FromKiloPascal(float value) =>
|
|
28
|
+
new Amplitude(NativeHolo.autd3_holo_amplitude_kilo_pascal(value));
|
|
29
|
+
|
|
30
|
+
public static Amplitude FromSpl(float value) =>
|
|
31
|
+
new Amplitude(NativeHolo.autd3_holo_amplitude_spl(value));
|
|
32
|
+
|
|
33
|
+
public float Spl => 20f * MathF.Log10(Pascal / AbsoluteThresholdOfHearing);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public readonly struct PressureUnit
|
|
37
|
+
{
|
|
38
|
+
internal float PaPerUnit { get; }
|
|
39
|
+
|
|
40
|
+
internal PressureUnit(float paPerUnit)
|
|
41
|
+
{
|
|
42
|
+
PaPerUnit = paPerUnit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static Amplitude operator *(float value, PressureUnit unit) => Amplitude.FromPascal(value * unit.PaPerUnit);
|
|
46
|
+
|
|
47
|
+
public static Amplitude operator *(int value, PressureUnit unit) => Amplitude.FromPascal(value * unit.PaPerUnit);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public readonly struct SplUnit
|
|
51
|
+
{
|
|
52
|
+
public static Amplitude operator *(float value, SplUnit unit)
|
|
53
|
+
{
|
|
54
|
+
_ = unit;
|
|
55
|
+
return Amplitude.FromSpl(value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public static Amplitude operator *(int value, SplUnit unit)
|
|
59
|
+
{
|
|
60
|
+
_ = unit;
|
|
61
|
+
return Amplitude.FromSpl(value);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public static class HoloUnits
|
|
66
|
+
{
|
|
67
|
+
public static readonly PressureUnit Pa = new PressureUnit(1f);
|
|
68
|
+
public static readonly PressureUnit kPa = new PressureUnit(1000f);
|
|
69
|
+
public static readonly SplUnit dB = default;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public readonly struct NalgebraBackend
|
|
73
|
+
{
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public readonly struct EmissionConstraint
|
|
77
|
+
{
|
|
78
|
+
internal byte Kind { get; }
|
|
79
|
+
internal byte Min { get; }
|
|
80
|
+
internal byte Max { get; }
|
|
81
|
+
internal float MultiplyValue { get; }
|
|
82
|
+
|
|
83
|
+
private EmissionConstraint(byte kind, byte min, byte max, float multiply)
|
|
84
|
+
{
|
|
85
|
+
Kind = kind;
|
|
86
|
+
Min = min;
|
|
87
|
+
Max = max;
|
|
88
|
+
MultiplyValue = multiply;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public static EmissionConstraint Normalize => new EmissionConstraint(0, 0, 0, 0);
|
|
92
|
+
public static EmissionConstraint Multiply(float value) => new EmissionConstraint(1, 0, 0, value);
|
|
93
|
+
public static EmissionConstraint Uniform(Intensity intensity) => new EmissionConstraint(2, intensity.Value, 0, 0);
|
|
94
|
+
public static EmissionConstraint Clamp(Intensity min, Intensity max) => new EmissionConstraint(3, min.Value, max.Value, 0);
|
|
95
|
+
|
|
96
|
+
internal EmissionConstraintNative ToNative() =>
|
|
97
|
+
new EmissionConstraintNative { Kind = Kind, Min = Min, Max = Max, Multiply = MultiplyValue };
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[StructLayout(LayoutKind.Sequential)]
|
|
101
|
+
internal struct EmissionConstraintNative
|
|
102
|
+
{
|
|
103
|
+
public byte Kind;
|
|
104
|
+
public byte Min;
|
|
105
|
+
public byte Max;
|
|
106
|
+
public float Multiply;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public readonly struct TransducerMask
|
|
110
|
+
{
|
|
111
|
+
internal bool[][]? Mask { get; }
|
|
112
|
+
|
|
113
|
+
private TransducerMask(bool[][]? mask)
|
|
114
|
+
{
|
|
115
|
+
Mask = mask;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public static TransducerMask AllEnabled => new TransducerMask(null);
|
|
119
|
+
|
|
120
|
+
public static TransducerMask Masked(bool[][] mask) => new TransducerMask(mask);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
public readonly struct NaiveOption
|
|
124
|
+
{
|
|
125
|
+
public EmissionConstraint Constraint { get; }
|
|
126
|
+
public Directivity Directivity { get; }
|
|
127
|
+
public NalgebraBackend Backend { get; }
|
|
128
|
+
public TransducerMask Mask { get; }
|
|
129
|
+
|
|
130
|
+
public NaiveOption() : this(constraint: null)
|
|
131
|
+
{
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
public NaiveOption(EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, NalgebraBackend backend = default, TransducerMask mask = default)
|
|
135
|
+
{
|
|
136
|
+
Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
|
|
137
|
+
Directivity = directivity;
|
|
138
|
+
Backend = backend;
|
|
139
|
+
Mask = mask;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
public readonly struct GsOption
|
|
144
|
+
{
|
|
145
|
+
public uint Repeat { get; }
|
|
146
|
+
public EmissionConstraint Constraint { get; }
|
|
147
|
+
public Directivity Directivity { get; }
|
|
148
|
+
public NalgebraBackend Backend { get; }
|
|
149
|
+
public TransducerMask Mask { get; }
|
|
150
|
+
|
|
151
|
+
public GsOption() : this(repeat: 100)
|
|
152
|
+
{
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
public GsOption(uint repeat = 100, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, NalgebraBackend backend = default, TransducerMask mask = default)
|
|
156
|
+
{
|
|
157
|
+
Repeat = repeat;
|
|
158
|
+
Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
|
|
159
|
+
Directivity = directivity;
|
|
160
|
+
Backend = backend;
|
|
161
|
+
Mask = mask;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
public readonly struct GspatOption
|
|
166
|
+
{
|
|
167
|
+
public uint Repeat { get; }
|
|
168
|
+
public EmissionConstraint Constraint { get; }
|
|
169
|
+
public Directivity Directivity { get; }
|
|
170
|
+
public NalgebraBackend Backend { get; }
|
|
171
|
+
public TransducerMask Mask { get; }
|
|
172
|
+
|
|
173
|
+
public GspatOption() : this(repeat: 100)
|
|
174
|
+
{
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
public GspatOption(uint repeat = 100, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, NalgebraBackend backend = default, TransducerMask mask = default)
|
|
178
|
+
{
|
|
179
|
+
Repeat = repeat;
|
|
180
|
+
Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
|
|
181
|
+
Directivity = directivity;
|
|
182
|
+
Backend = backend;
|
|
183
|
+
Mask = mask;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
public readonly struct GreedyOption
|
|
188
|
+
{
|
|
189
|
+
public byte PhaseQuantizationLevels { get; }
|
|
190
|
+
public EmissionConstraint Constraint { get; }
|
|
191
|
+
public Directivity Directivity { get; }
|
|
192
|
+
public TransducerMask Mask { get; }
|
|
193
|
+
|
|
194
|
+
public GreedyOption() : this(phaseQuantizationLevels: 16)
|
|
195
|
+
{
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
public GreedyOption(byte phaseQuantizationLevels = 16, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, TransducerMask mask = default)
|
|
199
|
+
{
|
|
200
|
+
PhaseQuantizationLevels = phaseQuantizationLevels;
|
|
201
|
+
Constraint = constraint ?? EmissionConstraint.Uniform(Intensity.Max);
|
|
202
|
+
Directivity = directivity;
|
|
203
|
+
Mask = mask;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[StructLayout(LayoutKind.Sequential)]
|
|
208
|
+
internal struct HoloControlPointNative
|
|
209
|
+
{
|
|
210
|
+
public float X;
|
|
211
|
+
public float Y;
|
|
212
|
+
public float Z;
|
|
213
|
+
public float AmplitudePa;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
internal static class NativeHolo
|
|
217
|
+
{
|
|
218
|
+
private const string Lib = "autd3_pattern_holo";
|
|
219
|
+
|
|
220
|
+
[DllImport(Lib)]
|
|
221
|
+
internal static extern float autd3_holo_amplitude_pascal(float value);
|
|
222
|
+
|
|
223
|
+
[DllImport(Lib)]
|
|
224
|
+
internal static extern float autd3_holo_amplitude_kilo_pascal(float value);
|
|
225
|
+
|
|
226
|
+
[DllImport(Lib)]
|
|
227
|
+
internal static extern float autd3_holo_amplitude_spl(float value);
|
|
228
|
+
|
|
229
|
+
[DllImport(Lib)]
|
|
230
|
+
internal static extern int autd3_holo_naive(IntPtr geometry, HoloControlPointNative[] foci, UIntPtr numFoci, float wavelengthMm, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, IntPtr buffer);
|
|
231
|
+
|
|
232
|
+
[DllImport(Lib)]
|
|
233
|
+
internal static extern int autd3_holo_gs(IntPtr geometry, HoloControlPointNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, IntPtr buffer);
|
|
234
|
+
|
|
235
|
+
[DllImport(Lib)]
|
|
236
|
+
internal static extern int autd3_holo_gspat(IntPtr geometry, HoloControlPointNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, IntPtr buffer);
|
|
237
|
+
|
|
238
|
+
[DllImport(Lib)]
|
|
239
|
+
internal static extern int autd3_holo_greedy(IntPtr geometry, HoloControlPointNative[] foci, UIntPtr numFoci, float wavelengthMm, byte phaseQuantizationLevels, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, IntPtr buffer);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
public readonly struct ControlPoint
|
|
243
|
+
{
|
|
244
|
+
public Vector3 Point { get; }
|
|
245
|
+
public Amplitude Amplitude { get; }
|
|
246
|
+
|
|
247
|
+
public ControlPoint(Vector3 point, Amplitude amplitude)
|
|
248
|
+
{
|
|
249
|
+
Point = point;
|
|
250
|
+
Amplitude = amplitude;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
public static class Holo
|
|
255
|
+
{
|
|
256
|
+
|
|
257
|
+
private static HoloControlPointNative[] ToNative(ControlPoint[] foci)
|
|
258
|
+
{
|
|
259
|
+
var native = new HoloControlPointNative[foci.Length];
|
|
260
|
+
for (var i = 0; i < foci.Length; i++)
|
|
261
|
+
{
|
|
262
|
+
var p = Coords.Point(foci[i].Point);
|
|
263
|
+
native[i] = new HoloControlPointNative
|
|
264
|
+
{
|
|
265
|
+
X = p.X,
|
|
266
|
+
Y = p.Y,
|
|
267
|
+
Z = p.Z,
|
|
268
|
+
AmplitudePa = foci[i].Amplitude.Pascal,
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
return native;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
private static byte[]? FlattenMask(bool[][]? mask, int numDevices)
|
|
275
|
+
{
|
|
276
|
+
if (mask == null)
|
|
277
|
+
{
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
var flat = new byte[numDevices * Autd3.NumTransducers];
|
|
281
|
+
for (var d = 0; d < numDevices; d++)
|
|
282
|
+
{
|
|
283
|
+
if (mask[d].Length != Autd3.NumTransducers)
|
|
284
|
+
{
|
|
285
|
+
throw new Autd3Exception($"each device mask requires {Autd3.NumTransducers} values");
|
|
286
|
+
}
|
|
287
|
+
for (var t = 0; t < Autd3.NumTransducers; t++)
|
|
288
|
+
{
|
|
289
|
+
flat[d * Autd3.NumTransducers + t] = (byte)(mask[d][t] ? 1 : 0);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return flat;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
public static void Naive(Geometry geometry, ControlPoint[] foci, Length wavelength, NaiveOption option, PatternBuffer dst)
|
|
296
|
+
{
|
|
297
|
+
var c = option.Constraint.ToNative();
|
|
298
|
+
if (NativeHolo.autd3_holo_naive(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), dst.Handle) != 0)
|
|
299
|
+
{
|
|
300
|
+
throw new Autd3Exception("naive failed");
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
public static void Gs(Geometry geometry, ControlPoint[] foci, Length wavelength, GsOption option, PatternBuffer dst)
|
|
305
|
+
{
|
|
306
|
+
var c = option.Constraint.ToNative();
|
|
307
|
+
if (NativeHolo.autd3_holo_gs(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), dst.Handle) != 0)
|
|
308
|
+
{
|
|
309
|
+
throw new Autd3Exception("gs failed");
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
public static void Gspat(Geometry geometry, ControlPoint[] foci, Length wavelength, GspatOption option, PatternBuffer dst)
|
|
314
|
+
{
|
|
315
|
+
var c = option.Constraint.ToNative();
|
|
316
|
+
if (NativeHolo.autd3_holo_gspat(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), dst.Handle) != 0)
|
|
317
|
+
{
|
|
318
|
+
throw new Autd3Exception("gspat failed");
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
public static void Greedy(Geometry geometry, ControlPoint[] foci, Length wavelength, GreedyOption option, PatternBuffer dst)
|
|
323
|
+
{
|
|
324
|
+
var c = option.Constraint.ToNative();
|
|
325
|
+
if (NativeHolo.autd3_holo_greedy(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, option.PhaseQuantizationLevels, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), dst.Handle) != 0)
|
|
326
|
+
{
|
|
327
|
+
throw new Autd3Exception("greedy failed");
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
package/Holo.cs.meta
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shun Suzuki
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/LICENSE.md.meta
ADDED
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: eb1fc04037d0c6488e03ebdecb74b339
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Any:
|
|
16
|
+
second:
|
|
17
|
+
enabled: 0
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Editor: Editor
|
|
21
|
+
second:
|
|
22
|
+
enabled: 1
|
|
23
|
+
settings:
|
|
24
|
+
CPU: x86_64
|
|
25
|
+
DefaultValueInitialized: true
|
|
26
|
+
OS: Linux
|
|
27
|
+
- first:
|
|
28
|
+
Standalone: Linux64
|
|
29
|
+
second:
|
|
30
|
+
enabled: 1
|
|
31
|
+
settings:
|
|
32
|
+
CPU: x86_64
|
|
33
|
+
userData:
|
|
34
|
+
assetBundleName:
|
|
35
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 2d87cfef9fa4a89a19cb14d9fcd7c811
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Any:
|
|
16
|
+
second:
|
|
17
|
+
enabled: 0
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Editor: Editor
|
|
21
|
+
second:
|
|
22
|
+
enabled: 1
|
|
23
|
+
settings:
|
|
24
|
+
CPU: ARM64
|
|
25
|
+
DefaultValueInitialized: true
|
|
26
|
+
OS: OSX
|
|
27
|
+
- first:
|
|
28
|
+
Standalone: OSXUniversal
|
|
29
|
+
second:
|
|
30
|
+
enabled: 1
|
|
31
|
+
settings:
|
|
32
|
+
CPU: ARM64
|
|
33
|
+
userData:
|
|
34
|
+
assetBundleName:
|
|
35
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 1443b913aa36b2f10d6244873463087c
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Any:
|
|
16
|
+
second:
|
|
17
|
+
enabled: 0
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Editor: Editor
|
|
21
|
+
second:
|
|
22
|
+
enabled: 1
|
|
23
|
+
settings:
|
|
24
|
+
CPU: x86_64
|
|
25
|
+
DefaultValueInitialized: true
|
|
26
|
+
OS: Windows
|
|
27
|
+
- first:
|
|
28
|
+
Standalone: Win64
|
|
29
|
+
second:
|
|
30
|
+
enabled: 1
|
|
31
|
+
settings:
|
|
32
|
+
CPU: x86_64
|
|
33
|
+
userData:
|
|
34
|
+
assetBundleName:
|
|
35
|
+
assetBundleVariant:
|
package/Plugins.meta
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# AUTD3 Pattern Holo (Unity)
|
|
2
|
+
|
|
3
|
+
Multi-focus holographic patterns (GS, GSPAT, LM and friends).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Add the scoped registry and the package to `Packages/manifest.json`; sibling
|
|
8
|
+
AUTD3 packages are resolved from the registry automatically.
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"scopedRegistries": [
|
|
13
|
+
{ "name": "npmjs", "url": "https://registry.npmjs.org", "scopes": ["com.shinolab"] }
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"com.shinolab.autd3-sdk.pattern.holo": "0.1.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Packages served from `registry.npmjs.org` do **not** appear in the Package Manager's
|
|
22
|
+
*My Registries* tab, because npmjs does not implement the legacy `/-/all` route that
|
|
23
|
+
Unity's package listing relies on. Resolution is unaffected: edit the manifest as above,
|
|
24
|
+
or use **+ → Add package by name**.
|
|
25
|
+
|
|
26
|
+
## Platforms
|
|
27
|
+
|
|
28
|
+
Editor and Standalone builds on Windows (`win-x64`), Linux (`linux-x64`) and Apple
|
|
29
|
+
Silicon macOS (`osx-arm64`). Intel macOS is not shipped.
|
|
30
|
+
|
|
31
|
+
## Notes
|
|
32
|
+
|
|
33
|
+
Minimum Unity version is 6 (6000.x). The API speaks Unity's left-handed, metre frame;
|
|
34
|
+
conversion to the AUTD3 canonical frame happens at the binding boundary.
|
|
35
|
+
|
|
36
|
+
See the [Unity binding README](https://github.com/shinolab/autd3-sdk/blob/main/bindings/unity/README.md) for the
|
|
37
|
+
coordinate system, the full package list and local development with `file:` references.
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT. See `LICENSE.md`. Third-party notices are in `THIRD-PARTY-LICENSES.md`.
|