Revize a5c3168d
Přidáno uživatelem Oto Šťáva před téměř 4 roky(ů)
deltarobot-vr/Assets/DeltaRobotVr/Client.cs | ||
---|---|---|
46 | 46 |
|
47 | 47 |
private const int ReconnectPollMillis = 200; |
48 | 48 |
private const int ReconnectTimeMillis = 3000; |
49 |
|
|
49 |
private const int ConnectTimeoutMillis = 3000; |
|
50 | 50 |
|
51 | 51 |
private Thread _thread; |
52 | 52 |
|
... | ... | |
287 | 287 |
port = DefaultPort; |
288 | 288 |
} |
289 | 289 |
|
290 |
using var client = new TcpClient(host, port); |
|
290 |
using var client = new TcpClient(); |
|
291 |
var asyncConnect = client.BeginConnect(host, port, null, null); |
|
292 |
|
|
293 |
var connected = asyncConnect.AsyncWaitHandle.WaitOne(TimeSpan.FromMilliseconds(ConnectTimeoutMillis)); |
|
294 |
if (!connected) |
|
295 |
{ |
|
296 |
Debug.LogWarning("Connection not established - timed out"); |
|
297 |
continue; |
|
298 |
} |
|
299 |
|
|
291 | 300 |
using var stream = client.GetStream(); |
292 | 301 |
BinaryReader reader = new BinaryReader(stream); |
293 | 302 |
BinaryWriter writer = new BinaryWriter(stream); |
deltarobot-vr/Assets/DeltaRobotVr/Components/Curve.cs | ||
---|---|---|
6 | 6 |
{ |
7 | 7 |
private long _currentCounter; |
8 | 8 |
private LineRenderer _lineRenderer; |
9 |
|
|
9 |
|
|
10 | 10 |
void Start() |
11 | 11 |
{ |
12 | 12 |
_currentCounter = Client.Instance.CurveCounter; |
13 | 13 |
_lineRenderer = GetComponent<LineRenderer>(); |
14 | 14 |
|
15 | 15 |
// Set curve color |
16 |
var color = UnityEngine.Color.yellow;
|
|
16 |
var color = Color.yellow; |
|
17 | 17 |
var cs = ConfigurationProvider.Instance.CurveColorHex; |
18 | 18 |
ColorUtility.TryParseHtmlString(cs, out color); |
19 |
|
|
19 |
|
|
20 | 20 |
_lineRenderer.material.color = color; |
21 |
|
|
22 |
var widthCurve = new AnimationCurve(); |
|
23 |
widthCurve.AddKey(0.0f, ConfigurationProvider.Instance.VisualizationScaleOverall * 1); |
|
24 |
_lineRenderer.widthCurve = widthCurve; |
|
21 | 25 |
} |
22 | 26 |
|
23 | 27 |
void Update() |
deltarobot-vr/Assets/Materials/ActuatorMaterial.mat | ||
---|---|---|
9 | 9 |
m_PrefabAsset: {fileID: 0} |
10 | 10 |
m_Name: ActuatorMaterial |
11 | 11 |
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} |
12 |
m_ShaderKeywords: |
|
12 |
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
|
|
13 | 13 |
m_LightmapFlags: 4 |
14 | 14 |
m_EnableInstancingVariants: 0 |
15 | 15 |
m_DoubleSidedGI: 0 |
16 |
m_CustomRenderQueue: -1 |
|
17 |
stringTagMap: {} |
|
16 |
m_CustomRenderQueue: 3000 |
|
17 |
stringTagMap: |
|
18 |
RenderType: Transparent |
|
18 | 19 |
disabledShaderPasses: [] |
19 | 20 |
m_SavedProperties: |
20 | 21 |
serializedVersion: 3 |
... | ... | |
59 | 60 |
- _BumpScale: 1 |
60 | 61 |
- _Cutoff: 0.5 |
61 | 62 |
- _DetailNormalMapScale: 1 |
62 |
- _DstBlend: 0 |
|
63 |
- _DstBlend: 10
|
|
63 | 64 |
- _GlossMapScale: 1 |
64 | 65 |
- _Glossiness: 0.5 |
65 | 66 |
- _GlossyReflections: 1 |
66 | 67 |
- _Metallic: 0 |
67 |
- _Mode: 0
|
|
68 |
- _Mode: 3
|
|
68 | 69 |
- _OcclusionStrength: 1 |
69 | 70 |
- _Parallax: 0.02 |
70 | 71 |
- _SmoothnessTextureChannel: 0 |
71 | 72 |
- _SpecularHighlights: 1 |
72 | 73 |
- _SrcBlend: 1 |
73 | 74 |
- _UVSec: 0 |
74 |
- _ZWrite: 1
|
|
75 |
- _ZWrite: 0
|
|
75 | 76 |
m_Colors: |
76 |
- _Color: {r: 0, g: 0.61987686, b: 1, a: 1}
|
|
77 |
- _Color: {r: 0, g: 0.6198768, b: 1, a: 0.8352941}
|
|
77 | 78 |
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
78 | 79 |
m_BuildTextureStacks: [] |
deltarobot-vr/Assets/Materials/CurveMaterial.mat | ||
---|---|---|
9 | 9 |
m_PrefabAsset: {fileID: 0} |
10 | 10 |
m_Name: CurveMaterial |
11 | 11 |
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} |
12 |
m_ShaderKeywords: |
|
12 |
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
|
|
13 | 13 |
m_LightmapFlags: 4 |
14 | 14 |
m_EnableInstancingVariants: 0 |
15 | 15 |
m_DoubleSidedGI: 0 |
16 |
m_CustomRenderQueue: -1 |
|
17 |
stringTagMap: {} |
|
16 |
m_CustomRenderQueue: 3000 |
|
17 |
stringTagMap: |
|
18 |
RenderType: Transparent |
|
18 | 19 |
disabledShaderPasses: [] |
19 | 20 |
m_SavedProperties: |
20 | 21 |
serializedVersion: 3 |
... | ... | |
59 | 60 |
- _BumpScale: 1 |
60 | 61 |
- _Cutoff: 0.5 |
61 | 62 |
- _DetailNormalMapScale: 1 |
62 |
- _DstBlend: 0 |
|
63 |
- _DstBlend: 10
|
|
63 | 64 |
- _GlossMapScale: 1 |
64 | 65 |
- _Glossiness: 0.5 |
65 | 66 |
- _GlossyReflections: 1 |
66 | 67 |
- _Metallic: 0 |
67 |
- _Mode: 0
|
|
68 |
- _Mode: 3
|
|
68 | 69 |
- _OcclusionStrength: 1 |
69 | 70 |
- _Parallax: 0.02 |
70 | 71 |
- _SmoothnessTextureChannel: 0 |
71 | 72 |
- _SpecularHighlights: 1 |
72 | 73 |
- _SrcBlend: 1 |
73 | 74 |
- _UVSec: 0 |
74 |
- _ZWrite: 1
|
|
75 |
- _ZWrite: 0
|
|
75 | 76 |
m_Colors: |
76 |
- _Color: {r: 1, g: 1, b: 0, a: 1}
|
|
77 |
- _Color: {r: 1, g: 1, b: 0, a: 0.7019608}
|
|
77 | 78 |
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
78 | 79 |
m_BuildTextureStacks: [] |
deltarobot-vr/Assets/Scenes/MainScene.unity | ||
---|---|---|
38 | 38 |
m_ReflectionIntensity: 1 |
39 | 39 |
m_CustomReflection: {fileID: 0} |
40 | 40 |
m_Sun: {fileID: 0} |
41 |
m_IndirectSpecularColor: {r: 0.13630313, g: 0.13304767, b: 0.13535894, a: 1}
|
|
41 |
m_IndirectSpecularColor: {r: 0.13630301, g: 0.13304764, b: 0.1353588, a: 1}
|
|
42 | 42 |
m_UseRadianceAmbientProbe: 0 |
43 | 43 |
--- !u!157 &3 |
44 | 44 |
LightmapSettings: |
deltarobot-vr/Assets/XR/Settings/Open XR Package Settings.asset | ||
---|---|---|
53 | 53 |
m_Name: Standalone |
54 | 54 |
m_EditorClassIdentifier: |
55 | 55 |
features: |
56 |
- {fileID: 2403943066524059476} |
|
56 | 57 |
- {fileID: 2043135668846800584} |
58 |
- {fileID: -1904082576570179865} |
|
57 | 59 |
- {fileID: -6096981118822911806} |
58 | 60 |
- {fileID: -271836654803105724} |
59 | 61 |
- {fileID: -3694410627744314491} |
60 | 62 |
- {fileID: -7447083962620800966} |
61 | 63 |
- {fileID: -1776479383642935546} |
62 |
- {fileID: 2403943066524059476} |
|
63 |
- {fileID: -794994281501537552} |
|
64 | 64 |
- {fileID: -335466943738423260} |
65 |
- {fileID: -1904082576570179865} |
|
66 | 65 |
- {fileID: 6355736994434073062} |
66 |
- {fileID: -794994281501537552} |
|
67 | 67 |
m_renderMode: 1 |
68 | 68 |
m_depthSubmissionMode: 0 |
69 | 69 |
--- !u!114 &-3694410627744314491 |
deltarobot-vr/ProjectSettings/EditorBuildSettings.asset | ||
---|---|---|
5 | 5 |
m_ObjectHideFlags: 0 |
6 | 6 |
serializedVersion: 2 |
7 | 7 |
m_Scenes: |
8 |
- enabled: 1 |
|
9 |
path: Assets/Scenes/BasicRoomScene.unity |
|
10 |
guid: c3ae6736b8d472d43a729f249f998f5c |
|
11 | 8 |
- enabled: 1 |
12 | 9 |
path: Assets/Scenes/MainScene.unity |
13 | 10 |
guid: 9fc0d4010bbf28b4594072e72b8655ab |
11 |
- enabled: 1 |
|
12 |
path: Assets/Scenes/BasicRoomScene.unity |
|
13 |
guid: c3ae6736b8d472d43a729f249f998f5c |
|
14 | 14 |
- enabled: 1 |
15 | 15 |
path: Assets/UsedAssets/_Barking_Dog/3D Free Modular Kit/NeonRoom.unity |
16 | 16 |
guid: 7b533dfe561bc47c8975c955fe4ef3d3 |
deltarobot-vr/ProjectSettings/ProjectSettings.asset | ||
---|---|---|
128 | 128 |
16:9: 1 |
129 | 129 |
Others: 1 |
130 | 130 |
bundleVersion: 0.1 |
131 |
preloadedAssets: [] |
|
131 |
preloadedAssets: |
|
132 |
- {fileID: -5491969387593978816, guid: 4f95031940154b14299cd50ae865e7e6, type: 2} |
|
132 | 133 |
metroInputSource: 0 |
133 | 134 |
wsaTransparentSwapchain: 0 |
134 | 135 |
m_HolographicPauseOnTrackingLoss: 1 |
... | ... | |
689 | 690 |
platformArchitecture: {} |
690 | 691 |
scriptingBackend: |
691 | 692 |
Android: 1 |
692 |
Standalone: 1
|
|
693 |
Standalone: 0
|
|
693 | 694 |
il2cppCompilerConfiguration: {} |
694 | 695 |
managedStrippingLevel: {} |
695 | 696 |
incrementalIl2cppBuild: {} |
deltarobot-vr/ProjectSettings/UnityConnectSettings.asset | ||
---|---|---|
9 | 9 |
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events |
10 | 10 |
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events |
11 | 11 |
m_ConfigUrl: https://config.uca.cloud.unity3d.com |
12 |
m_DashboardUrl: https://dashboard.unity3d.com |
|
12 | 13 |
m_TestInitMode: 0 |
13 | 14 |
CrashReportingSettings: |
14 | 15 |
m_EventUrl: https://perf-events.cloud.unity3d.com |
Také k dispozici: Unified diff
Re #9000 - On-site adjustments