implement both kinect and pd integration
This commit is contained in:
parent
fc5b6ef041
commit
175892a576
14 changed files with 464 additions and 445 deletions
|
@ -25,7 +25,6 @@
|
|||
</e>
|
||||
<e p="Visualizer" t="Include">
|
||||
<e p="IRPanelBehaviour.cs" t="Include" />
|
||||
<e p="MeshController.cs" t="Include" />
|
||||
<e p="PointCloudBehaviour.cs" t="Include" />
|
||||
<e p="WaveformVisualizerBehaviour.cs" t="Include" />
|
||||
</e>
|
||||
|
|
|
@ -2,18 +2,16 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="c6a8ca49-0b91-43c0-a787-44b1fda29c5f" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs.meta" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs.meta" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.UnityProject/.idea/contentModel.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.UnityProject/.idea/contentModel.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.UnityProject/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.UnityProject/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assembly-CSharp.csproj" beforeDir="false" afterPath="$PROJECT_DIR$/Assembly-CSharp.csproj" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Materials/DebugPanel.mat" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Materials/DebugPanel.mat.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Materials/PointCloud.mat" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Materials/PointCloud.mat" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scenes/MainScene.unity" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scenes/MainScene.unity" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs.meta" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs.meta" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
@ -42,22 +40,22 @@
|
|||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="576">
|
||||
<caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
|
||||
<state relative-caret-position="312">
|
||||
<caret line="12" column="8" selection-start-line="12" selection-start-column="8" selection-end-line="12" selection-end-column="8" />
|
||||
<folding>
|
||||
<marker date="1562514797160" expanded="true" signature="6:36" ph="..." />
|
||||
<marker date="1562514797160" expanded="true" signature="58:2472" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="113:2470" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="359:842" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="565:673" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="873:906" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="965:1601" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1100:1562" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1275:1548" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1668:2237" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1804:2197" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1979:2183" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="2296:2464" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="6:65" ph="..." />
|
||||
<marker date="1562524171247" expanded="true" signature="87:2842" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="142:2840" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="636:1249" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="830:989" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1280:1347" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1406:1971" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1541:1932" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1716:1918" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2038:2607" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2174:2567" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2349:2553" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2666:2834" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -75,13 +73,13 @@
|
|||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="475">
|
||||
<caret line="19" column="67" selection-start-line="19" selection-start-column="67" selection-end-line="19" selection-end-column="67" />
|
||||
<state relative-caret-position="400">
|
||||
<caret line="16" column="1" selection-start-line="16" selection-start-column="1" selection-end-line="16" selection-end-column="1" />
|
||||
<folding>
|
||||
<marker date="1562514681319" expanded="true" signature="28:759" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="46:149" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="165:754" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="223:742" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="28:641" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="46:136" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="152:636" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="218:624" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -90,30 +88,12 @@
|
|||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="175">
|
||||
<caret line="7" column="29" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
|
||||
<state>
|
||||
<folding>
|
||||
<marker date="1562492780913" expanded="true" signature="6:32" ph="..." />
|
||||
<marker date="1562492780913" expanded="true" signature="54:464" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="112:462" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="212:370" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="401:456" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="350">
|
||||
<caret line="14" column="9" selection-start-line="14" selection-start-column="9" selection-end-line="14" selection-end-column="9" />
|
||||
<folding>
|
||||
<marker date="1562501709278" expanded="true" signature="40:329" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="79:114" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="169:327" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="249:270" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="301:321" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="40:437" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="98:435" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="198:343" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="374:429" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -177,8 +157,8 @@
|
|||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="200">
|
||||
<caret line="9" column="22" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="22" />
|
||||
<state relative-caret-position="100">
|
||||
<caret line="5" selection-start-line="5" selection-end-line="5" />
|
||||
<folding>
|
||||
<marker date="1562502233344" expanded="false" signature="6:36" ph="..." />
|
||||
<marker date="1562502233344" expanded="true" signature="58:565" ph="{...}" />
|
||||
|
@ -195,6 +175,7 @@
|
|||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
||||
</component>
|
||||
<component name="HighlightingSettingsPerFile">
|
||||
<setting file="file://$PROJECT_DIR$/Assets/Shader.meta" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/ThridParty/KinectView/Scripts/DisableOnStart.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/ThridParty/KinectView/Scripts/BodySourceView.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
|
@ -202,7 +183,6 @@
|
|||
<setting file="file://$PROJECT_DIR$/Assets/Scripts/PdConnection/PdArray.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/F5F8D912-CD82-4E63-93D1-35A9356AD96C/72/23a38ddc/MemoryMappedFile.cs" root0="SKIP_HIGHLIGHTING" />
|
||||
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/D7AC571C-A2D0-4B2F-981D-0D886FA067CF/70/816727c9/IntPtr.cs" root0="SKIP_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/ThridParty/Windows/Kinect/InfraredFrameReader.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/Scripts/VideoInput/Editor/UnitTest/ComponentFactoryTestCase.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/FF5F04D6-6C19-4D96-86AB-314B6714BDBF/04/13252895/TextureFormat.cs" root0="SKIP_HIGHLIGHTING" />
|
||||
|
@ -253,22 +233,23 @@
|
|||
<option value="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManager.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectSensor.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloud.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/VideoInput/InfraredCamera.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/KinectVisualizationBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Shader/PointCloud.shader" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs" />
|
||||
<option value="$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader" />
|
||||
<option value="$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="-7" />
|
||||
<option name="width" value="2164" />
|
||||
<option name="x" value="150" />
|
||||
<option name="y" value="825" />
|
||||
<option name="width" value="1757" />
|
||||
<option name="height" value="1567" />
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
|
@ -353,10 +334,10 @@
|
|||
<option name="userSelectedPid" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost" pid="25932">
|
||||
<configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost" pid="20596">
|
||||
<option name="allowRunningInParallel" value="false" />
|
||||
<option name="listenPortForConnections" value="false" />
|
||||
<option name="pid" value="25932" />
|
||||
<option name="pid" value="20596" />
|
||||
<option name="userSelectedPid" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
|
@ -374,7 +355,7 @@
|
|||
<updated>1562417892841</updated>
|
||||
<workItem from="1562417897686" duration="5014000" />
|
||||
<workItem from="1562427566179" duration="10564000" />
|
||||
<workItem from="1562481324968" duration="21303000" />
|
||||
<workItem from="1562481324968" duration="27157000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="add Kinect Manager">
|
||||
<created>1562485186899</created>
|
||||
|
@ -383,11 +364,18 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1562485186899</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="2" />
|
||||
<task id="LOCAL-00002" summary="point cloud in progress">
|
||||
<created>1562515012981</created>
|
||||
<option name="number" value="00002" />
|
||||
<option name="presentableId" value="LOCAL-00002" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1562515012981</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="3" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="36881000" />
|
||||
<option name="totallyTimeSpent" value="42735000" />
|
||||
</component>
|
||||
<component name="TodoView">
|
||||
<todo-panel id="selected-file">
|
||||
|
@ -399,11 +387,11 @@
|
|||
</todo-panel>
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-7" y="0" width="2164" height="1567" extended-state="0" />
|
||||
<frame x="-226" y="883" width="1757" height="1567" extended-state="0" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.83295196" visible="true" weight="0.21910647" />
|
||||
<window_info id="Structure" order="1" sideWeight="0.16704805" side_tool="true" visible="true" weight="0.21910647" />
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.83295196" visible="true" weight="0.27165586" />
|
||||
<window_info id="Structure" order="1" sideWeight="0.16704805" side_tool="true" visible="true" weight="0.27165586" />
|
||||
<window_info id="Favorites" order="2" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Inspection Results" weight="0.32967034" />
|
||||
<window_info anchor="bottom" id="Message" order="0" />
|
||||
|
@ -448,7 +436,8 @@
|
|||
<component name="UnityUnitTestConfiguration" currentTestLauncher="EditMode" />
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="add Kinect Manager" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="add Kinect Manager" />
|
||||
<MESSAGE value="point cloud in progress" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="point cloud in progress" />
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager>
|
||||
|
@ -899,20 +888,6 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="175">
|
||||
<caret line="7" column="29" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
|
||||
<folding>
|
||||
<marker date="1562492780913" expanded="true" signature="6:32" ph="..." />
|
||||
<marker date="1562492780913" expanded="true" signature="54:464" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="112:462" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="212:370" ph="{...}" />
|
||||
<marker date="1562492780913" expanded="true" signature="401:456" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/VideoInput/InfraredCamera.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-225">
|
||||
|
@ -938,6 +913,20 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/FF5F04D6-6C19-4D96-86AB-314B6714BDBF/ac/8ae67e56/Mesh.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="275">
|
||||
<caret line="29" column="11" selection-start-line="29" selection-start-column="11" selection-end-line="29" selection-end-column="11" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="350">
|
||||
<caret line="14" column="9" selection-start-line="14" selection-start-column="9" selection-end-line="14" selection-end-column="9" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="150">
|
||||
|
@ -952,44 +941,10 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/FF5F04D6-6C19-4D96-86AB-314B6714BDBF/ac/8ae67e56/Mesh.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="275">
|
||||
<caret line="29" column="11" selection-start-line="29" selection-start-column="11" selection-end-line="29" selection-end-column="11" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/MeshController.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="350">
|
||||
<caret line="14" column="9" selection-start-line="14" selection-start-column="9" selection-end-line="14" selection-end-column="9" />
|
||||
<folding>
|
||||
<marker date="1562501709278" expanded="true" signature="40:329" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="79:114" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="169:327" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="249:270" ph="{...}" />
|
||||
<marker date="1562501709278" expanded="true" signature="301:321" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="475">
|
||||
<caret line="19" column="67" selection-start-line="19" selection-start-column="67" selection-end-line="19" selection-end-column="67" />
|
||||
<folding>
|
||||
<marker date="1562514681319" expanded="true" signature="28:759" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="46:149" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="165:754" ph="{...}" />
|
||||
<marker date="1562514681319" expanded="true" signature="223:742" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/IRPanelBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="200">
|
||||
<caret line="9" column="22" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="22" />
|
||||
<state relative-caret-position="100">
|
||||
<caret line="5" selection-start-line="5" selection-end-line="5" />
|
||||
<folding>
|
||||
<marker date="1562502233344" expanded="false" signature="6:36" ph="..." />
|
||||
<marker date="1562502233344" expanded="true" signature="58:565" ph="{...}" />
|
||||
|
@ -999,24 +954,49 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Shader/Vertex Modifier.shader">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="400">
|
||||
<caret line="16" column="1" selection-start-line="16" selection-start-column="1" selection-end-line="16" selection-end-column="1" />
|
||||
<folding>
|
||||
<marker date="1562523657625" expanded="true" signature="28:641" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="46:136" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="152:636" ph="{...}" />
|
||||
<marker date="1562523657625" expanded="true" signature="218:624" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state>
|
||||
<folding>
|
||||
<marker date="1562523019035" expanded="true" signature="40:437" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="98:435" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="198:343" ph="{...}" />
|
||||
<marker date="1562523019035" expanded="true" signature="374:429" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/Assets/Scripts/Visualizer/PointCloudBehaviour.cs">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="576">
|
||||
<caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
|
||||
<state relative-caret-position="312">
|
||||
<caret line="12" column="8" selection-start-line="12" selection-start-column="8" selection-end-line="12" selection-end-column="8" />
|
||||
<folding>
|
||||
<marker date="1562514797160" expanded="true" signature="6:36" ph="..." />
|
||||
<marker date="1562514797160" expanded="true" signature="58:2472" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="113:2470" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="359:842" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="565:673" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="873:906" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="965:1601" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1100:1562" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1275:1548" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1668:2237" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1804:2197" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="1979:2183" ph="{...}" />
|
||||
<marker date="1562514797160" expanded="true" signature="2296:2464" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="6:65" ph="..." />
|
||||
<marker date="1562524171247" expanded="true" signature="87:2842" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="142:2840" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="636:1249" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="830:989" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1280:1347" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1406:1971" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1541:1932" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="1716:1918" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2038:2607" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2174:2567" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2349:2553" ph="{...}" />
|
||||
<marker date="1562524171247" expanded="true" signature="2666:2834" ph="{...}" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
<Compile Include="Assets\Scripts\VideoInput\KinectManagerBehaviour.cs" />
|
||||
<Compile Include="Assets\Scripts\VideoInput\KinectSensor.cs" />
|
||||
<Compile Include="Assets\Scripts\Visualizer\IRPanelBehaviour.cs" />
|
||||
<Compile Include="Assets\Scripts\Visualizer\MeshController.cs" />
|
||||
<Compile Include="Assets\Scripts\Visualizer\PointCloudBehaviour.cs" />
|
||||
<Compile Include="Assets\Scripts\Visualizer\WaveformVisualizerBehaviour.cs" />
|
||||
<Compile Include="Assets\ThridParty\KinectScript\CameraIntrinsics.cs" />
|
||||
|
|
|
@ -13,7 +13,7 @@ Material:
|
|||
m_LightmapFlags: 0
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
m_CustomRenderQueue: 2000
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
|
|
8
UnityProject/Assets/Prefabs.meta
Normal file
8
UnityProject/Assets/Prefabs.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e93f7dbfd936d244a9e25f7474dc10ea
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
232
UnityProject/Assets/Prefabs/KinectVisualization.prefab
Normal file
232
UnityProject/Assets/Prefabs/KinectVisualization.prefab
Normal file
|
@ -0,0 +1,232 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4731626927875726491
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4731626927875726468}
|
||||
- component: {fileID: 5059429581819481323}
|
||||
m_Layer: 0
|
||||
m_Name: KinectVisualization
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4731626927875726468
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626927875726491}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4731626929094548426}
|
||||
- {fileID: 4731626929341064471}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &5059429581819481323
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626927875726491}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5b54a31bc1a14c1abb51fe86c56c6227, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &4731626929094548425
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4731626929094548426}
|
||||
- component: {fileID: 4731626929094548469}
|
||||
- component: {fileID: 4731626929094548468}
|
||||
- component: {fileID: 4731626929094548427}
|
||||
m_Layer: 0
|
||||
m_Name: IRPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!4 &4731626929094548426
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929094548425}
|
||||
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4731626927875726468}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
|
||||
--- !u!33 &4731626929094548469
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929094548425}
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &4731626929094548468
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929094548425}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: a8f5d1054ef74a44b9ad9a606a412c6a, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!114 &4731626929094548427
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929094548425}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c0603bf64edb4c8885cefbc40ee206fe, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
kinectManagerBehaviour: {fileID: 5059429581819481323}
|
||||
panel: {fileID: 4731626929094548425}
|
||||
--- !u!1 &4731626929341064470
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4731626929341064471}
|
||||
- component: {fileID: 4731626929341064466}
|
||||
- component: {fileID: 4731626929341064465}
|
||||
- component: {fileID: 4731626929341064464}
|
||||
m_Layer: 0
|
||||
m_Name: PointCloud
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4731626929341064471
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929341064470}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4731626927875726468}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &4731626929341064466
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929341064470}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 3f6444796bbb89e45a6a51b5bb0037f6, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &4731626929341064465
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929341064470}
|
||||
m_Mesh: {fileID: 0}
|
||||
--- !u!114 &4731626929341064464
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4731626929341064470}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ffecec984845420991cec1a5fcf11959, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
zScale: 1
|
||||
kinectManagerBehaviour: {fileID: 5059429581819481323}
|
||||
meshFilter: {fileID: 4731626929341064465}
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2cf41770dc7914b46aa31a442508dd25
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -181,49 +181,6 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &437875427
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 437875429}
|
||||
- component: {fileID: 437875428}
|
||||
m_Layer: 0
|
||||
m_Name: Main
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &437875428
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437875427}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5b54a31bc1a14c1abb51fe86c56c6227, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &437875429
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437875427}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &534669902
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -260,7 +217,7 @@ Camera:
|
|||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.3018868, g: 0.3018868, b: 0.3018868, a: 0}
|
||||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
|
@ -299,45 +256,13 @@ Transform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 534669902}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -13.7}
|
||||
m_LocalRotation: {x: 0, y: -0.015271054, z: 0, w: 0.9998834}
|
||||
m_LocalPosition: {x: 1.645, y: -1, z: -5.95}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &848915471
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 848915472}
|
||||
m_Layer: 0
|
||||
m_Name: KinectVisualization
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &848915472
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 848915471}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 2037885790}
|
||||
- {fileID: 1780880771}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -1.75, z: 0}
|
||||
--- !u!1 &1641055256
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -355,7 +280,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!120 &1641055257
|
||||
LineRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -579,188 +504,72 @@ MonoBehaviour:
|
|||
pdArraySize: 100
|
||||
lineRenderer: {fileID: 1641055257}
|
||||
scale: 1
|
||||
--- !u!1 &1780880770
|
||||
GameObject:
|
||||
--- !u!1001 &6127742206276435382
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1780880771}
|
||||
- component: {fileID: 1780880774}
|
||||
- component: {fileID: 1780880773}
|
||||
- component: {fileID: 1780880772}
|
||||
m_Layer: 0
|
||||
m_Name: PointCloud
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1780880771
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1780880770}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 848915472}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1780880772
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1780880770}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ffecec984845420991cec1a5fcf11959, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
kinectManagerBehaviour: {fileID: 437875428}
|
||||
meshFilter: {fileID: 1780880773}
|
||||
vertexModifier: {fileID: 4800000, guid: 3ad3d923f892ff94d9b9e114f6293260, type: 3}
|
||||
--- !u!33 &1780880773
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1780880770}
|
||||
m_Mesh: {fileID: 0}
|
||||
--- !u!23 &1780880774
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1780880770}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 3f6444796bbb89e45a6a51b5bb0037f6, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!1 &2037885789
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2037885790}
|
||||
- component: {fileID: 2037885793}
|
||||
- component: {fileID: 2037885792}
|
||||
- component: {fileID: 2037885791}
|
||||
m_Layer: 0
|
||||
m_Name: IRPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!4 &2037885790
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2037885789}
|
||||
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 848915472}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
|
||||
--- !u!114 &2037885791
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2037885789}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c0603bf64edb4c8885cefbc40ee206fe, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
kinectManagerBehaviour: {fileID: 437875428}
|
||||
panel: {fileID: 2037885789}
|
||||
--- !u!23 &2037885792
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2037885789}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: a8f5d1054ef74a44b9ad9a606a412c6a, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &2037885793
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2037885789}
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4731626927875726491, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: KinectVisualization
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4731626927875726468, guid: 2cf41770dc7914b46aa31a442508dd25,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 2cf41770dc7914b46aa31a442508dd25, type: 3}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VideoInput
|
||||
{
|
||||
|
@ -11,7 +10,6 @@ namespace VideoInput
|
|||
{
|
||||
var componentFactory = new ComponentFactory();
|
||||
KinectSensor = componentFactory.CreateKinectSensor();
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Visualizer
|
||||
{
|
||||
public interface IMeshController
|
||||
{
|
||||
void Update();
|
||||
}
|
||||
|
||||
public class MeshController : IMeshController
|
||||
{
|
||||
private Vector3[] points_;
|
||||
|
||||
MeshController(int numPoints)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 83939e86f988414c8ababcc62ccc727d
|
||||
timeCreated: 1562501315
|
|
@ -1,4 +1,5 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using VideoInput;
|
||||
|
||||
namespace Visualizer
|
||||
|
@ -6,28 +7,37 @@ namespace Visualizer
|
|||
public class PointCloudBehaviour : MonoBehaviour
|
||||
{
|
||||
#pragma warning disable 649
|
||||
|
||||
[Header("Modifier Parameters")]
|
||||
[SerializeField] private float zScale;
|
||||
|
||||
[Header("Connections")]
|
||||
[SerializeField] private KinectManagerBehaviour kinectManagerBehaviour;
|
||||
[SerializeField] private MeshFilter meshFilter;
|
||||
#pragma warning restore 649
|
||||
|
||||
private Material material_;
|
||||
private static readonly int Scale = Shader.PropertyToID("_Scale");
|
||||
|
||||
private void Start()
|
||||
{
|
||||
var texture = kinectManagerBehaviour.KinectSensor.InfraredCamera.Data;
|
||||
var numPixels = texture.height * texture.width;
|
||||
|
||||
meshFilter.mesh = new Mesh
|
||||
{
|
||||
meshFilter.mesh = new Mesh {
|
||||
vertices = MakeVertices(texture),
|
||||
uv = MakeTexCoord(texture)
|
||||
uv = MakeTexCoord(texture),
|
||||
indexFormat = IndexFormat.UInt32
|
||||
};
|
||||
meshFilter.mesh.SetIndices(MakeIndecies(numPixels), MeshTopology.Points, 0, false);
|
||||
gameObject.GetComponent<Renderer>().material.mainTexture = kinectManagerBehaviour.KinectSensor.InfraredCamera.Data;
|
||||
|
||||
material_ = GetComponent<Renderer>().material;
|
||||
material_.mainTexture = kinectManagerBehaviour.KinectSensor.InfraredCamera.Data;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
|
||||
material_.SetFloat(Scale, zScale);
|
||||
}
|
||||
|
||||
private Vector3[] MakeVertices(Texture2D texture)
|
||||
|
@ -40,9 +50,7 @@ namespace Visualizer
|
|||
for (var j = 0; j < texture.width; ++j)
|
||||
{
|
||||
var wPhase = (float) j / texture.width;
|
||||
vertices[offset + j].x = wPhase * 10f - 5f;
|
||||
vertices[offset + j].y = hPhase * 10f - 5f;
|
||||
vertices[offset + j].z = 0f;
|
||||
vertices[offset + j] = new Vector3(wPhase * 10f - 5f, (hPhase * 10f - 5f) * -1f, 0f);
|
||||
}
|
||||
}
|
||||
return vertices;
|
||||
|
|
8
UnityProject/Assets/Shader.meta
Normal file
8
UnityProject/Assets/Shader.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 63a31322a10178141b1ce69a847c3c70
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,26 +1,24 @@
|
|||
Shader "Vertex Modifier" {
|
||||
Properties {
|
||||
_MainTex ("Texture", 2D) = "depth" {}
|
||||
_Amount ("Height Adjustment", Float) = 1.0
|
||||
_Scale ("Scale", Float) = 1.0
|
||||
}
|
||||
SubShader {
|
||||
Tags { "RenderType" = "Opaque" }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma surface surf Lambert vertex:vert
|
||||
struct Input {
|
||||
float2 uv_MainTex;
|
||||
};
|
||||
|
||||
// Access the shaderlab properties
|
||||
float _Amount;
|
||||
float _Scale;
|
||||
sampler2D _MainTex;
|
||||
|
||||
// Vertex modifier function
|
||||
void vert (inout appdata_full v){
|
||||
v.vertex.z += _Amount * tex2Dlod(_MainTex, v.texcoord).r;
|
||||
v.vertex.z += _Scale * tex2Dlod(_MainTex, v.texcoord).r;
|
||||
}
|
||||
|
||||
// Surface shader function
|
||||
void surf (Input IN, inout SurfaceOutput o) {
|
||||
o.Albedo = float4(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue