├── .gitignore ├── Documents ├── CRS_unity.png ├── CRS_usdview.png ├── ImportMenu.png └── ImportSettings.png ├── LICENSE.txt ├── Plugin ├── CMakeLists.txt ├── External │ ├── 7z │ │ └── 7za.exe │ └── Unity │ │ └── include │ │ └── PluginAPI │ │ ├── IUnityEventQueue.h │ │ ├── IUnityGraphics.h │ │ ├── IUnityGraphicsD3D11.h │ │ ├── IUnityGraphicsD3D12.h │ │ ├── IUnityGraphicsD3D9.h │ │ ├── IUnityGraphicsMetal.h │ │ └── IUnityInterface.h ├── GraphicsInterface.vcxproj ├── GraphicsInterface.vcxproj.filters ├── GraphicsInterface │ ├── GraphicsInterface.cpp │ ├── GraphicsInterface.h │ ├── GraphicsInterfaceD3D11.cpp │ ├── GraphicsInterfaceD3D12.cpp │ ├── GraphicsInterfaceD3D9.cpp │ ├── GraphicsInterfaceOpenGL.cpp │ ├── GraphicsInterfaceVulkan.cpp │ ├── giInternal.cpp │ ├── giInternal.h │ ├── giUnityPluginImpl.cpp │ ├── giUnityPluginImpl.h │ ├── pch.cpp │ └── pch.h ├── MeshUtils.vcxproj ├── MeshUtils.vcxproj.filters ├── MeshUtils │ ├── Allocator.cpp │ ├── Allocator.h │ ├── HandleBasedVector.h │ ├── IntrusiveArray.h │ ├── Math.cpp │ ├── Math.h │ ├── MeshRefiner.cpp │ ├── MeshRefiner.h │ ├── MeshUtils.cpp │ ├── MeshUtils.h │ ├── MeshUtilsCore.ispc │ ├── RawVector.h │ ├── SIMD.cpp │ ├── SIMD.h │ ├── Vertex.cpp │ ├── Vertex.h │ ├── mikktspace.c │ ├── mikktspace.h │ ├── pch.cpp │ ├── pch.h │ └── tls.h ├── Test │ ├── Cube.usda │ ├── Mesh.cpp │ ├── Mesh.h │ ├── MeshUtilsTest.cpp │ ├── usdiTestExport.cpp │ ├── usdiTestExportHighMesh.cpp │ ├── usdiTestExportSkinnedMesh.cpp │ ├── usdiTestImport.cpp │ ├── usdiTests.cpp │ ├── usdiTests.h │ ├── usdiTests.vcxproj │ ├── usdiTestsMain.cpp │ └── usdiTestsMain.vcxproj ├── build_bundle │ └── loader_path.rb ├── cmake │ ├── FindDoubleConversion.cmake │ ├── FindGLEW.cmake │ ├── FindOpenEXR.cmake │ ├── FindTBB.cmake │ └── FindUSD.cmake ├── setup.bat ├── setup.vcxproj ├── usdi.sln ├── usdi.vcxproj ├── usdi.vcxproj.filters ├── usdi │ ├── DllMain.cpp │ ├── UnityPlugin.cpp │ ├── etc │ │ ├── Hook.cpp │ │ ├── Hook.h │ │ ├── Mono.cpp │ │ ├── Mono.h │ │ ├── MonoWrapper.cpp │ │ ├── MonoWrapper.h │ │ ├── MonoWrapperImpl.h │ │ ├── MonoWrapper_Cache.cpp │ │ └── Platform.h │ ├── ext │ │ ├── usdiExt.cpp │ │ ├── usdiExt.h │ │ ├── usdiProgressReporter.cpp │ │ ├── usdiProgressReporter.h │ │ ├── usdiTask.cpp │ │ └── usdiTask.h │ ├── pch.cpp │ ├── pch.h │ ├── usdi.cpp │ ├── usdi.h │ ├── usdiAttribute.cpp │ ├── usdiAttribute.h │ ├── usdiCamera.cpp │ ├── usdiCamera.h │ ├── usdiConfig.h │ ├── usdiContext.cpp │ ├── usdiContext.h │ ├── usdiContext.i │ ├── usdiInternal.cpp │ ├── usdiInternal.h │ ├── usdiMesh.cpp │ ├── usdiMesh.h │ ├── usdiPoints.cpp │ ├── usdiPoints.h │ ├── usdiSchema.cpp │ ├── usdiSchema.h │ ├── usdiUtils.cpp │ ├── usdiUtils.h │ ├── usdiVectorConversion.h │ ├── usdiXform.cpp │ └── usdiXform.h ├── usdiRT.vcxproj ├── usdiRT.vcxproj.filters └── usdiRT │ ├── pch.cpp │ ├── pch.h │ ├── usdiRT.cpp │ └── usdiRT.h ├── Readme.md └── USDForUnity ├── Assets ├── StreamingAssets.meta ├── StreamingAssets │ ├── USDExamples.meta │ ├── USDExamples │ │ ├── SkinnedMesh.usda │ │ └── SkinnedMesh.usda.meta │ ├── USDForUnity.meta │ └── USDForUnity │ │ ├── License.txt │ │ ├── License.txt.meta │ │ ├── plugins_win64.meta │ │ └── plugins_win64 │ │ ├── lib.meta │ │ ├── lib │ │ ├── libar.dll.meta │ │ ├── libarch.dll.meta │ │ ├── libgf.dll.meta │ │ ├── libjs.dll.meta │ │ ├── libkind.dll.meta │ │ ├── libpcp.dll.meta │ │ ├── libplug.dll.meta │ │ ├── libsdf.dll.meta │ │ ├── libtf.dll.meta │ │ ├── libtracelite.dll.meta │ │ ├── libusd.dll.meta │ │ ├── libusdGeom.dll.meta │ │ ├── libusdHydra.dll.meta │ │ ├── libusdRi.dll.meta │ │ ├── libusdShade.dll.meta │ │ ├── libusdUI.dll.meta │ │ ├── libusdUtils.dll.meta │ │ ├── libvt.dll.meta │ │ ├── libwork.dll.meta │ │ └── usdAbc.dll.meta │ │ ├── plugInfo.json │ │ ├── plugInfo.json.meta │ │ ├── sdf.meta │ │ ├── sdf │ │ ├── resources.meta │ │ └── resources │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usd.meta │ │ ├── usd │ │ ├── resources.meta │ │ └── resources │ │ │ ├── generatedSchema.usda │ │ │ ├── generatedSchema.usda.meta │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdAbc.meta │ │ ├── usdAbc │ │ ├── resources.meta │ │ └── resources │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdGeom.meta │ │ ├── usdGeom │ │ ├── resources.meta │ │ └── resources │ │ │ ├── generatedSchema.usda │ │ │ ├── generatedSchema.usda.meta │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdHydra.meta │ │ ├── usdHydra │ │ ├── resources.meta │ │ └── resources │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdRi.meta │ │ ├── usdRi │ │ ├── resources.meta │ │ └── resources │ │ │ ├── generatedSchema.usda │ │ │ ├── generatedSchema.usda.meta │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdShade.meta │ │ ├── usdShade │ │ ├── resources.meta │ │ └── resources │ │ │ ├── generatedSchema.usda │ │ │ ├── generatedSchema.usda.meta │ │ │ ├── plugInfo.json │ │ │ └── plugInfo.json.meta │ │ ├── usdUI.meta │ │ └── usdUI │ │ ├── resources.meta │ │ └── resources │ │ ├── generatedSchema.usda │ │ ├── generatedSchema.usda.meta │ │ ├── plugInfo.json │ │ └── plugInfo.json.meta ├── USDExamples.meta ├── USDExamples │ ├── Animation.meta │ ├── Animation │ │ ├── Cube.controller │ │ ├── Cube.controller.meta │ │ ├── Test.anim │ │ └── Test.anim.meta │ ├── Editor.meta │ ├── Editor │ │ ├── USDTestMenu.cs │ │ └── USDTestMenu.cs.meta │ ├── ExportCloth.unity │ ├── ExportCloth.unity.meta │ ├── ExportTransform.unity │ ├── ExportTransform.unity.meta │ ├── ImportSkinnedMesh.unity │ ├── ImportSkinnedMesh.unity.meta │ └── SkinnedMesh.usda ├── UTJ.meta ├── UTJ │ ├── USDForUnity.meta │ └── USDForUnity │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── Misc │ │ │ ├── BoolDrawer.cs │ │ │ ├── BoolDrawer.cs.meta │ │ │ ├── DataPathDrawer.cs │ │ │ └── DataPathDrawer.cs.meta │ │ ├── SerializableObjHelper.cs │ │ ├── TimeUnitDrawer.cs │ │ ├── TimeUnitDrawer.cs.meta │ │ ├── USDImporter.cs │ │ ├── USDImporterInspector.cs │ │ ├── UsdAssetConverter.cs │ │ ├── UsdAssetConverter.cs.meta │ │ ├── UsdCameraEditor.cs │ │ ├── UsdCameraEditor.cs.meta │ │ ├── UsdComponentEditor.cs │ │ ├── UsdComponentEditor.cs.meta │ │ ├── UsdExporterEditor.cs │ │ ├── UsdExporterEditor.cs.meta │ │ ├── UsdImportWindow.cs │ │ ├── UsdImportWindow.cs.meta │ │ ├── UsdMenu.cs │ │ ├── UsdMenu.cs.meta │ │ ├── UsdMeshEditor.cs │ │ ├── UsdMeshEditor.cs.meta │ │ ├── UsdPointsEditor.cs │ │ ├── UsdPointsEditor.cs.meta │ │ ├── UsdPrecomputeNormalsWindow.cs │ │ ├── UsdPrecomputeNormalsWindow.cs.meta │ │ ├── UsdStreamEditor.cs │ │ ├── UsdStreamEditor.cs.meta │ │ ├── UsdXformEditor.cs │ │ └── UsdXformEditor.cs.meta │ │ ├── Plugins.meta │ │ ├── Plugins │ │ ├── x86_64.meta │ │ └── x86_64 │ │ │ ├── python27.dll.meta │ │ │ ├── tbb.dll.meta │ │ │ ├── tbbmalloc.dll.meta │ │ │ ├── usdi.bundle.meta │ │ │ ├── usdi.bundle │ │ │ ├── Contents.meta │ │ │ └── Contents │ │ │ │ ├── Info.plist │ │ │ │ ├── Info.plist.meta │ │ │ │ ├── MacOS.meta │ │ │ │ ├── MacOS │ │ │ │ ├── libAlembic.dylib.meta │ │ │ │ ├── libGLEW.2.0.0.dylib.meta │ │ │ │ ├── libHalf.12.dylib.meta │ │ │ │ ├── libIex-2_2.12.dylib.meta │ │ │ │ ├── libIexMath-2_2.12.dylib.meta │ │ │ │ ├── libIlmThread-2_2.12.dylib.meta │ │ │ │ ├── libImath-2_2.12.dylib.meta │ │ │ │ ├── libar.dylib.meta │ │ │ │ ├── libarch.dylib.meta │ │ │ │ ├── libboost_filesystem-mt.dylib.meta │ │ │ │ ├── libboost_iostreams-mt.dylib.meta │ │ │ │ ├── libboost_python-mt.dylib.meta │ │ │ │ ├── libboost_regex-mt.dylib.meta │ │ │ │ ├── libboost_system-mt.dylib.meta │ │ │ │ ├── libgf.dylib.meta │ │ │ │ ├── libhdf5.10.dylib.meta │ │ │ │ ├── libhdf5_hl.10.dylib.meta │ │ │ │ ├── libjs.dylib.meta │ │ │ │ ├── libkind.dylib.meta │ │ │ │ ├── libpcp.dylib.meta │ │ │ │ ├── libplug.dylib.meta │ │ │ │ ├── libsdf.dylib.meta │ │ │ │ ├── libsz.2.0.0.dylib.meta │ │ │ │ ├── libtbb.dylib.meta │ │ │ │ ├── libtbbmalloc.dylib.meta │ │ │ │ ├── libtf.dylib.meta │ │ │ │ ├── libtracelite.dylib.meta │ │ │ │ ├── libusd.dylib.meta │ │ │ │ ├── libusdGeom.dylib.meta │ │ │ │ ├── libvt.dylib.meta │ │ │ │ ├── libwork.dylib.meta │ │ │ │ └── usdAbc.dylib.meta │ │ │ │ ├── plugins_mac.meta │ │ │ │ └── plugins_mac │ │ │ │ ├── plugInfo.json │ │ │ │ ├── plugInfo.json.meta │ │ │ │ ├── sdf.meta │ │ │ │ ├── sdf │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usd.meta │ │ │ │ ├── usd │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── generatedSchema.usda │ │ │ │ │ ├── generatedSchema.usda.meta │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdAbc.meta │ │ │ │ ├── usdAbc │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdGeom.meta │ │ │ │ ├── usdGeom │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── generatedSchema.usda │ │ │ │ │ ├── generatedSchema.usda.meta │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdHydra.meta │ │ │ │ ├── usdHydra │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdRi.meta │ │ │ │ ├── usdRi │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── generatedSchema.usda │ │ │ │ │ ├── generatedSchema.usda.meta │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdShade.meta │ │ │ │ ├── usdShade │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ │ ├── generatedSchema.usda │ │ │ │ │ ├── generatedSchema.usda.meta │ │ │ │ │ ├── plugInfo.json │ │ │ │ │ └── plugInfo.json.meta │ │ │ │ ├── usdUI.meta │ │ │ │ └── usdUI │ │ │ │ ├── resources.meta │ │ │ │ └── resources │ │ │ │ ├── generatedSchema.usda │ │ │ │ ├── generatedSchema.usda.meta │ │ │ │ ├── plugInfo.json │ │ │ │ └── plugInfo.json.meta │ │ │ ├── usdi.dll.meta │ │ │ ├── usdiRT.bundle.meta │ │ │ ├── usdiRT.bundle │ │ │ ├── Contents.meta │ │ │ └── Contents │ │ │ │ ├── Info.plist │ │ │ │ ├── Info.plist.meta │ │ │ │ └── MacOS.meta │ │ │ └── usdiRT.dll.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ ├── USDExporter.prefab │ │ └── USDExporter.prefab.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ ├── Misc │ │ ├── Bool.cs │ │ ├── Bool.cs.meta │ │ ├── DataPath.cs │ │ └── DataPath.cs.meta │ │ ├── TimeUnit.cs │ │ ├── TimeUnit.cs.meta │ │ ├── UsdCamera.cs │ │ ├── UsdCamera.cs.meta │ │ ├── UsdCameraComponent.cs │ │ ├── UsdCameraComponent.cs.meta │ │ ├── UsdComponent.cs │ │ ├── UsdComponent.cs.meta │ │ ├── UsdCustomComponentCapturer.cs │ │ ├── UsdCustomComponentCapturer.cs.meta │ │ ├── UsdExporter.cs │ │ ├── UsdExporter.cs.meta │ │ ├── UsdMesh.cs │ │ ├── UsdMesh.cs.meta │ │ ├── UsdMeshComponent.cs │ │ ├── UsdMeshComponent.cs.meta │ │ ├── UsdMeshExportSettings.cs │ │ ├── UsdMeshExportSettings.cs.meta │ │ ├── UsdParticleExportSettings.cs │ │ ├── UsdParticleExportSettings.cs.meta │ │ ├── UsdPoints.cs │ │ ├── UsdPoints.cs.meta │ │ ├── UsdPointsComponent.cs │ │ ├── UsdPointsComponent.cs.meta │ │ ├── UsdSchema.cs │ │ ├── UsdSchema.cs.meta │ │ ├── UsdStream.cs │ │ ├── UsdStream.cs.meta │ │ ├── UsdSubmesh.cs │ │ ├── UsdSubmesh.cs.meta │ │ ├── UsdTransformExportSettings.cs │ │ ├── UsdTransformExportSettings.cs.meta │ │ ├── UsdXform.cs │ │ ├── UsdXform.cs.meta │ │ ├── UsdXformComponent.cs │ │ ├── UsdXformComponent.cs.meta │ │ ├── usdi.cs │ │ └── usdi.cs.meta ├── usdiPackaging.cs └── usdiPackaging.cs.meta └── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NavMeshProjectSettings.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.obj 3 | *.pch 4 | *.lib 5 | *.exe 6 | *.exp 7 | *.ilk 8 | *.ipch 9 | *.pdb 10 | *.suo 11 | *.sdf 12 | *.opensdf 13 | *.user 14 | *.log 15 | *.tlog 16 | *.db 17 | *.opendb 18 | 19 | *.exe 20 | *.dll 21 | *.so 22 | *.dylib 23 | *.meta 24 | Makefile 25 | 26 | _out/ 27 | _tmp/ 28 | External/ 29 | Library/ 30 | Temp/ 31 | Build/ 32 | Hidden/ 33 | Hidden.meta 34 | obj/ 35 | Plugin/build_* 36 | CMakeFiles/ 37 | CMakeCache.txt 38 | USDForUnity/*.sln 39 | USDForUnity/*.csproj 40 | bin/ 41 | 42 | MeshUtilsCore.h 43 | /USDForUnity/Assets/UTJ/Plugins/x86_64/usdi.bundle/Contents/MacOS/usdi 44 | /USDForUnity/Assets/UTJ/Plugins/x86_64/usdiRT.bundle/Contents/MacOS/usdiRT 45 | USDForUnity.unitypackage 46 | 47 | -------------------------------------------------------------------------------- /Documents/CRS_unity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/Documents/CRS_unity.png -------------------------------------------------------------------------------- /Documents/CRS_usdview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/Documents/CRS_usdview.png -------------------------------------------------------------------------------- /Documents/ImportMenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/Documents/ImportMenu.png -------------------------------------------------------------------------------- /Documents/ImportSettings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/Documents/ImportSettings.png -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Unity Technologies Japan 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. 22 | -------------------------------------------------------------------------------- /Plugin/External/7z/7za.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/Plugin/External/7z/7za.exe -------------------------------------------------------------------------------- /Plugin/External/Unity/include/PluginAPI/IUnityGraphics.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | typedef enum UnityGfxRenderer 5 | { 6 | //kUnityGfxRendererOpenGL = 0, // Legacy OpenGL, removed 7 | kUnityGfxRendererD3D9 = 1, // Direct3D 9 8 | kUnityGfxRendererD3D11 = 2, // Direct3D 11 9 | kUnityGfxRendererGCM = 3, // PlayStation 3 10 | kUnityGfxRendererNull = 4, // "null" device (used in batch mode) 11 | kUnityGfxRendererOpenGLES20 = 8, // OpenGL ES 2.0 12 | kUnityGfxRendererOpenGLES30 = 11, // OpenGL ES 3.0 13 | kUnityGfxRendererGXM = 12, // PlayStation Vita 14 | kUnityGfxRendererPS4 = 13, // PlayStation 4 15 | kUnityGfxRendererXboxOne = 14, // Xbox One 16 | kUnityGfxRendererMetal = 16, // iOS Metal 17 | kUnityGfxRendererOpenGLCore = 17, // OpenGL core 18 | kUnityGfxRendererD3D12 = 18, // Direct3D 12 19 | kUnityGfxRendererVulkan = 21, // Vulkan 20 | } UnityGfxRenderer; 21 | 22 | typedef enum UnityGfxDeviceEventType 23 | { 24 | kUnityGfxDeviceEventInitialize = 0, 25 | kUnityGfxDeviceEventShutdown = 1, 26 | kUnityGfxDeviceEventBeforeReset = 2, 27 | kUnityGfxDeviceEventAfterReset = 3, 28 | } UnityGfxDeviceEventType; 29 | 30 | typedef void (UNITY_INTERFACE_API * IUnityGraphicsDeviceEventCallback)(UnityGfxDeviceEventType eventType); 31 | 32 | // Should only be used on the rendering thread unless noted otherwise. 33 | UNITY_DECLARE_INTERFACE(IUnityGraphics) 34 | { 35 | UnityGfxRenderer (UNITY_INTERFACE_API * GetRenderer)(); // Thread safe 36 | 37 | // This callback will be called when graphics device is created, destroyed, reset, etc. 38 | // It is possible to miss the kUnityGfxDeviceEventInitialize event in case plugin is loaded at a later time, 39 | // when the graphics device is already created. 40 | void (UNITY_INTERFACE_API * RegisterDeviceEventCallback)(IUnityGraphicsDeviceEventCallback callback); 41 | void (UNITY_INTERFACE_API * UnregisterDeviceEventCallback)(IUnityGraphicsDeviceEventCallback callback); 42 | }; 43 | UNITY_REGISTER_INTERFACE_GUID(0x7CBA0A9CA4DDB544ULL,0x8C5AD4926EB17B11ULL,IUnityGraphics) 44 | 45 | 46 | 47 | // Certain Unity APIs (GL.IssuePluginEvent, CommandBuffer.IssuePluginEvent) can callback into native plugins. 48 | // Provide them with an address to a function of this signature. 49 | typedef void (UNITY_INTERFACE_API * UnityRenderingEvent)(int eventId); 50 | -------------------------------------------------------------------------------- /Plugin/External/Unity/include/PluginAPI/IUnityGraphicsD3D11.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | struct RenderSurfaceBase; 5 | typedef struct RenderSurfaceBase* UnityRenderBuffer; 6 | 7 | // Should only be used on the rendering thread unless noted otherwise. 8 | UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D11) 9 | { 10 | ID3D11Device* (UNITY_INTERFACE_API * GetDevice)(); 11 | 12 | ID3D11Resource* (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer buffer); 13 | }; 14 | UNITY_REGISTER_INTERFACE_GUID(0xAAB37EF87A87D748ULL,0xBF76967F07EFB177ULL,IUnityGraphicsD3D11) 15 | -------------------------------------------------------------------------------- /Plugin/External/Unity/include/PluginAPI/IUnityGraphicsD3D9.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | // Should only be used on the rendering thread unless noted otherwise. 5 | UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D9) 6 | { 7 | IDirect3D9* (UNITY_INTERFACE_API * GetD3D)(); 8 | IDirect3DDevice9* (UNITY_INTERFACE_API * GetDevice)(); 9 | }; 10 | UNITY_REGISTER_INTERFACE_GUID(0xE90746A523D53C4CULL,0xAC825B19B6F82AC3ULL,IUnityGraphicsD3D9) 11 | -------------------------------------------------------------------------------- /Plugin/External/Unity/include/PluginAPI/IUnityGraphicsMetal.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | #ifndef __OBJC__ 5 | #error metal plugin is objc code. 6 | #endif 7 | #ifndef __clang__ 8 | #error only clang compiler is supported. 9 | #endif 10 | 11 | @class NSBundle; 12 | @protocol MTLDevice; 13 | @protocol MTLCommandBuffer; 14 | @protocol MTLCommandEncoder; 15 | @protocol MTLTexture; 16 | 17 | struct RenderSurfaceBase; 18 | typedef struct RenderSurfaceBase* UnityRenderBuffer; 19 | 20 | // Should only be used on the rendering thread unless noted otherwise. 21 | UNITY_DECLARE_INTERFACE(IUnityGraphicsMetal) 22 | { 23 | NSBundle* (UNITY_INTERFACE_API * MetalBundle)(); 24 | id (UNITY_INTERFACE_API * MetalDevice)(); 25 | 26 | id (UNITY_INTERFACE_API * CurrentCommandBuffer)(); 27 | 28 | // for custom rendering support there are two scenarios: 29 | // you want to use current in-flight MTLCommandEncoder (NB: it might be nil) 30 | id (UNITY_INTERFACE_API * CurrentCommandEncoder)(); 31 | // or you might want to create your own encoder. 32 | // In that case you should end unity's encoder before creating your own and end yours before returning control to unity 33 | void (UNITY_INTERFACE_API * EndCurrentCommandEncoder)(); 34 | 35 | // converting trampoline UnityRenderBufferHandle into native RenderBuffer 36 | UnityRenderBuffer (UNITY_INTERFACE_API * RenderBufferFromHandle)(void* bufferHandle); 37 | 38 | // access to RenderBuffer's texure 39 | // NB: you pass here *native* RenderBuffer, acquired by calling (C#) RenderBuffer.GetNativeRenderBufferPtr 40 | // AAResolvedTextureFromRenderBuffer will return nil in case of non-AA RenderBuffer or if called for depth RenderBuffer 41 | // StencilTextureFromRenderBuffer will return nil in case of no-stencil RenderBuffer or if called for color RenderBuffer 42 | id (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer buffer); 43 | id (UNITY_INTERFACE_API * AAResolvedTextureFromRenderBuffer)(UnityRenderBuffer buffer); 44 | id (UNITY_INTERFACE_API * StencilTextureFromRenderBuffer)(UnityRenderBuffer buffer); 45 | 46 | }; 47 | UNITY_REGISTER_INTERFACE_GUID(0x992C8EAEA95811E5ULL,0x9A62C4B5B9876117ULL,IUnityGraphicsMetal) 48 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {43f41a03-e172-47f9-a63f-afa377c6b7c1} 6 | 7 | 8 | 9 | 10 | GraphicsInterface 11 | 12 | 13 | GraphicsInterface 14 | 15 | 16 | GraphicsInterface 17 | 18 | 19 | GraphicsInterface 20 | 21 | 22 | 23 | 24 | GraphicsInterface 25 | 26 | 27 | GraphicsInterface 28 | 29 | 30 | GraphicsInterface 31 | 32 | 33 | GraphicsInterface 34 | 35 | 36 | GraphicsInterface 37 | 38 | 39 | GraphicsInterface 40 | 41 | 42 | GraphicsInterface 43 | 44 | 45 | GraphicsInterface 46 | 47 | 48 | GraphicsInterface 49 | 50 | 51 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/giInternal.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "giInternal.h" 3 | 4 | namespace gi { 5 | 6 | #ifdef _WIN32 7 | DXGI_FORMAT GetDXGIFormat(TextureFormat fmt) 8 | { 9 | switch (fmt) 10 | { 11 | case TextureFormat::Ru8: return DXGI_FORMAT_R8_UNORM; 12 | case TextureFormat::RGu8: return DXGI_FORMAT_R8G8_UNORM; 13 | case TextureFormat::RGBAu8: return DXGI_FORMAT_R8G8B8A8_UNORM; 14 | 15 | case TextureFormat::Rf16: return DXGI_FORMAT_R16_FLOAT; 16 | case TextureFormat::RGf16: return DXGI_FORMAT_R16G16_FLOAT; 17 | case TextureFormat::RGBAf16: return DXGI_FORMAT_R16G16B16A16_FLOAT; 18 | 19 | case TextureFormat::Ri16: return DXGI_FORMAT_R16_SNORM; 20 | case TextureFormat::RGi16: return DXGI_FORMAT_R16G16_SNORM; 21 | case TextureFormat::RGBAi16: return DXGI_FORMAT_R16G16B16A16_SNORM; 22 | 23 | case TextureFormat::Rf32: return DXGI_FORMAT_R32_FLOAT; 24 | case TextureFormat::RGf32: return DXGI_FORMAT_R32G32_FLOAT; 25 | case TextureFormat::RGBAf32: return DXGI_FORMAT_R32G32B32A32_FLOAT; 26 | 27 | case TextureFormat::Ri32: return DXGI_FORMAT_R32_SINT; 28 | case TextureFormat::RGi32: return DXGI_FORMAT_R32G32_SINT; 29 | case TextureFormat::RGBAi32: return DXGI_FORMAT_R32G32B32A32_SINT; 30 | } 31 | return DXGI_FORMAT_UNKNOWN; 32 | } 33 | 34 | Result TranslateReturnCode(HRESULT hr) 35 | { 36 | switch (hr) { 37 | case S_OK: return Result::OK; 38 | case E_OUTOFMEMORY: return Result::OutOfMemory; 39 | case E_INVALIDARG: return Result::InvalidParameter; 40 | } 41 | return Result::Unknown; 42 | } 43 | #endif 44 | 45 | } // namespace gi 46 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/giInternal.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef gdLog 4 | #define giLog(...) 5 | #define giLogError(...) 6 | #endif 7 | 8 | #ifdef _WIN32 9 | #define giSupportD3D9 10 | #define giSupportD3D11 11 | #define giSupportD3D12 12 | #define giSupportOpenGL 13 | //#define giSupportVulkan 14 | #else 15 | #define giSupportOpenGL 16 | #endif 17 | 18 | #include "GraphicsInterface.h" 19 | 20 | namespace gi { 21 | 22 | class GraphicsInterface; 23 | GraphicsInterface* CreateGraphicsInterfaceD3D9(void *device); 24 | GraphicsInterface* CreateGraphicsInterfaceD3D11(void *device); 25 | GraphicsInterface* CreateGraphicsInterfaceD3D12(void *device); 26 | GraphicsInterface* CreateGraphicsInterfaceOpenGL(void *device); 27 | GraphicsInterface* CreateGraphicsInterfaceVulkan(void *device); 28 | 29 | 30 | // i.e: 31 | // roundup<16>(31) : 32 32 | // roundup<16>(32) : 32 33 | // roundup<16>(33) : 48 34 | template 35 | inline IntType roundup(IntType v) 36 | { 37 | return v + (N - v % N); 38 | } 39 | 40 | // i.e: 41 | // ceildiv(31, 16) : 2 42 | // ceildiv(32, 16) : 2 43 | // ceildiv(33, 16) : 3 44 | template 45 | inline IntType ceildiv(IntType a, IntType b) 46 | { 47 | return a / b + (a%b == 0 ? 0 : 1); 48 | } 49 | 50 | static inline bool operator&(ResourceFlags a, ResourceFlags b) { return ((int)a & (int)b) != 0; } 51 | 52 | 53 | inline void CopyRegion(void *dst, int dst_pitch, const void *src, int src_pitch, int num_rows) 54 | { 55 | if (dst_pitch == src_pitch) { 56 | memcpy(dst, src, dst_pitch * num_rows); 57 | } 58 | else { 59 | auto *tdst = (char*)dst; 60 | auto *tsrc = (const char*)src; 61 | int copy_size = std::min(dst_pitch, src_pitch); 62 | for (int ri = 0; ri < num_rows; ++ri) { 63 | memcpy(tdst, tsrc, copy_size); 64 | tdst += dst_pitch; 65 | tsrc += src_pitch; 66 | } 67 | } 68 | } 69 | 70 | #ifdef _WIN32 71 | DXGI_FORMAT GetDXGIFormat(TextureFormat fmt); 72 | Result TranslateReturnCode(HRESULT hr); 73 | #endif 74 | 75 | } // namespace gi 76 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/giUnityPluginImpl.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "giInternal.h" 3 | #include "giUnityPluginImpl.h" 4 | 5 | #include "PluginAPI/IUnityGraphics.h" 6 | #ifdef giSupportD3D9 7 | #include 8 | #include "PluginAPI/IUnityGraphicsD3D9.h" 9 | #endif 10 | #ifdef giSupportD3D11 11 | #include 12 | #include "PluginAPI/IUnityGraphicsD3D11.h" 13 | #endif 14 | #ifdef giSupportD3D12 15 | #include 16 | #include "PluginAPI/IUnityGraphicsD3D12.h" 17 | #endif 18 | 19 | namespace gi { 20 | 21 | static IUnityInterfaces* g_unity_interface; 22 | 23 | static void UNITY_INTERFACE_API UnityOnGraphicsInterfaceEvent(UnityGfxDeviceEventType eventType) 24 | { 25 | if (eventType == kUnityGfxDeviceEventInitialize) { 26 | auto unity_gfx = g_unity_interface->Get(); 27 | auto api = unity_gfx->GetRenderer(); 28 | 29 | #ifdef giSupportD3D9 30 | if (api == kUnityGfxRendererD3D9) { 31 | CreateGraphicsInterface(DeviceType::D3D9, g_unity_interface->Get()->GetDevice()); 32 | } 33 | #endif 34 | #ifdef giSupportD3D11 35 | if (api == kUnityGfxRendererD3D11) { 36 | CreateGraphicsInterface(DeviceType::D3D11, g_unity_interface->Get()->GetDevice()); 37 | } 38 | #endif 39 | #ifdef giSupportD3D12 40 | if (api == kUnityGfxRendererD3D12) { 41 | CreateGraphicsInterface(DeviceType::D3D12, g_unity_interface->Get()->GetDevice()); 42 | } 43 | #endif 44 | #ifdef giSupportOpenGL 45 | if (api == kUnityGfxRendererOpenGLCore || 46 | api == kUnityGfxRendererOpenGLES20 || 47 | api == kUnityGfxRendererOpenGLES30) 48 | { 49 | CreateGraphicsInterface(DeviceType::OpenGL, nullptr); 50 | } 51 | #endif 52 | #ifdef giSupportVulkan 53 | if (api == kUnityGfxRendererVulkan) // todo 54 | { 55 | CreateGraphicsInterface(DeviceType::Vulkan, nullptr); 56 | } 57 | #endif 58 | } 59 | else if (eventType == kUnityGfxDeviceEventShutdown) { 60 | ReleaseGraphicsInterface(); 61 | } 62 | } 63 | 64 | 65 | void UnityPluginLoad(IUnityInterfaces* unityInterfaces) 66 | { 67 | g_unity_interface = unityInterfaces; 68 | g_unity_interface->Get()->RegisterDeviceEventCallback(UnityOnGraphicsInterfaceEvent); 69 | UnityOnGraphicsInterfaceEvent(kUnityGfxDeviceEventInitialize); 70 | } 71 | 72 | void UnityPluginUnload() 73 | { 74 | auto unity_gfx = g_unity_interface->Get(); 75 | unity_gfx->UnregisterDeviceEventCallback(UnityOnGraphicsInterfaceEvent); 76 | } 77 | 78 | } // namespace gi 79 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/giUnityPluginImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct IUnityInterfaces; 4 | 5 | namespace gi { 6 | void UnityPluginLoad(IUnityInterfaces* unityInterfaces); 7 | void UnityPluginUnload(); 8 | } // namespace gi 9 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /Plugin/GraphicsInterface/pch.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #ifdef _WIN32 14 | #define GLEW_STATIC 15 | #define VK_USE_PLATFORM_WIN32_KHR 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #endif 23 | -------------------------------------------------------------------------------- /Plugin/MeshUtils.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | MeshUtils 6 | 7 | 8 | MeshUtils 9 | 10 | 11 | MeshUtils 12 | 13 | 14 | MeshUtils 15 | 16 | 17 | MeshUtils 18 | 19 | 20 | MeshUtils 21 | 22 | 23 | MeshUtils 24 | 25 | 26 | MeshUtils 27 | 28 | 29 | MeshUtils 30 | 31 | 32 | MeshUtils 33 | 34 | 35 | MeshUtils 36 | 37 | 38 | MeshUtils 39 | 40 | 41 | 42 | 43 | {7c7e8a56-7f18-4fed-967a-dd734cc4db8a} 44 | 45 | 46 | 47 | 48 | MeshUtils 49 | 50 | 51 | MeshUtils 52 | 53 | 54 | MeshUtils 55 | 56 | 57 | MeshUtils 58 | 59 | 60 | MeshUtils 61 | 62 | 63 | MeshUtils 64 | 65 | 66 | MeshUtils 67 | 68 | 69 | MeshUtils 70 | 71 | 72 | 73 | 74 | MeshUtils 75 | 76 | 77 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/Allocator.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Allocator.h" 3 | 4 | void* AlignedMalloc(size_t size, size_t alignment) 5 | { 6 | size_t mask = alignment - 1; 7 | size = (size + mask) & (~mask); 8 | #ifdef __APPLE__ 9 | void *ret; 10 | posix_memalign(&ret, alignment, size); 11 | return ret; 12 | #else 13 | return _mm_malloc(size, alignment); 14 | #endif 15 | } 16 | 17 | void AlignedFree(void *addr) 18 | { 19 | #ifdef __APPLE__ 20 | free(addr); 21 | #else 22 | _mm_free(addr); 23 | #endif 24 | } 25 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/Allocator.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void* AlignedMalloc(size_t size, size_t alignment); 4 | void AlignedFree(void *addr); 5 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/IntrusiveArray.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | template 4 | class IntrusiveArray 5 | { 6 | public: 7 | typedef T value_type; 8 | typedef T& reference; 9 | typedef const T& const_reference; 10 | typedef T* pointer; 11 | typedef const T* const_pointer; 12 | typedef pointer iterator; 13 | typedef const_pointer const_iterator; 14 | 15 | IntrusiveArray() {} 16 | IntrusiveArray(const T *d, size_t s) : m_data(const_cast(d)), m_size(s) {} 17 | IntrusiveArray(const IntrusiveArray& v) : m_data(const_cast(v.m_data)), m_size(v.m_size) {} 18 | template 19 | IntrusiveArray(const Container& v) : m_data(const_cast(v.data())), m_size(v.size()) {} 20 | IntrusiveArray& operator=(const IntrusiveArray& v) { m_data = const_cast(v.m_data); m_size = v.m_size; return *this; } 21 | 22 | void reset(T *d, size_t s) 23 | { 24 | m_data = d; 25 | m_size = s; 26 | } 27 | 28 | bool empty() const { return m_size == 0; } 29 | size_t size() const { return m_size; } 30 | 31 | T* data() { return m_data; } 32 | const T* data() const { return m_data; } 33 | 34 | T& operator[](size_t i) { return m_data[i]; } 35 | const T& operator[](size_t i) const { return m_data[i]; } 36 | 37 | iterator begin() { return m_data; } 38 | const_iterator begin() const { return m_data; } 39 | iterator end() { return m_data + m_size; } 40 | const_iterator end() const { return m_data + m_size; } 41 | 42 | void zeroclear() 43 | { 44 | memset(m_data, 0, sizeof(T)*m_size); 45 | } 46 | void copy_to(pointer dst) 47 | { 48 | memcpy(dst, m_data, sizeof(value_type) * m_size); 49 | } 50 | void copy_to(pointer dst, size_t num_elements) 51 | { 52 | memcpy(dst, m_data, sizeof(value_type) * num_elements); 53 | } 54 | 55 | private: 56 | T *m_data = nullptr; 57 | size_t m_size = 0; 58 | }; 59 | 60 | template using IArray = IntrusiveArray; 61 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/Math.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Math.h" 3 | 4 | #ifdef muMath_AddNamespace 5 | namespace mu { 6 | #endif 7 | 8 | const float PI = 3.14159265358979323846264338327950288419716939937510f; 9 | const float Deg2Rad = PI / 180.0f; 10 | const float Rad2Deg = 1.0f / (PI / 180.0f); 11 | 12 | #ifdef muMath_AddNamespace 13 | } 14 | #endif 15 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/pch.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #ifdef muEnableHalf 8 | #include "half.h" 9 | #endif // muEnableHalf 10 | -------------------------------------------------------------------------------- /Plugin/MeshUtils/tls.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #if _WIN32 6 | #define NOMINMAX 7 | #include 8 | #else 9 | #include 10 | #endif 11 | 12 | 13 | class tls_base 14 | { 15 | public: 16 | #if _WIN32 17 | using tls_key_t = DWORD; 18 | #if WindowsStoreApp 19 | tls_base() { m_key = ::FlsAlloc(nullptr); } 20 | ~tls_base() { ::FlsFree(m_key); } 21 | void set_value(void *value) { ::FlsSetValue(m_key, value); } 22 | void* get_value() { return (void *)::FlsGetValue(m_key); } 23 | #else 24 | tls_base() { m_key = ::TlsAlloc(); } 25 | ~tls_base() { ::TlsFree(m_key); } 26 | void set_value(void *value) { ::TlsSetValue(m_key, value); } 27 | void* get_value() const { return (void *)::TlsGetValue(m_key); } 28 | #endif 29 | #else 30 | using tls_key_t = pthread_key_t; 31 | tls_base() { pthread_key_create(&m_key, nullptr); } 32 | ~tls_base() { pthread_key_delete(m_key); } 33 | void set_value(void *value) { pthread_setspecific(m_key, value); } 34 | void* get_value() const { return pthread_getspecific(m_key); } 35 | #endif 36 | private: 37 | tls_key_t m_key; 38 | }; 39 | 40 | template 41 | class tls : private tls_base 42 | { 43 | public: 44 | tls() {} 45 | 46 | ~tls() 47 | { 48 | std::unique_lock lock(m_mutex); 49 | for (auto p : m_locals) { delete p; } 50 | m_locals.clear(); 51 | } 52 | 53 | T& local() 54 | { 55 | return local([](T&) {}); 56 | } 57 | 58 | template 59 | T& local(const OnFirst& on_first) 60 | { 61 | void *value = get_value(); 62 | if (value == nullptr) { 63 | T *v = new T(); 64 | set_value(v); 65 | value = v; 66 | 67 | { 68 | std::unique_lock lock(m_mutex); 69 | m_locals.push_back(v); 70 | } 71 | on_first(*v); 72 | } 73 | return *(T*)value; 74 | } 75 | 76 | template 77 | void each(const Body& body) 78 | { 79 | std::unique_lock lock(m_mutex); 80 | for (auto p : m_locals) { body(*p); } 81 | } 82 | 83 | protected: 84 | std::mutex m_mutex; 85 | std::vector m_locals; 86 | }; 87 | -------------------------------------------------------------------------------- /Plugin/Test/Cube.usda: -------------------------------------------------------------------------------- 1 | #usda 1.0 2 | 3 | def Mesh "pCube1" 4 | { 5 | float3[] extent = [(-0.5, -0.5, -0.5), (0.5, 0.5, 0.5)] 6 | int[] faceVertexCounts = [4, 4, 4, 4, 4, 4] 7 | int[] faceVertexIndices = [0, 1, 3, 2, 2, 3, 5, 4, 4, 5, 7, 6, 6, 7, 1, 0, 1, 7, 5, 3, 6, 0, 2, 4] 8 | token interpolateBoundary = "edgeAndCorner" 9 | uniform token orientation = "rightHanded" 10 | float3[] points = [(-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (-0.5, 0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5)] 11 | string primvars:__handleid = "${user:ModelInstance}_pCube1" ( 12 | interpolation = "constant" 13 | ) 14 | color3f[] primvars:displayColor = [(0.217638, 0.217638, 0.217638)] 15 | float3[] primvars:ModelBuildRefPose = [(-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (-0.5, 0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5)] ( 16 | interpolation = "vertex" 17 | ) 18 | float[] primvars:ptexFaceIndex = [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5] ( 19 | interpolation = "faceVarying" 20 | ) 21 | int primvars:ptexFaceOffset = 480 ( 22 | interpolation = "constant" 23 | ) 24 | float[] primvars:u_map1 = [0.375, 0.625, 0.625, 0.375, 0.375, 0.625, 0.625, 0.375, 0.375, 0.625, 0.625, 0.375, 0.375, 0.625, 0.625, 0.375, 0.625, 0.875, 0.875, 0.625, 0.125, 0.375, 0.375, 0.125] ( 25 | interpolation = "faceVarying" 26 | ) 27 | float[] primvars:v_map1 = [0, 0, 0.25, 0.25, 0.25, 0.25, 0.5, 0.5, 0.5, 0.5, 0.75, 0.75, 0.75, 0.75, 1, 1, 0, 0, 0.25, 0.25, 0, 0, 0.25, 0.25] ( 28 | interpolation = "faceVarying" 29 | ) 30 | } 31 | -------------------------------------------------------------------------------- /Plugin/Test/Mesh.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #define usdiOverrideFloat4 5 | #include "MeshUtils//MeshUtils.h" 6 | namespace usdi { 7 | using namespace mu; 8 | } 9 | #include "usdi/usdi.h" 10 | using usdi::float2; 11 | using usdi::float3; 12 | using usdi::float4; 13 | using usdi::quatf; 14 | using usdi::float4x4; 15 | 16 | #define DegToRad (3.1415926535897932384626433832795f / 180.0f) 17 | 18 | void GenerateOffsets(std::vector& dst, const std::vector& counts); 19 | 20 | void GenerateWaveMesh( 21 | std::vector& counts, 22 | std::vector& indices, 23 | std::vector &points, 24 | std::vector &uv, 25 | float size, float height, 26 | const int resolution, 27 | float angle); 28 | 29 | void GenerateCylinderMesh( 30 | std::vector& counts, 31 | std::vector& indices, 32 | std::vector &points, 33 | std::vector &uv, 34 | float radius, float height, 35 | int cseg, int hseg); 36 | 37 | void GenerateIcoSphereMesh( 38 | std::vector& counts, 39 | std::vector& indices, 40 | std::vector &points, 41 | std::vector &uv, 42 | float radius, 43 | int iteration = 3); 44 | -------------------------------------------------------------------------------- /Plugin/Test/usdiTests.cpp: -------------------------------------------------------------------------------- 1 | #define testsImpl 2 | #include "usdiTests.h" 3 | 4 | void MeshUtilsTest(); 5 | void TestExport(const char *filename); 6 | void TestExportHighMesh(const char *filename, int frame_count); 7 | void TestExportSkinnedMesh(const char *filename, int cseg, int hseg); 8 | void TestExportReference(const char *filename, const char *flatten); 9 | bool TestImport(const char *path); 10 | 11 | extern "C" { 12 | 13 | testsAPI void TestMain(int argc, char *argv[]) 14 | { 15 | MeshUtilsTest(); 16 | TestExport("TestExport.usda"); 17 | TestExport("TestExport.usdc"); 18 | TestExportHighMesh("HighMesh.usda", 1); 19 | TestExportHighMesh("HighMesh.usdc", 180); 20 | TestExportSkinnedMesh("SkinnedMesh.usda", 6, 5); 21 | TestExportSkinnedMesh("SkinnedMesh.usdc", 32, 128); 22 | TestExportSkinnedMesh("SkinnedHighMesh.usdc", 128, 512); 23 | TestExportReference("TestReference.usda", "Flatten.usda"); 24 | TestImport("TestExport.usda"); 25 | TestImport("TestReference.usda"); 26 | } 27 | 28 | } // extern "C" 29 | 30 | 31 | int main(int argc, char *argv[]) 32 | { 33 | TestMain(argc, argv); 34 | } 35 | -------------------------------------------------------------------------------- /Plugin/Test/usdiTests.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _WIN32 4 | #ifdef testsImpl 5 | #define testsAPI __declspec(dllexport) 6 | #else 7 | #define testsAPI __declspec(dllimport) 8 | #endif 9 | #else 10 | #define testsAPI 11 | #endif 12 | 13 | extern "C" { 14 | testsAPI void TestMain(int argc, char *argv[]); 15 | } // extern "C" 16 | -------------------------------------------------------------------------------- /Plugin/Test/usdiTestsMain.cpp: -------------------------------------------------------------------------------- 1 | #include "usdiTests.h" 2 | #include "usdiRT/usdiRT.h" 3 | #include 4 | #ifdef _WIN32 5 | #include 6 | #else 7 | #include 8 | #endif 9 | 10 | #ifdef _WIN32 11 | #define TestModule "usdiTests.dll" 12 | #else 13 | #define TestModule "usdiTests" 14 | #endif 15 | 16 | int main(int argc, char *argv[]) 17 | { 18 | namespace fs = 19 | #ifdef _WIN32 20 | std::experimental::filesystem; 21 | #else 22 | boost::filesystem; 23 | #endif 24 | auto cpath = fs::current_path().string(); 25 | AddDLLSearchPath((cpath + "/plugins/lib").c_str()); 26 | usdiSetPluginPath((cpath + "/plugins").c_str()); 27 | 28 | if (auto *mod_test = DLLLoad(TestModule)) { 29 | void(*TestMain)(int, char**) = nullptr; 30 | (void*&)TestMain = DLLGetSymbol(mod_test, "TestMain"); 31 | printf("TestMain = %p\n", TestMain); 32 | if (TestMain) { 33 | TestMain(argc, argv); 34 | } 35 | } 36 | else { 37 | printf("failed to load %s\n", TestModule); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Plugin/build_bundle/loader_path.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/ruby 2 | 3 | require 'fileutils' 4 | include FileUtils 5 | 6 | $search_paths = [ 7 | "/usr/local/lib", 8 | "/opt/intel/tbb/lib", 9 | "/opt/pixar/lib", 10 | ] 11 | $dst_dir = "dst" 12 | $copy_dependents = true 13 | 14 | def find_library(lib) 15 | $search_paths.each do |dir| 16 | return dir if File.exists?(dir + "/" + lib) 17 | end 18 | nil 19 | end 20 | 21 | def do_copy_dependents(dir, name) 22 | if File.exists? "#{$dst_dir}/#{name}" 23 | #puts "skipped copy #{name}" 24 | return nil 25 | end 26 | dst = "#{$dst_dir}/#{name}" 27 | #xattr -d com.apple.quarantine #{dst} 28 | cmd = "cp #{dir}/#{name} #{dst} && chmod 777 #{dst}" 29 | puts(cmd) 30 | `#{cmd}` 31 | return "#{dst}" 32 | end 33 | 34 | def process(target) 35 | next_targets = [] 36 | 37 | id = `otool -D #{target}`.split("\n")[1] 38 | 39 | list = `otool -L #{target}` 40 | list.each_line do |l| 41 | next if !l.match(/\t([^ ]+)/) 42 | l = $1 43 | next if l.match(/^\/usr\/lib/) || l.match(/^\/System\//) 44 | 45 | path = l 46 | dir = nil 47 | name = nil 48 | if l.match(/(.*)\/(.+)/) 49 | dir = $1 50 | name = $2 51 | else 52 | name = l 53 | end 54 | 55 | if $copy_dependents 56 | nt = nil 57 | if dir && dir[0] != '@' 58 | nt = do_copy_dependents(dir, name) 59 | else 60 | found = find_library(name) 61 | if !found 62 | puts("couldn't find #{name}. exit.") 63 | exit 64 | else 65 | nt = do_copy_dependents(found, name) 66 | end 67 | end 68 | next_targets << nt if nt 69 | end 70 | 71 | if dir != "@loader_path" 72 | cmd = "" 73 | if path == id 74 | cmd = "install_name_tool -id @loader_path/#{name} #{target}" 75 | else 76 | cmd = "install_name_tool -change #{path} @loader_path/#{name} #{target}" 77 | end 78 | puts cmd 79 | `#{cmd}` 80 | end 81 | end 82 | 83 | next_targets.each do |t| 84 | next if !t 85 | process(t) 86 | end 87 | end 88 | 89 | loop do 90 | a = ARGV.shift 91 | break if !a 92 | if a == "-L" 93 | $search_paths << ARGV.shift 94 | elsif a == "-d" 95 | $dst_dir = ARGV.shift 96 | mkpath($dst_dir) 97 | end 98 | process(a) 99 | end 100 | -------------------------------------------------------------------------------- /Plugin/cmake/FindDoubleConversion.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2016 Pixar 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "Apache License") 5 | # with the following modification; you may not use this file except in 6 | # compliance with the Apache License and the following modification to it: 7 | # Section 6. Trademarks. is deleted and replaced with: 8 | # 9 | # 6. Trademarks. This License does not grant permission to use the trade 10 | # names, trademarks, service marks, or product names of the Licensor 11 | # and its affiliates, except as required to comply with Section 4(c) of 12 | # the License and to reproduce the content of the NOTICE file. 13 | # 14 | # You may obtain a copy of the Apache License at 15 | # 16 | # http://www.apache.org/licenses/LICENSE-2.0 17 | # 18 | # Unless required by applicable law or agreed to in writing, software 19 | # distributed under the Apache License with the above modification is 20 | # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 21 | # KIND, either express or implied. See the Apache License for the specific 22 | # language governing permissions and limitations under the Apache License. 23 | # 24 | set(LIBRARY_PATHS 25 | /usr/lib 26 | /usr/local/lib 27 | /lib 28 | /lib64 29 | ${DOUBLE_CONVERSION_DIR}/lib 30 | ) 31 | 32 | find_path(DOUBLE_CONVERSION_INCLUDE_DIR 33 | double-conversion/double-conversion.h 34 | PATHS ${DOUBLE_CONVERSION_DIR}/include 35 | ) 36 | 37 | find_library(DOUBLE_CONVERSION_LIBRARY 38 | NAMES double-conversion 39 | PATHS ${LIBRARY_PATHS} 40 | ) 41 | 42 | mark_as_advanced(DOUBLE_CONVERSION_INCLUDE_DIR) 43 | mark_as_advanced(DOUBLE_CONVERSION_LIBRARY) 44 | 45 | find_package_handle_standard_args("double-conversion" 46 | DEFAULT_MSG 47 | DOUBLE_CONVERSION_LIBRARY 48 | DOUBLE_CONVERSION_INCLUDE_DIR 49 | ) 50 | -------------------------------------------------------------------------------- /Plugin/setup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | IF NOT EXIST "External\ispc.exe" ( 4 | IF NOT EXIST "External\External.7z" ( 5 | echo "downloading external libararies..." 6 | powershell.exe -Command "(new-object System.Net.WebClient).DownloadFile('https://github.com/unity3d-jp/USDForUnity/releases/download/USD-0.7.5/External.7z', 'External/External.7z')" 7 | ) 8 | cd External 9 | 7z\7za.exe x -aos *.7z 10 | cd .. 11 | xcopy /EYF External\python27\lib\*.dll ..\USDForUnity\Assets\UTJ\USDForUnity\Plugins\x86_64 12 | xcopy /EYF External\tbb\lib\*.dll ..\USDForUnity\Assets\UTJ\USDForUnity\Plugins\x86_64 13 | xcopy /EYF External\USD\lib\*.dll ..\USDForUnity\Assets\StreamingAssets\USDForUnity\plugins_win64\lib 14 | ) 15 | -------------------------------------------------------------------------------- /Plugin/usdi/DllMain.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | 3 | #include "usdiInternal.h" 4 | #include "etc/Hook.h" 5 | #include "etc/Mono.h" 6 | #include "etc/MonoWrapper.h" 7 | 8 | #ifdef _WIN32 9 | BOOL WINAPI DllMain(HINSTANCE /*hinstDLL*/, DWORD fdwReason, LPVOID /*lpvReserved*/) 10 | { 11 | if (fdwReason == DLL_PROCESS_ATTACH) { 12 | //#ifndef usdiEnableMonoBindingThreadGuard 13 | // redirect _mono_thread_suspend_all_other_threads to _mono_thread_abort_all_other_threads to avoid 14 | // Mono wait TBB worker threads forever... 15 | #ifdef usdiEnableMonoBinding 16 | if (g_mono_dll) { 17 | ForceWrite(_mono_thread_suspend_all_other_threads, 14, [=]() { 18 | EmitJumpInstruction(_mono_thread_suspend_all_other_threads, _mono_thread_abort_all_other_threads); 19 | }); 20 | } 21 | #endif // usdiEnableMonoBinding 22 | //#endif 23 | } 24 | return TRUE; 25 | } 26 | #elif defined(__APPLE__) 27 | 28 | void ImportMonoFunctions(); 29 | 30 | __attribute__((constructor)) 31 | void DllMain() 32 | { 33 | #ifdef usdiEnableMonoBinding 34 | ImportMonoFunctions(); 35 | if (g_mono_dll) { 36 | ForceWrite((void*)_mono_thread_suspend_all_other_threads, 14, [=]() { 37 | EmitJumpInstruction((void*)_mono_thread_suspend_all_other_threads, (void*)_mono_thread_abort_all_other_threads); 38 | }); 39 | } 40 | #endif // usdiEnableMonoBinding 41 | } 42 | 43 | #endif // _WIN32 44 | -------------------------------------------------------------------------------- /Plugin/usdi/UnityPlugin.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #ifdef usdiEnableUnityExtension 3 | #ifdef usdiEnableGraphicsInterface 4 | #include "usdiInternal.h" 5 | #include "ext/usdiExt.h" 6 | #include "GraphicsInterface/GraphicsInterface.h" 7 | #include "GraphicsInterface/giUnityPluginImpl.h" 8 | #include "PluginAPI/IUnityGraphics.h" 9 | 10 | static IUnityInterfaces* g_unity_interface; 11 | 12 | extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API 13 | UnityPluginLoad(IUnityInterfaces* unityInterfaces) 14 | { 15 | g_unity_interface = unityInterfaces; 16 | gi::UnityPluginLoad(unityInterfaces); 17 | } 18 | 19 | extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API 20 | UnityPluginUnload() 21 | { 22 | gi::UnityPluginUnload(); 23 | } 24 | 25 | static void UNITY_INTERFACE_API UnityRenderEventFunc(int /*eventID*/) 26 | { 27 | usdiVtxCmdProcess(); 28 | } 29 | 30 | extern "C" UNITY_INTERFACE_EXPORT 31 | UnityRenderingEvent usdiGetRenderEventFunc() 32 | { 33 | return UnityRenderEventFunc; 34 | } 35 | 36 | 37 | extern "C" UNITY_INTERFACE_EXPORT IUnityInterfaces* GetUnityInterface() 38 | { 39 | return g_unity_interface; 40 | } 41 | #endif // usdiEnableGraphicsInterface 42 | #endif // usdiEnableUnityExtension 43 | -------------------------------------------------------------------------------- /Plugin/usdi/etc/Hook.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | enum class MemoryFlags 5 | { 6 | ExecuteRead, 7 | ReadWrite, 8 | ExecuteReadWrite, 9 | }; 10 | 11 | void SetMemoryProtection(void *addr, size_t size, MemoryFlags flags); 12 | 13 | void ForceWrite(void *dst, const void *src, size_t s); 14 | template inline void ForceWrite(T &dst, const T &src); 15 | template inline void ForceWrite(void *dst, size_t size, const Body& body); 16 | 17 | 18 | 19 | // emit jmp from "from" to "to" instructions. 20 | // instructions will be 5 byte if relative address is < 32 bit, oterwise 14 byte. 21 | // return next address of last written byte (from+5 or from+14). 22 | void* EmitJumpInstruction(void* from, const void* to); 23 | 24 | void* OverrideDLLImport(void *target_module, const char *modname, const char *funcname, void *replacement); 25 | void* OverrideDLLExport(void *target_module, const char *funcname, void *replacement); 26 | 27 | 28 | void* FindSymbolByName(const char *name); 29 | 30 | 31 | // impl 32 | 33 | template 34 | inline void ForceWrite(T &dst, const T &src) 35 | { 36 | ForceWrite(&dst, &src, sizeof(T)); 37 | } 38 | 39 | template 40 | inline void ForceWrite(void *dst, size_t size, const Body& body) 41 | { 42 | SetMemoryProtection(dst, size, MemoryFlags::ExecuteReadWrite); 43 | body(); 44 | SetMemoryProtection(dst, size, MemoryFlags::ExecuteRead); 45 | } 46 | -------------------------------------------------------------------------------- /Plugin/usdi/etc/Platform.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(_M_X64) || defined(__x86_64__) 4 | #define __Arch_x86_64__ 5 | #elif defined(_M_IX86) || defined(__x86__) 6 | #define __Arch_x86__ 7 | #endif 8 | 9 | 10 | #if defined(_WIN32) && (_M_X64) 11 | #define __Windows_x86_64__ 12 | #elif defined(__linux__ ) && defined(__x86_64__) 13 | #define __Linux_x86_64__ 14 | #elif defined(__APPLE__) && defined(__x86_64__) 15 | #define __Mac_x86_64__ 16 | #elif defined(__APPLE__) && defined(__arm64__) 17 | #define __iOS_ARM64__ 18 | #elif defined(__ANDROID__) && defined(__arm64__) 19 | #define __Android_ARM64__ 20 | // todo: PS4 21 | #endif 22 | 23 | #if defined(_WIN32) 24 | #define LIBRARY_PATH "PATH" 25 | #elif defined(__APPLE__) 26 | #define LIBRARY_PATH "DYLD_LIBRARY_PATH" 27 | #else 28 | #define LIBRARY_PATH "LD_LIBRARY_PATH" 29 | #endif 30 | -------------------------------------------------------------------------------- /Plugin/usdi/ext/usdiExt.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "usdi.h" 4 | 5 | namespace usdi { 6 | typedef size_t Handle; 7 | typedef void(usdiSTDCall *MonoDelegate)(void*); 8 | 9 | class Task; 10 | class IProgressReporter; 11 | } // namespace usdi 12 | 13 | extern "C" { 14 | 15 | usdiAPI bool usdiIsMonoBindingAvailable(); 16 | usdiAPI bool usdiIsVtxCmdAvailable(); 17 | 18 | usdiAPI usdi::Handle usdiVtxCmdCreate(const char *dbg_name); 19 | usdiAPI void usdiVtxCmdDestroy(usdi::Handle h); 20 | usdiAPI void usdiVtxCmdUpdate(usdi::Handle h, const usdi::MeshData *src, void *vb, void *ib); 21 | usdiAPI void usdiVtxCmdUpdateSub(usdi::Handle h, const usdi::SubmeshData *src, void *vb, void *ib); 22 | usdiAPI void usdiVtxCmdProcess(); 23 | usdiAPI void usdiVtxCmdWait(); 24 | 25 | usdiAPI void usdiTaskDestroy(usdi::Task *t); 26 | usdiAPI void usdiTaskRun(usdi::Task *t); 27 | usdiAPI bool usdiTaskIsRunning(usdi::Task *t); 28 | usdiAPI void usdiTaskWait(usdi::Task *t); 29 | usdiAPI usdi::Task* usdiTaskCreateMonoDelegate(usdi::MonoDelegate func, void *arg, const char *dbg_name); 30 | usdiAPI usdi::Task* usdiTaskCreateMeshReadSample(usdi::Mesh *mesh, usdi::MeshData *dst, const usdi::Time *t); 31 | usdiAPI usdi::Task* usdiTaskCreatePointsReadSample(usdi::Points *points, usdi::PointsData *dst, const usdi::Time *t); 32 | usdiAPI usdi::Task* usdiTaskCreateAttrReadSample(usdi::Attribute *attr, usdi::AttributeData *dst, const usdi::Time *t); 33 | usdiAPI usdi::Task* usdiTaskCreateComposite(usdi::Task **tasks, int num); 34 | 35 | usdiAPI usdi::IProgressReporter* usdiProgressReporterCreate(); 36 | usdiAPI void usdiProgressReporterDestroy(usdi::IProgressReporter *pr); 37 | usdiAPI void usdiProgressReporterWrite(usdi::IProgressReporter *pr, const char *message); 38 | 39 | // just for C# 40 | usdiAPI int usdiMemcmp(const void *a, const void *b, int size); 41 | usdiAPI const char* usdiIndexStringArray(const char **v, int i); 42 | usdiAPI void usdiMeshAssignRootBone(usdi::Mesh *mesh, usdi::MeshData *dst, const char *v); 43 | usdiAPI void usdiMeshAssignBones(usdi::Mesh *mesh, usdi::MeshData *dst, const char **v, int n); 44 | 45 | } // extern "C" 46 | -------------------------------------------------------------------------------- /Plugin/usdi/ext/usdiProgressReporter.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #ifdef usdiEnableUnityExtension 3 | #include "usdiProgressReporter.h" 4 | 5 | namespace usdi { 6 | 7 | class ProgressReporter : public IProgressReporter 8 | { 9 | public: 10 | ProgressReporter(); 11 | ~ProgressReporter() override; 12 | void write(const char *message) override; 13 | 14 | private: 15 | static int s_ref_count; 16 | #ifdef _WIN32 17 | HANDLE m_cs_in = nullptr; 18 | HANDLE m_cs_out = nullptr; 19 | #endif 20 | }; 21 | 22 | 23 | int ProgressReporter::s_ref_count = 0; 24 | 25 | ProgressReporter::ProgressReporter() 26 | { 27 | if (s_ref_count++ == 0) { 28 | #ifdef _WIN32 29 | ::AllocConsole(); 30 | #endif 31 | } 32 | #ifdef _WIN32 33 | m_cs_in = ::GetStdHandle(STD_INPUT_HANDLE); 34 | m_cs_out = ::GetStdHandle(STD_OUTPUT_HANDLE); 35 | #endif 36 | } 37 | ProgressReporter::~ProgressReporter() 38 | { 39 | if (--s_ref_count == 0) { 40 | #ifdef _WIN32 41 | ::FreeConsole(); 42 | #endif 43 | } 44 | } 45 | 46 | void ProgressReporter::write(const char *message) 47 | { 48 | #ifdef _WIN32 49 | DWORD written = 0; 50 | WriteConsoleA(m_cs_out, message, (DWORD)strlen(message), &written, nullptr); 51 | #else 52 | printf(message); 53 | #endif 54 | } 55 | 56 | 57 | IProgressReporter* CreateProgressReporter() 58 | { 59 | return new ProgressReporter(); 60 | } 61 | 62 | } // namespace usdi 63 | #endif // usdiEnableUnityExtension 64 | -------------------------------------------------------------------------------- /Plugin/usdi/ext/usdiProgressReporter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace usdi { 4 | 5 | class IProgressReporter 6 | { 7 | public: 8 | virtual ~IProgressReporter() {} 9 | virtual void write(const char *message) = 0; 10 | }; 11 | 12 | IProgressReporter* CreateProgressReporter(); 13 | 14 | } // namespace usdi 15 | -------------------------------------------------------------------------------- /Plugin/usdi/ext/usdiTask.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef usdiEnableUnityExtension 4 | #ifdef usdiEnableGraphicsInterface 5 | #include "GraphicsInterface/GraphicsInterface.h" 6 | #endif // usdiEnableGraphicsInterface 7 | #include "usdiExt.h" 8 | 9 | namespace usdi { 10 | 11 | class MonoThreadScope 12 | { 13 | public: 14 | MonoThreadScope(); 15 | ~MonoThreadScope(); 16 | }; 17 | 18 | 19 | #ifdef usdiEnableGraphicsInterface 20 | using MapContext = gi::MapContext; 21 | 22 | class VertexUpdateCommand 23 | { 24 | public: 25 | VertexUpdateCommand(const char *dbg_name); 26 | ~VertexUpdateCommand(); 27 | 28 | void update(const usdi::MeshData *data, void *vb, void *ib); 29 | void update(const usdi::SubmeshData *data, void *vb, void *ib); 30 | bool isDirty() const; 31 | 32 | void map(); 33 | void copy(); 34 | void unmap(); 35 | void clearDirty(); 36 | 37 | private: 38 | typedef tbb::spin_mutex::scoped_lock lock_t; 39 | 40 | std::string m_dbg_name; 41 | 42 | const float3 *m_points = nullptr; 43 | const float3 *m_normals = nullptr; 44 | const float4 *m_colors = nullptr; 45 | const float2 *m_uvs = nullptr; 46 | const float4 *m_tangents = nullptr; 47 | const int *m_indices = nullptr; 48 | int m_num_points = 0; 49 | int m_num_indices = 0; 50 | 51 | MapContext m_ctx_vb; 52 | MapContext m_ctx_ib; 53 | std::atomic_bool m_dirty; 54 | }; 55 | 56 | class VertexCommandManager 57 | { 58 | public: 59 | typedef VertexUpdateCommand Command; 60 | typedef std::unique_ptr CommandPtr; 61 | 62 | static VertexCommandManager& getInstance(); 63 | 64 | Handle createCommand(const char *dbg_name = ""); 65 | void destroyCommand(Handle h); 66 | void update(Handle h, const usdi::MeshData *src, void *vb, void *ib); 67 | void update(Handle h, const usdi::SubmeshData *src, void *vb, void *ib); 68 | 69 | void process(); 70 | void wait(); 71 | 72 | private: 73 | typedef tbb::spin_mutex::scoped_lock lock_t; 74 | 75 | VertexUpdateCommand* get(Handle h); 76 | 77 | tbb::spin_mutex m_mutex_processing; 78 | HandleBasedVector m_commands; 79 | std::vector m_dirty_commands; 80 | }; 81 | #endif // usdiEnableGraphicsInterface 82 | 83 | 84 | class Task 85 | { 86 | public: 87 | Task(const std::function& f, const char *n = ""); 88 | ~Task(); 89 | void run(bool async = true); 90 | bool isRunning(); 91 | void wait(); 92 | 93 | private: 94 | std::string m_dbg_name; 95 | std::function m_func; 96 | tbb::spin_mutex m_mutex; // must be non-recursive mutex 97 | }; 98 | 99 | } // namespace usdi 100 | #endif // usdiEnableUnityExtension 101 | -------------------------------------------------------------------------------- /Plugin/usdi/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /Plugin/usdi/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _MSC_VER 4 | #define and && 5 | #define and_eq &= 6 | #define bitand & 7 | #define bitor | 8 | #define compl ~ 9 | #define not ! 10 | #define not_eq != 11 | #define or || 12 | #define or_eq |= 13 | #define xor ^ 14 | #define xor_eq ^= 15 | #endif 16 | #ifdef _WIN32 17 | #define _CRT_SECURE_NO_WARNINGS 18 | #define BOOST_PYTHON_STATIC_LIB 19 | #define NOMINMAX 20 | 21 | #define BUILD_COMPONENT_SRC_PREFIX "pxr/" 22 | #define BUILD_OPTLEVEL_OPT 23 | #define TF_NO_GNU_EXT 24 | 25 | #define USD_ENABLE_CACHED_NEW 26 | #endif 27 | 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #ifdef usdiEnableBoostFilesystem 43 | #include 44 | #else 45 | #include 46 | #endif 47 | #include 48 | 49 | #pragma warning(push) 50 | #pragma warning(disable:4100 4127 4244 4305) 51 | #include "pxr/usd/sdf/types.h" 52 | #include "pxr/usd/usd/modelAPI.h" 53 | #include "pxr/usd/usd/timeCode.h" 54 | #include "pxr/usd/usd/variantSets.h" 55 | #include "pxr/usd/usd/stage.h" 56 | #include "pxr/usd/usdGeom/xform.h" 57 | #include "pxr/usd/usdGeom/xformCommonAPI.h" 58 | #include "pxr/usd/usdGeom/camera.h" 59 | #include "pxr/usd/usdGeom/mesh.h" 60 | #include "pxr/usd/usdGeom/points.h" 61 | #include "pxr/base/gf/transform.h" 62 | #include "pxr/base/gf/matrix2f.h" 63 | #include "pxr/base/gf/matrix3f.h" 64 | #include "pxr/base/gf/matrix4f.h" 65 | #include "pxr/usd/ar/resolver.h" 66 | #include "pxr/usd/sdf/fileFormat.h" 67 | #include "half.h" 68 | #pragma warning(pop) 69 | 70 | #include "etc/Platform.h" 71 | 72 | #pragma warning(disable:4201) 73 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiCamera.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace usdi { 4 | 5 | class Camera : public Xform 6 | { 7 | typedef Xform super; 8 | public: 9 | DefSchemaTraits(UsdGeomCamera, "Camera"); 10 | 11 | Camera(Context *ctx, Schema *parent, const UsdPrim& prim); 12 | Camera(Context *ctx, Schema *parent, const char *name, const char *type = _getUsdTypeName()); 13 | ~Camera() override; 14 | 15 | void updateSample(Time t) override; 16 | 17 | const CameraSummary& getSummary() const; 18 | bool readSample(CameraData& dst, Time t); 19 | bool writeSample(const CameraData& src, Time t); 20 | 21 | using SampleCallback = std::function; 22 | int eachSample(const SampleCallback& cb); 23 | 24 | private: 25 | UsdGeomCamera m_cam; 26 | CameraData m_sample; 27 | 28 | mutable bool m_summary_needs_update = true; 29 | mutable CameraSummary m_summary; 30 | }; 31 | 32 | } // namespace usdi 33 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiConfig.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define usdiEnableMonoBindingThreadGuard 4 | //#define usdiEnableComponentUpdator 5 | 6 | // debug options 7 | //#define usdiDbgForceSingleThread 8 | //#define usdiDbgVTune 9 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiContext.i: -------------------------------------------------------------------------------- 1 | namespace usdi { 2 | 3 | template 4 | T* Context::createSchema(Schema *parent, const char *name) 5 | { 6 | T *ret = new T(this, parent, name); 7 | addSchema(ret); 8 | if (parent) { parent->addChild(ret); } 9 | return ret; 10 | } 11 | 12 | } // namespace usdi 13 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiInternal.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "usdiInternal.h" 3 | 4 | namespace usdi { 5 | 6 | int g_debug_level = 3; 7 | 8 | void LogImpl(int level, const char *format, ...) 9 | { 10 | if (level > g_debug_level) { return; } 11 | 12 | va_list args; 13 | va_start(args, format); 14 | #ifdef _WIN32 15 | const int MaxBuf = 4096; 16 | char buf[MaxBuf]; 17 | vsnprintf(buf, sizeof(buf), format, args); 18 | ::OutputDebugStringA(buf); 19 | #else 20 | vprintf(format, args); 21 | #endif 22 | va_end(args); 23 | fflush(stdout); 24 | } 25 | 26 | 27 | uint32_t GetThreadID() 28 | { 29 | std::hash hasher; 30 | return (uint32_t)hasher(std::this_thread::get_id()); 31 | } 32 | 33 | TraceFuncImpl::TraceFuncImpl(const char *func) 34 | : m_func(func) 35 | { 36 | usdiLogDetail("[tid %u] %s enter\n", GetThreadID(), m_func); 37 | } 38 | 39 | TraceFuncImpl::~TraceFuncImpl() 40 | { 41 | usdiLogDetail("[tid %u] %s leave\n", GetThreadID(), m_func); 42 | } 43 | 44 | const float Deg2Rad = float(M_PI) / 180.0f; 45 | const float Rad2Deg = 180.0f / float(M_PI); 46 | 47 | 48 | #ifdef usdiDbgVTune 49 | __itt_domain* GetVTuneDomain() 50 | { 51 | static __itt_domain *s_vtune_domain = __itt_domain_create("usdi"); 52 | s_vtune_domain->flags = 1; 53 | return s_vtune_domain; 54 | } 55 | 56 | VTuneTask::VTuneTask(const char *label) 57 | { 58 | m_name = __itt_string_handle_create(label); 59 | } 60 | 61 | VTuneTask::~VTuneTask() 62 | { 63 | } 64 | 65 | void VTuneTask::begin() 66 | { 67 | __itt_task_begin(GetVTuneDomain(), __itt_null, __itt_null, m_name); 68 | } 69 | 70 | void VTuneTask::end() 71 | { 72 | __itt_task_end(GetVTuneDomain()); 73 | } 74 | #endif 75 | 76 | } // namespace usdi 77 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiPoints.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace usdi { 4 | 5 | 6 | struct PointsSample 7 | { 8 | VtArray points; 9 | VtArray velocities; 10 | VtArray widths; 11 | VtArray ids64; 12 | VtArray ids32; 13 | }; 14 | 15 | 16 | class Points : public Xform 17 | { 18 | typedef Xform super; 19 | public: 20 | DefSchemaTraits(UsdGeomPoints, "Points"); 21 | 22 | Points(Context *ctx, Schema *parent, const UsdPrim& prim); 23 | Points(Context *ctx, Schema *parent, const char *name, const char *type = _getUsdTypeName()); 24 | ~Points() override; 25 | 26 | void updateSample(Time t) override; 27 | 28 | const PointsSummary& getSummary() const; 29 | bool readSample(PointsData& dst, Time t, bool copy); 30 | bool writeSample(const PointsData& src, Time t); 31 | 32 | using SampleCallback = std::function; 33 | int eachSample(const SampleCallback& cb); 34 | 35 | private: 36 | UsdGeomPoints m_points; 37 | PointsSample m_sample[2], *m_front_sample = nullptr; 38 | Attribute *m_attr_ids64 = nullptr; 39 | Attribute *m_attr_ids32 = nullptr; 40 | 41 | mutable bool m_summary_needs_update = true; 42 | mutable PointsSummary m_summary; 43 | }; 44 | 45 | } // namespace usdi 46 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiUtils.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "usdiInternal.h" 3 | #include "usdiUtils.h" 4 | 5 | namespace usdi { 6 | 7 | 8 | TempBuffer& GetTemporaryBuffer() 9 | { 10 | static thread_local TempBuffer s_buf; 11 | return s_buf; 12 | } 13 | 14 | 15 | } // namespace usdi 16 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiUtils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "MeshUtils/MeshUtils.h" 4 | 5 | namespace usdi { 6 | 7 | template T* RawPtr(T *v) { return v; } 8 | template T* RawPtr(const std::unique_ptr& v) { return v.get(); } 9 | 10 | template 11 | inline Schema* FindSchema(SchemaArray& schemas, const char *path) 12 | { 13 | if (path[0] == '/') { 14 | for (auto& n : schemas) { 15 | if (strcmp(n->getPath(), path) == 0) { 16 | return RawPtr(n); 17 | } 18 | } 19 | } 20 | else { 21 | // search node that has specified name 22 | for (auto& n : schemas) { 23 | if (strcmp(n->getName(), path) == 0) { 24 | return RawPtr(n); 25 | } 26 | } 27 | } 28 | return nullptr; 29 | } 30 | 31 | 32 | typedef RawVector TempBuffer; 33 | TempBuffer& GetTemporaryBuffer(); 34 | 35 | 36 | template 37 | class lambda_task : public tbb::task 38 | { 39 | private: 40 | Body m_body; 41 | tbb::task* execute() override 42 | { 43 | m_body(); 44 | return nullptr; 45 | } 46 | public: 47 | lambda_task(const Body& body) : m_body(body) {} 48 | }; 49 | 50 | template 51 | inline tbb::task* launch(const Body& body) 52 | { 53 | auto *ret = new(tbb::task::allocate_root()) lambda_task(body); 54 | tbb::task::enqueue(*ret); 55 | return ret; 56 | } 57 | 58 | } // namespace usdi 59 | -------------------------------------------------------------------------------- /Plugin/usdi/usdiXform.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace usdi { 4 | 5 | class Xform : public Schema 6 | { 7 | typedef Schema super; 8 | public: 9 | DefSchemaTraits(UsdGeomXformable, "Xform"); 10 | 11 | Xform(Context *ctx, Schema *parent, const UsdPrim& prim); 12 | Xform(Context *ctx, Schema *parent, const char *name, const char *type = _getUsdTypeName()); 13 | ~Xform() override; 14 | 15 | void updateSample(Time t) override; 16 | 17 | const XformSummary& getSummary() const; 18 | bool readSample(XformData& dst, Time t); 19 | bool writeSample(const XformData& src, Time t); 20 | 21 | using SampleCallback = std::function; 22 | int eachSample(const SampleCallback& cb); 23 | 24 | private: 25 | typedef std::vector UsdGeomXformOps; 26 | 27 | void interpretXformOps(); 28 | 29 | UsdGeomXformable m_xf; 30 | UsdGeomXformOps m_read_ops; 31 | UsdGeomXformOps m_write_ops; 32 | 33 | XformData m_sample; 34 | mutable bool m_summary_needs_update = true; 35 | mutable XformSummary m_summary; 36 | }; 37 | 38 | } // namespace usdi 39 | -------------------------------------------------------------------------------- /Plugin/usdiRT.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {3237f8ad-c7f0-48ee-86b7-d556ffa05c9f} 6 | 7 | 8 | 9 | 10 | usdRT 11 | 12 | 13 | usdRT 14 | 15 | 16 | 17 | 18 | usdRT 19 | 20 | 21 | usdRT 22 | 23 | 24 | -------------------------------------------------------------------------------- /Plugin/usdiRT/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /Plugin/usdiRT/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define rtImpl 4 | 5 | #ifdef _WIN32 6 | #define NOMINMAX 7 | #include 8 | #pragma warning(disable:4996) 9 | #else 10 | #include 11 | #ifdef __APPLE__ 12 | #include 13 | #else 14 | #include 15 | #endif 16 | #endif 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | -------------------------------------------------------------------------------- /Plugin/usdiRT/usdiRT.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _WIN32 4 | #ifndef rtStaticLink 5 | #ifdef rtImpl 6 | #define rtAPI __declspec(dllexport) 7 | #else 8 | #define rtAPI __declspec(dllimport) 9 | #endif 10 | #else 11 | #define rtAPI 12 | #endif 13 | #else 14 | #define rtAPI 15 | #endif 16 | 17 | enum class Platform 18 | { 19 | Unknown, 20 | // any 32bit architectures are treated as "Unknown" :) 21 | Windows_x86_64, 22 | Linux_x86_64, 23 | Mac_x86_64, 24 | Android_ARM64, 25 | iOS_ARM64, 26 | PS4, 27 | }; 28 | 29 | using module_t = void*; 30 | 31 | extern "C" { 32 | 33 | rtAPI Platform GetPlatform(); 34 | rtAPI const char* GetModulePath(); 35 | rtAPI void AddDLLSearchPath(const char *v); 36 | rtAPI void SetEnv(const char *name, const char *value); 37 | rtAPI const char* GetEnv(const char *name); 38 | 39 | rtAPI module_t DLLLoad(const char *path); 40 | rtAPI void DLLUnload(module_t mod); 41 | rtAPI void* DLLGetSymbol(module_t mod, const char *name); 42 | rtAPI module_t DLLGetHandle(const char *modname); 43 | 44 | rtAPI void usdiSetPluginPath(const char *path); 45 | 46 | } // extern "C" 47 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d4f955bfaa91ae48b5c5bcca13ba403 3 | folderAsset: yes 4 | timeCreated: 1463060975 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDExamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bced39a6b99c0a4a9d302146fe57220 3 | folderAsset: yes 4 | timeCreated: 1482835479 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDExamples/SkinnedMesh.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5995245c874b7984abedeedd5a92b7c2 3 | timeCreated: 1482825966 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f64b372811c43e478db0df99a02cc29 3 | folderAsset: yes 4 | timeCreated: 1463060975 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2681c6d1fd5beaa48ab75a2e633cf45f 3 | timeCreated: 1463060975 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0b2cacf919b7ed4b8db43e440904fc5 3 | folderAsset: yes 4 | timeCreated: 1473690167 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cb74980abd345247ba7fe5741cdfeb1 3 | folderAsset: yes 4 | timeCreated: 1474115531 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libar.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be415614ef190f843911bf2a17f76d4f 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libarch.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e01dc04a3544ebc4e8baf6482a9d5076 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libgf.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e6a5dfcb3e167e489614a7ee73c234a 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libjs.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 617824a16f275eb4dbf7b6a30d306775 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libkind.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b0abc8900c00ae44ad66b09189f4693 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libpcp.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ff1dce17161fce46ac05528f83dce17 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libplug.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1743ec5d97d973442bc9c47378bc212d 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libsdf.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4131e75e585f53c40a40293ffe6b6d2f 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libtf.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1ab8f8087f1ae942ae0964d0726dfe1 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libtracelite.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a8c1c252becb3c44bba00c4c20f2a0e 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusd.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a478903c35c3b4478eaaf104fefdfd8 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdGeom.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a639bd3068237f448d908d5e015bcba 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdHydra.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59e6f65fb0140264db1d3acbbeef976a 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdRi.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 228e806d5e782d6458c03f42f2442e8f 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdShade.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f39716d9803aef94f956957cff7bba70 3 | timeCreated: 1478915191 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdUI.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a8a443fc996a884b9ecde99e13d501a 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libusdUtils.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e94366602f6f814a9194b9b109ebae0 3 | timeCreated: 1478915190 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libvt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e787a79907c8b0e448bf31f4b401df7c 3 | timeCreated: 1478915191 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/libwork.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4689bf46ce857f40920aa71b834abdf 3 | timeCreated: 1478915191 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/lib/usdAbc.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ba367392aa4da04681e912ae7e114d3 3 | timeCreated: 1474015856 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Includes": [ "*/resources/" ] 3 | } 4 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52a41f9a3fd04f347b15d11a25b3cdba 3 | timeCreated: 1473683046 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/sdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 622081e199c096a4c909207719792d2e 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/sdf/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c6bdb813a614ca448afe73822102750 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/sdf/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Plugins": [ 3 | { 4 | "Info": { 5 | "SdfMetadata": { 6 | "payloadAssetDependencies": { 7 | "appliesTo": "prims", 8 | "displayGroup": "Pipeline", 9 | "type": "asset[]" 10 | } 11 | }, 12 | "Types": { 13 | "SdfFileFormat": { 14 | "displayName": "Sdf file format base class", 15 | "target": "sdf" 16 | }, 17 | "SdfTextFileFormat": { 18 | "bases": [ 19 | "SdfFileFormat" 20 | ], 21 | "displayName": "Sdf Text File Format", 22 | "extensions": [ 23 | "sdf" 24 | ], 25 | "formatId": "sdf" 26 | } 27 | } 28 | }, 29 | "LibraryPath": "../lib/libsdf.dll", 30 | "Name": "sdf", 31 | "ResourcePath": "resources", 32 | "Root": "..", 33 | "Type": "library" 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/sdf/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a42261a80bf67b14da97f6ae855fe6bf 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dde39cccf687a7b40a3047911fd7b5b8 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usd/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef039b88f15dcb0408f872896e64f09d 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usd/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab925b1275adfb4b9226057dea802b3 3 | timeCreated: 1473827858 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usd/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60b31378f3c7d194a8cfcd846683b1eb 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdAbc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fd69f0857947d74ca9f8b60318cbc00 3 | folderAsset: yes 4 | timeCreated: 1474015118 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdAbc/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba5fd7d2fca6fd04db8ace8dd24dcd3a 3 | folderAsset: yes 4 | timeCreated: 1474015118 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdAbc/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Plugins": [ 3 | { 4 | "Info": { 5 | "Types": { 6 | "UsdAbcAlembicFileFormat": { 7 | "bases": [ 8 | "SdfFileFormat" 9 | ], 10 | "displayName": "USD Alembic File Format", 11 | "extensions": [ 12 | "abc" 13 | ], 14 | "formatId": "abc", 15 | "primary": true, 16 | "target": "usd" 17 | } 18 | } 19 | }, 20 | "LibraryPath": "../lib/usdAbc.dll", 21 | "Name": "usdAbc", 22 | "ResourcePath": "resources", 23 | "Root": "..", 24 | "Type": "library" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdAbc/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1490f482021a5184184ef173fd28148b 3 | timeCreated: 1474015118 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdGeom.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5d73951aff736b41b82192d61eeff72 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdGeom/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbc9d4f2c041a774eb65a95a230139a3 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdGeom/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 328dabfa465528142843aee84eba4ac4 3 | timeCreated: 1473827858 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdGeom/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0b214a612667f243a73fa3e73c89af6 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdHydra.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 776cbbe6d16b3454bb42da3499688e32 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdHydra/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f184bca8d5463844b9433f0c7a01bf85 3 | folderAsset: yes 4 | timeCreated: 1473683048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdHydra/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | # Portions of this file auto-generated by usdGenSchema. 2 | # Edits will survive regeneration except for comments and 3 | # changes to types with autoGenerated=true. 4 | { 5 | "Plugins": [ 6 | { 7 | "Info": { 8 | "Types": { 9 | "UsdHydraLookAPI": { 10 | "autoGenerated": true, 11 | "bases": [ 12 | "UsdSchemaBase" 13 | ] 14 | }, 15 | "UsdHydraPrimvar": { 16 | "autoGenerated": true, 17 | "bases": [ 18 | "UsdShadeShader" 19 | ] 20 | }, 21 | "UsdHydraPtexTexture": { 22 | "autoGenerated": true, 23 | "bases": [ 24 | "UsdHydraTexture" 25 | ] 26 | }, 27 | "UsdHydraShader": { 28 | "autoGenerated": true, 29 | "bases": [ 30 | "UsdShadeShader" 31 | ] 32 | }, 33 | "UsdHydraTexture": { 34 | "autoGenerated": true, 35 | "bases": [ 36 | "UsdShadeShader" 37 | ] 38 | }, 39 | "UsdHydraUvTexture": { 40 | "autoGenerated": true, 41 | "bases": [ 42 | "UsdHydraTexture" 43 | ] 44 | } 45 | } 46 | }, 47 | "LibraryPath": "../lib/libusdHydra.dll", 48 | "Name": "usdHydra", 49 | "ResourcePath": "resources", 50 | "Root": "..", 51 | "Type": "library" 52 | } 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdHydra/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d00ee18f15120ec40b3b72c4e2676181 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdRi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c70aca2bf70b4748b35878805e78c0c 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdRi/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a22c82108a0676c438a6575c957fbc86 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdRi/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6089ad03f6a2f8949b509652f1ef19de 3 | timeCreated: 1473827858 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdRi/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1feb9f9f9d2898d46b53b8c3afb36b03 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdShade.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 994a0d1a9eb360b4781b940f124e2cd4 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdShade/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b372769fd15336146a16827b0781bf9a 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdShade/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d764747e5651ff043bf5868e19d1f5f4 3 | timeCreated: 1473827858 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdShade/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 775fa2c98c1ef8e429baf40a459540b1 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c42458790e67244989d55feedac303c 3 | folderAsset: yes 4 | timeCreated: 1473683046 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28acdb77e91092042af524ff89853492 3 | folderAsset: yes 4 | timeCreated: 1473683047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI/resources/generatedSchema.usda: -------------------------------------------------------------------------------- 1 | #usda 1.0 2 | ( 3 | "WARNING: THIS FILE IS GENERATED. DO NOT EDIT." 4 | ) 5 | 6 | class "NodeGraphNodeAPI" ( 7 | doc = """ 8 | This api helps storing information about nodes in node graphs. 9 | """ 10 | ) 11 | { 12 | uniform color3f ui:nodegraph:node:displayColor ( 13 | doc = """ 14 | This hint defines what tint the node should have in the node graph. 15 | """ 16 | ) 17 | uniform token ui:nodegraph:node:expansionState ( 18 | allowedTokens = ["open", "closed", "minimized"] 19 | doc = """ 20 | The current expansionState of the node in the ui. 21 | 'open' = fully expanded 22 | 'closed' = fully collapsed 23 | 'minimized' = should take the least space possible 24 | """ 25 | ) 26 | uniform asset ui:nodegraph:node:icon ( 27 | doc = """ 28 | This points to an image that should be displayed on the node 29 | """ 30 | ) 31 | uniform float2 ui:nodegraph:node:pos ( 32 | doc = """ 33 | Declared relative position to the parent in a node graph. 34 | X is the horizontal position. 35 | Y is the vertical position. Higher numbers correspond to lower positions 36 | (coordinates are Qt style, not cartesian). 37 | 38 | These positions are not explicitly meant in pixel space, but rather 39 | assume that the size of a node is approximately 100x100. Depending on 40 | graph UI implementation, the size of a node may vary in each direction. 41 | """ 42 | ) 43 | uniform int ui:nodegraph:node:stackingOrder ( 44 | doc = """ 45 | This optional value is a useful hint when an application cares about 46 | the visibility of a node and whether each node overlaps another. 47 | 48 | Nodes with lower stacking order values are meant to be drawn below 49 | higher ones. Negative values are meant as background. Positive values 50 | are meant as foreground. 51 | Undefined values should be treated as 0. 52 | 53 | There are no set limits in these values. 54 | """ 55 | ) 56 | } 57 | 58 | class "SceneGraphPrimAPI" ( 59 | doc = """ 60 | Utility schema for display properties of a prim 61 | """ 62 | ) 63 | { 64 | uniform token ui:displayGroup ( 65 | doc = """When publishing a nodegraph or a material, it can be useful to 66 | provide an optional display group, for organizational purposes and 67 | readability. This is because often the usd shading hiearchy is rather 68 | flat while we want to display it in organized groups. 69 | """ 70 | ) 71 | uniform token ui:displayName ( 72 | doc = """When publishing a nodegraph or a material, it can be useful to 73 | provide an optional display name, for readability. 74 | """ 75 | ) 76 | } 77 | 78 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab3fbe91ccca4fa4e9bdc42a381c90f4 3 | timeCreated: 1473827858 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | # Portions of this file auto-generated by usdGenSchema. 2 | # Edits will survive regeneration except for comments and 3 | # changes to types with autoGenerated=true. 4 | { 5 | "Plugins": [ 6 | { 7 | "Info": { 8 | "Types": { 9 | "UsdUINodeGraphNodeAPI": { 10 | "autoGenerated": true, 11 | "bases": [ 12 | "UsdSchemaBase" 13 | ] 14 | }, 15 | "UsdUISceneGraphPrimAPI": { 16 | "autoGenerated": true, 17 | "bases": [ 18 | "UsdSchemaBase" 19 | ] 20 | } 21 | } 22 | }, 23 | "LibraryPath": "../lib/libusdUI.dll", 24 | "Name": "usdUI", 25 | "ResourcePath": "resources", 26 | "Root": "..", 27 | "Type": "library" 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /USDForUnity/Assets/StreamingAssets/USDForUnity/plugins_win64/usdUI/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad40199f28d4b4a4584c1cb47badc89b 3 | timeCreated: 1473683048 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fce724863b54834b86dcc751ab5def0 3 | folderAsset: yes 4 | timeCreated: 1473253721 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Animation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 375a40732fb1ff7418b7119982de7ab3 3 | folderAsset: yes 4 | timeCreated: 1473253730 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Animation/Cube.controller: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/USDExamples/Animation/Cube.controller -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Animation/Cube.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8d9556643e336b46bb4f25f0d83a069 3 | timeCreated: 1482914275 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Animation/Test.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/USDExamples/Animation/Test.anim -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Animation/Test.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a57a1461e3f0df243905784133dc8d52 3 | timeCreated: 1473253787 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ce62a62f51d8d84a91d60d6b0b253f5 3 | folderAsset: yes 4 | timeCreated: 1473947953 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Editor/USDTestMenu.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | using UnityEditor; 7 | using UTJ.USD; 8 | 9 | public class USDTestMenu 10 | { 11 | [MenuItem("Assets/Test/Benchmark USD")] 12 | public static void ImportUSD() 13 | { 14 | var path = EditorUtility.OpenFilePanel("Select USD or Alembic file (.usd, .usda, .usdc, .abc)", Application.streamingAssetsPath, ""); 15 | if (path == null || path == "") { return; } 16 | 17 | var root = new GameObject("root").GetComponent(); 18 | var opt = usdi.ImportSettings.default_value; 19 | 20 | int N1 = 14; 21 | int N2 = 22; 22 | int N3 = 32; 23 | double delay = 0.05; 24 | InstanciateUSDCircular(path, opt, root, 1.4f, N1, delay * (N1+N2), delay); 25 | InstanciateUSDCircular(path, opt, root, 2.2f, N2, delay * N1, delay); 26 | InstanciateUSDCircular(path, opt, root, 3.0f, N3, 0.0, delay); 27 | Selection.activeGameObject = root.gameObject; 28 | } 29 | 30 | static void InstanciateUSDCircular(string path, usdi.ImportSettings opt, Transform root, float radius, int N, double timeStart=0.0, double timeDelay=0.05) 31 | { 32 | float ang = 360.0f / N * Mathf.Deg2Rad; 33 | 34 | for (int i = 0; i < N; ++i) 35 | { 36 | float r = radius; 37 | Vector3 pos = new Vector3(r * Mathf.Cos(ang * i), 0.0f, r * Mathf.Sin(ang * i)); 38 | Vector3 forward = -pos.normalized; 39 | var usd = InstanciateUSD(path, opt, pos, forward, timeStart + timeDelay * i).gameObject; 40 | usd.GetComponent().SetParent(root, true); 41 | } 42 | 43 | } 44 | 45 | static UsdStream InstanciateUSD(string path, usdi.ImportSettings opt, Vector3 pos, Vector3 forward, double time) 46 | { 47 | var usd = UsdImportWindow.InstanciateUSD(path, (stream) => { 48 | stream.importSettings = opt; 49 | stream.playTime = time; 50 | } ); 51 | var trans = usd.GetComponent(); 52 | if (trans) 53 | { 54 | trans.position = pos; 55 | trans.forward = forward; 56 | } 57 | return usd; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/Editor/USDTestMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcfb35a8427c41248be3853d65ed6eed 3 | timeCreated: 1473947969 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ExportCloth.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/USDExamples/ExportCloth.unity -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ExportCloth.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e5abd930100cd146869abd30676ddde 3 | timeCreated: 1473395192 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ExportTransform.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/USDExamples/ExportTransform.unity -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ExportTransform.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2bb5abd1ae2b294fb7733345591a9be 3 | timeCreated: 1482915877 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ImportSkinnedMesh.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/USDExamples/ImportSkinnedMesh.unity -------------------------------------------------------------------------------- /USDForUnity/Assets/USDExamples/ImportSkinnedMesh.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a82213b6e8320540975570b4163f6e2 3 | timeCreated: 1482836049 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 614474d9df778c04e85d32a30467b464 3 | folderAsset: yes 4 | timeCreated: 1462773048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc648193fcda2db4092aa9c4912dfb4f 3 | folderAsset: yes 4 | timeCreated: 1462773048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23f930fc6c763f34c8db2d12041c8cce 3 | folderAsset: yes 4 | timeCreated: 1463360903 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/Misc/BoolDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomPropertyDrawer(typeof(Bool))] 8 | class BoolDrawer : PropertyDrawer 9 | { 10 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 11 | { 12 | EditorGUI.BeginProperty(position, label, property); 13 | position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label); 14 | 15 | var indent = EditorGUI.indentLevel; 16 | EditorGUI.indentLevel = 0; 17 | 18 | var p = property.FindPropertyRelative("v"); 19 | bool value = p.intValue != 0; 20 | 21 | EditorGUI.BeginChangeCheck(); 22 | value = EditorGUI.Toggle(position, value); 23 | if (EditorGUI.EndChangeCheck()) 24 | { 25 | p.intValue = value ? 1 : 0; 26 | } 27 | 28 | EditorGUI.indentLevel = indent; 29 | EditorGUI.EndProperty(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/Misc/BoolDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6ef86070f35682489c15e53327b9b84 3 | timeCreated: 1480397300 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/Misc/DataPathDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomPropertyDrawer(typeof(DataPath))] 8 | class DataPathDrawer : PropertyDrawer 9 | { 10 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 11 | { 12 | bool ro = property.FindPropertyRelative("m_readOnly").boolValue; 13 | if(ro) { EditorGUI.BeginDisabledGroup(true); } 14 | 15 | EditorGUI.BeginProperty(position, label, property); 16 | position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label); 17 | 18 | var indent = EditorGUI.indentLevel; 19 | EditorGUI.indentLevel = 0; 20 | 21 | float rootWidth = 110; 22 | float leafWidth = position.width - rootWidth - 5; 23 | Rect rootRect = new Rect(position.x, position.y, rootWidth, position.height); 24 | Rect leafRect = new Rect(position.x + rootWidth + 5, position.y, leafWidth, position.height); 25 | 26 | EditorGUI.PropertyField(rootRect, property.FindPropertyRelative("m_root"), GUIContent.none); 27 | EditorGUI.PropertyField(leafRect, property.FindPropertyRelative("m_leaf"), GUIContent.none); 28 | 29 | EditorGUI.indentLevel = indent; 30 | EditorGUI.EndProperty(); 31 | 32 | if (ro) { EditorGUI.EndDisabledGroup(); } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/Misc/DataPathDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 028355adfd872ff40a82fede589df892 3 | timeCreated: 1479905930 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/SerializableObjHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq.Expressions; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UTJ.USD 9 | { 10 | public static class SerializableObjHelper 11 | { 12 | private static List BreakdownExpression(Expression> exp) 13 | { 14 | Expression node = exp.Body; 15 | var parts = new List(); 16 | bool done = false; 17 | while (!done) 18 | { 19 | if (node is UnaryExpression) 20 | { 21 | var unode = node as UnaryExpression; 22 | var mnode = unode.Operand as MemberExpression; 23 | parts.Insert(0, mnode.Member.Name); 24 | node = mnode.Expression; 25 | } 26 | else if (node is MemberExpression) 27 | { 28 | var mnode = node as MemberExpression; 29 | parts.Insert(0, mnode.Member.Name); 30 | node = mnode.Expression; 31 | } 32 | else 33 | { 34 | done = true; 35 | continue; 36 | } 37 | } 38 | return parts; 39 | } 40 | 41 | public static SerializedProperty FindProperty(this SerializedObject obj, Expression> exp) 42 | { 43 | var parts = BreakdownExpression(exp); 44 | 45 | SerializedProperty property = null; 46 | for ( int i = 1; i < parts.Count; i++) 47 | { 48 | if (property == null) 49 | property = obj.FindProperty(parts[i]); 50 | else 51 | property = property.FindPropertyRelative(parts[i]); 52 | 53 | if (property == null) 54 | return null; 55 | } 56 | 57 | return property; 58 | } 59 | 60 | public static SerializedProperty FindPropertyRelative(this SerializedProperty obj, Expression> exp) 61 | { 62 | var parts = BreakdownExpression(exp); 63 | 64 | var property = obj; 65 | for (int i = 1; i < parts.Count; i++) 66 | { 67 | if (property == null) 68 | return null; 69 | 70 | property = property.FindPropertyRelative(parts[i]); 71 | } 72 | 73 | return property; 74 | } 75 | 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/TimeUnitDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | 6 | namespace UTJ.USD 7 | { 8 | [CustomPropertyDrawer(typeof(TimeUnit))] 9 | class TimeUnitDrawer : PropertyDrawer 10 | { 11 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 12 | { 13 | EditorGUI.BeginProperty(position, label, property); 14 | position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label); 15 | 16 | float typeWidth = 110; 17 | float scaleWidth = position.width - typeWidth - 5; 18 | Rect typeRect = new Rect(position.x, position.y, typeWidth, position.height); 19 | Rect scaleRect = new Rect(position.x + typeWidth + 5, position.y, scaleWidth, position.height); 20 | 21 | var typeProperty = property.FindPropertyRelative("m_type"); 22 | var scaleProperty = property.FindPropertyRelative("m_scale"); 23 | 24 | EditorGUI.BeginChangeCheck(); 25 | EditorGUI.PropertyField(typeRect, typeProperty, GUIContent.none); 26 | var type = (TimeUnit.Types)typeProperty.enumValueIndex; 27 | if (type == TimeUnit.Types.FreeScale) 28 | { 29 | EditorGUI.PropertyField(scaleRect, scaleProperty, GUIContent.none); 30 | } 31 | if (EditorGUI.EndChangeCheck()) 32 | { 33 | var scale = scaleProperty.floatValue; 34 | scaleProperty.floatValue = TimeUnit.Adjust(type, scale); 35 | } 36 | 37 | 38 | EditorGUI.EndProperty(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/TimeUnitDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adae4cc4f3e210d438143d3a56bcea91 3 | timeCreated: 1482692212 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdAssetConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d09be4f1d098e94a91e10544c78ada5 3 | timeCreated: 1483174515 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdCameraEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomEditor(typeof(UsdCameraComponent))] 8 | public class UsdCameraEditor : UsdIComponentEditor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | base.OnInspectorGUI(); 13 | 14 | var component = target as UsdCameraComponent; 15 | var schema = component.schema as UsdCamera; 16 | if (schema == null) { return; } 17 | 18 | // camera settings 19 | EditorGUILayout.LabelField("Camera Settings", EditorStyles.boldLabel); 20 | EditorGUI.BeginChangeCheck(); 21 | var arm = (UsdCamera.AspectRatioMode)EditorGUILayout.EnumPopup("Aspect Ratio Mode", (Enum)schema.aspectRatioMode); 22 | if (EditorGUI.EndChangeCheck()) 23 | { 24 | Undo.RecordObject(component, "Changed Aspect Ratio Mode"); 25 | schema.aspectRatioMode = arm; 26 | schema.stream.usdiRequestForceUpdate(); 27 | EditorUtility.SetDirty(component); 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdCameraEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d927aa1a30be9644c9d72b66839f35a2 3 | timeCreated: 1480349890 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdComponentEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9467a78e9ab688e46a69b567e719fc07 3 | timeCreated: 1479576155 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdExporterEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomEditor(typeof(UsdExporter))] 8 | public class UsdExporterEditor : Editor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | DrawDefaultInspector(); 13 | 14 | GUILayout.Space(10); 15 | EditorGUILayout.LabelField("Capture Control", EditorStyles.boldLabel); 16 | 17 | var t = target as UsdExporter; 18 | 19 | if (t.isRecording) 20 | { 21 | if (GUILayout.Button("End Capture")) 22 | { 23 | t.EndCapture(); 24 | } 25 | } 26 | else 27 | { 28 | if (GUILayout.Button("Begin Capture")) 29 | { 30 | t.BeginCapture(); 31 | } 32 | 33 | if (GUILayout.Button("One Shot")) 34 | { 35 | t.OneShot(); 36 | } 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdExporterEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edbbc12f0a6de1f4a935916e6a132a71 3 | timeCreated: 1463387298 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdImportWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14f3b498155616e4495ea0863a56160e 3 | timeCreated: 1463464806 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdMenu.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR && !(UNITY_5_7_OR_NEWER || ENABLE_SCRIPTED_IMPORTERS) 2 | using System; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace UTJ.USD 7 | { 8 | public class UsdMenu 9 | { 10 | [MenuItem("Assets/Import USD or Alembic")] 11 | public static void ImportUSD() 12 | { 13 | var path = EditorUtility.OpenFilePanel("Select USD or Alembic file (.usd, .usda, .usdc, .abc)", Application.streamingAssetsPath, ""); 14 | if (path == null || path == "") { return; } 15 | UsdImportWindow.Open(path); 16 | } 17 | 18 | [MenuItem("Assets/Convert USD to Alembic")] 19 | public static void ConvertUSDToAlembic() 20 | { 21 | var usd_path = EditorUtility.OpenFilePanel("Select USD file (.usd, .usda, .usdc)", Application.streamingAssetsPath, ""); 22 | if (usd_path == null || usd_path == "") { return; } 23 | 24 | var abc_path = System.IO.Path.ChangeExtension(usd_path, ".abc"); 25 | 26 | usdi.InitializePluginPass1(); 27 | usdi.InitializePluginPass2(); 28 | usdi.ConvertUSDToAlembic(usd_path, abc_path); 29 | } 30 | } 31 | 32 | } 33 | #endif // UNITY_EDITOR 34 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 766ad073c3f21c64b8dc4390e51d86ec 3 | timeCreated: 1463360903 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdMeshEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomEditor(typeof(UsdMeshComponent))] 8 | public class UsdMeshEditor : UsdIComponentEditor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | base.OnInspectorGUI(); 13 | 14 | var t = target as UsdMeshComponent; 15 | if(!t.schema.isInstance && !t.schema.isMaster && !t.schema.isInMaster) 16 | { 17 | EditorGUILayout.Space(); 18 | if (GUILayout.Button("Precompute Normals / Tangents")) 19 | { 20 | UsdPrecomputeNormalsWindow.Open(t.schema as UsdMesh); 21 | } 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdMeshEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0969b9dfc87e09440884b1c3b7b54f41 3 | timeCreated: 1480349890 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdPointsEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomEditor(typeof(UsdPointsComponent))] 8 | public class UsdPointsEditor : UsdIComponentEditor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | base.OnInspectorGUI(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdPointsEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b071288cbfcf9c4ebd9c5554d71844b 3 | timeCreated: 1480349890 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdPrecomputeNormalsWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39c3be528dfd85249855eb747073bbe8 3 | timeCreated: 1482592923 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdStreamEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b81775285eb533c438adeda4980bf309 3 | timeCreated: 1479986364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdXformEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UTJ.USD 6 | { 7 | [CustomEditor(typeof(UsdXformComponent))] 8 | public class UsdXformEditor : UsdIComponentEditor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | base.OnInspectorGUI(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Editor/UsdXformEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68ce32b62c509184cbb5850c268b3440 3 | timeCreated: 1480349890 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f07e31bf12bd6e47bf9fb0def76fed4 3 | folderAsset: yes 4 | timeCreated: 1462773048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90c427f7f23e21e468700e9c8ca61f49 3 | folderAsset: yes 4 | timeCreated: 1462773048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/python27.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7adf2329acd20243af684750ea87ad4 3 | timeCreated: 1473158875 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | CPU: x86_64 18 | DefaultValueInitialized: true 19 | OS: Windows 20 | Linux: 21 | enabled: 0 22 | settings: 23 | CPU: None 24 | Linux64: 25 | enabled: 1 26 | settings: 27 | CPU: x86_64 28 | LinuxUniversal: 29 | enabled: 1 30 | settings: 31 | CPU: x86_64 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: None 36 | OSXIntel64: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | OSXUniversal: 41 | enabled: 0 42 | settings: 43 | CPU: x86_64 44 | Win: 45 | enabled: 0 46 | settings: 47 | CPU: None 48 | Win64: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | data: 53 | enabled: 0 54 | settings: {} 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/tbb.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c623320cc581fce46aaa6900f1d4cf75 3 | timeCreated: 1473158875 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | CPU: x86_64 18 | DefaultValueInitialized: true 19 | OS: Windows 20 | Linux: 21 | enabled: 0 22 | settings: 23 | CPU: None 24 | Linux64: 25 | enabled: 0 26 | settings: 27 | CPU: x86_64 28 | LinuxUniversal: 29 | enabled: 0 30 | settings: 31 | CPU: None 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: None 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | OSXUniversal: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | Win: 45 | enabled: 0 46 | settings: 47 | CPU: None 48 | Win64: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | data: 53 | enabled: 0 54 | settings: {} 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/tbbmalloc.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f7085861ce0d524fbf9c6b7a074c0c8 3 | timeCreated: 1482587645 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | CPU: x86_64 18 | DefaultValueInitialized: true 19 | OS: Windows 20 | Linux: 21 | enabled: 0 22 | settings: 23 | CPU: None 24 | Linux64: 25 | enabled: 1 26 | settings: 27 | CPU: x86_64 28 | LinuxUniversal: 29 | enabled: 1 30 | settings: 31 | CPU: x86_64 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: None 36 | OSXIntel64: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | OSXUniversal: 41 | enabled: 0 42 | settings: 43 | CPU: x86_64 44 | Win: 45 | enabled: 0 46 | settings: 47 | CPU: None 48 | Win64: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | data: 53 | enabled: 0 54 | settings: {} 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52fc74e83138f4313919e10910357c5f 3 | folderAsset: yes 4 | timeCreated: 1482130516 5 | licenseType: Pro 6 | PluginImporter: 7 | serializedVersion: 1 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | Any: 14 | enabled: 1 15 | settings: 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 0 19 | Exclude LinuxUniversal: 0 20 | Exclude OSXIntel: 1 21 | Exclude OSXIntel64: 0 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 0 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: OSX 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 1 37 | settings: 38 | CPU: x86_64 39 | LinuxUniversal: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 1 49 | settings: 50 | CPU: AnyCPU 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: x86_64 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 1 61 | settings: 62 | CPU: AnyCPU 63 | data: 64 | enabled: 0 65 | settings: {} 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 591dd834a0ae6412b84315739d009132 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 16C67 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | usdi 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleLongVersionString 14 | 15 | CFBundlePackageType 16 | APPL 17 | CFBundleSignature 18 | ???? 19 | CFBundleSupportedPlatforms 20 | 21 | MacOSX 22 | 23 | CFBundleVersion 24 | 25 | CSResourcesFileMapped 26 | 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 8C38 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 16C58 35 | DTSDKName 36 | macosx10.12 37 | DTXcode 38 | 0820 39 | DTXcodeBuild 40 | 8C38 41 | LSRequiresCarbon 42 | 43 | NSHumanReadableCopyright 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b80c5ec8d88ac421f9fcb050cc34a981 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 443adabc5a841496c8ee0d58544e98cd 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libAlembic.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11a32d2faf923486e9800880aa43c390 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libGLEW.2.0.0.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 200cd69ecad3245c6a327fd30b1c4c5f 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libHalf.12.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e6257fb3e50440e69c5f96135e0981a 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libIex-2_2.12.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46b3ac7efe90449149bb579f20e3f48f 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libIexMath-2_2.12.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38f413ebe431f4bda886e71c58632581 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libIlmThread-2_2.12.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7f8f2192cab344da9c7bb92a2945bcd 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libImath-2_2.12.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02247fd4d1aca48469876de08607d9f3 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libar.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d2ec375ce25c452b9c5010505f6ea0c 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libarch.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e6d765018b4340d8aee40c1ad38b548 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libboost_filesystem-mt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5891a94ea1084cf6afc0af6163dfb06 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libboost_iostreams-mt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78f108b503c064ea89a072ff31868cde 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libboost_python-mt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e607aabc7167e47009577a6f8416c8cb 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libboost_regex-mt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fee4e2b61d6f44659eb4b4313056719 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libboost_system-mt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad2ee5a8aa9f34fadb0d8cd73a26b38c 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libgf.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8a6ccee49b6c47a88d9f526f107389c 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libhdf5.10.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbe43d09b865f4e0690163395db9415d 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libhdf5_hl.10.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64901f2346f8a45788afcdb293292bcf 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libjs.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 227346da93b894b20b9228ce5dff47bc 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libkind.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d986039ca910444eb6baddbb2963fb8 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libpcp.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3582c9de63014bc09d884c21fb97cbe 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libplug.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c722c9b5586244bf387e73fc1b47ac4a 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libsdf.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b23f53298fa1c47109ac4dc878e7563f 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libsz.2.0.0.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b4d1b1b5ff94e42b9cfeb24c79947a 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libtbb.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be181f73198de4c79b25996ffb1f1a5e 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libtbbmalloc.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ba0c5087c6a545759e1fb029a1008e0 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libtf.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a4edd7eec11643649940ffed806588a 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libtracelite.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cad730116c274ddca4f5ffffbb5fd7f 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libusd.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ff1ed52b1e044255ab0f6fd59c3d274 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libusdGeom.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b29aea3140af34a3a82828c3527f66a5 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libvt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7af49fbac19554fefb07316d3792329e 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/libwork.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bde51f22858749dfa2ed35074437199 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/MacOS/usdAbc.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5de2c447f5d8140c88ff9213f1c1328d 3 | timeCreated: 1482735969 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 733f906b1bcfb44e09969123febd607d 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Includes": [ "*/resources/" ] 3 | } 4 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55e78817834ec41ffbe8c1f1d055d40e 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/sdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4ec32ea5e8574823b45e6aa30a26539 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/sdf/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df059f82fcb304562b3e1d50f8c8ddc2 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/sdf/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Plugins": [ 3 | { 4 | "Info": { 5 | "SdfMetadata": { 6 | "payloadAssetDependencies": { 7 | "appliesTo": "prims", 8 | "displayGroup": "Pipeline", 9 | "type": "asset[]" 10 | } 11 | }, 12 | "Types": { 13 | "SdfFileFormat": { 14 | "displayName": "Sdf file format base class", 15 | "target": "sdf" 16 | }, 17 | "SdfTextFileFormat": { 18 | "bases": [ 19 | "SdfFileFormat" 20 | ], 21 | "displayName": "Sdf Text File Format", 22 | "extensions": [ 23 | "sdf" 24 | ], 25 | "formatId": "sdf" 26 | } 27 | } 28 | }, 29 | "LibraryPath": "../../MacOS/libsdf.dylib", 30 | "Name": "sdf", 31 | "ResourcePath": "resources", 32 | "Root": "..", 33 | "Type": "library" 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/sdf/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09d2302a7e8f44797aaf7f229ff40612 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67bab572063ca477da8110c53d027836 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usd/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a3be067943a5451e9c549bfc01d5b96 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usd/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 543aa3e4422e648f5bd00e3071cc3d90 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usd/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21e59bbb6811b49c680c377551969139 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdAbc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e07e0e34d6ba24ce88d06409213ecdb7 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdAbc/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8698d4426063e4c07942b732db88b1bc 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdAbc/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "Plugins": [ 3 | { 4 | "Info": { 5 | "Types": { 6 | "UsdAbcAlembicFileFormat": { 7 | "bases": [ 8 | "SdfFileFormat" 9 | ], 10 | "displayName": "USD Alembic File Format", 11 | "extensions": [ 12 | "abc" 13 | ], 14 | "formatId": "abc", 15 | "primary": true, 16 | "target": "usd" 17 | } 18 | } 19 | }, 20 | "LibraryPath": "../../MacOS/usdAbc.dylib", 21 | "Name": "usdAbc", 22 | "ResourcePath": "resources", 23 | "Root": "..", 24 | "Type": "library" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdAbc/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c79cd229560414b72b331d569a433a1f 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdGeom.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4c820039c7454680891a5a23f6438bf 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdGeom/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b2e307ed8050442eb1fce93e18c367c 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdGeom/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2b86883b01f04a11a0cb11e496f71e8 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdGeom/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09d89169278124ec49043d309d055b3a 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdHydra.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9110f1160f4f949f0a4e7df41b7f9efb 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdHydra/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4f1f88f9a966483db5361c468871dfd 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdHydra/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | # Portions of this file auto-generated by usdGenSchema. 2 | # Edits will survive regeneration except for comments and 3 | # changes to types with autoGenerated=true. 4 | { 5 | "Plugins": [ 6 | { 7 | "Info": { 8 | "Types": { 9 | "UsdHydraLookAPI": { 10 | "autoGenerated": true, 11 | "bases": [ 12 | "UsdSchemaBase" 13 | ] 14 | }, 15 | "UsdHydraPrimvar": { 16 | "autoGenerated": true, 17 | "bases": [ 18 | "UsdShadeShader" 19 | ] 20 | }, 21 | "UsdHydraPtexTexture": { 22 | "autoGenerated": true, 23 | "bases": [ 24 | "UsdHydraTexture" 25 | ] 26 | }, 27 | "UsdHydraShader": { 28 | "autoGenerated": true, 29 | "bases": [ 30 | "UsdShadeShader" 31 | ] 32 | }, 33 | "UsdHydraTexture": { 34 | "autoGenerated": true, 35 | "bases": [ 36 | "UsdShadeShader" 37 | ] 38 | }, 39 | "UsdHydraUvTexture": { 40 | "autoGenerated": true, 41 | "bases": [ 42 | "UsdHydraTexture" 43 | ] 44 | } 45 | } 46 | }, 47 | "LibraryPath": "../../MacOS/libusdHydra.dylib", 48 | "Name": "usdHydra", 49 | "ResourcePath": "resources", 50 | "Root": "..", 51 | "Type": "library" 52 | } 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdHydra/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a73c97c2c02684e5c8bcae074b996a05 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdRi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc25f237b46784f409be54030825d3c8 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdRi/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a1bde41b5b314d6c9bc1b190d635c56 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdRi/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: faaa5d3f5bbc348009b458eec0389376 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdRi/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7babc95e7101d4eee985e2c54e0b6bdc 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdShade.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f77e90c921dac42b4a553fbeaedb584d 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdShade/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ff80268472e74f74b687e0fa97ef633 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdShade/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0069f80854ce4e30a0697a34da4f4b0 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdShade/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24558cf575a594a83898c878566b869a 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9535ad56d64d847469ea977ca0edaba5 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI/resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407ad722df7ef4081ab449e81735db5f 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI/resources/generatedSchema.usda: -------------------------------------------------------------------------------- 1 | #usda 1.0 2 | ( 3 | "WARNING: THIS FILE IS GENERATED. DO NOT EDIT." 4 | ) 5 | 6 | class "NodeGraphNodeAPI" ( 7 | doc = """ 8 | This api helps storing information about nodes in node graphs. 9 | """ 10 | ) 11 | { 12 | uniform color3f ui:nodegraph:node:displayColor ( 13 | doc = """ 14 | This hint defines what tint the node should have in the node graph. 15 | """ 16 | ) 17 | uniform token ui:nodegraph:node:expansionState ( 18 | allowedTokens = ["open", "closed", "minimized"] 19 | doc = """ 20 | The current expansionState of the node in the ui. 21 | 'open' = fully expanded 22 | 'closed' = fully collapsed 23 | 'minimized' = should take the least space possible 24 | """ 25 | ) 26 | uniform asset ui:nodegraph:node:icon ( 27 | doc = """ 28 | This points to an image that should be displayed on the node 29 | """ 30 | ) 31 | uniform float2 ui:nodegraph:node:pos ( 32 | doc = """ 33 | Declared relative position to the parent in a node graph. 34 | X is the horizontal position. 35 | Y is the vertical position. Higher numbers correspond to lower positions 36 | (coordinates are Qt style, not cartesian). 37 | 38 | These positions are not explicitly meant in pixel space, but rather 39 | assume that the size of a node is approximately 100x100. Depending on 40 | graph UI implementation, the size of a node may vary in each direction. 41 | """ 42 | ) 43 | uniform int ui:nodegraph:node:stackingOrder ( 44 | doc = """ 45 | This optional value is a useful hint when an application cares about 46 | the visibility of a node and whether each node overlaps another. 47 | 48 | Nodes with lower stacking order values are meant to be drawn below 49 | higher ones. Negative values are meant as background. Positive values 50 | are meant as foreground. 51 | Undefined values should be treated as 0. 52 | 53 | There are no set limits in these values. 54 | """ 55 | ) 56 | } 57 | 58 | class "SceneGraphPrimAPI" ( 59 | doc = """ 60 | Utility schema for display properties of a prim 61 | """ 62 | ) 63 | { 64 | uniform token ui:displayGroup ( 65 | doc = """When publishing a nodegraph or a material, it can be useful to 66 | provide an optional display group, for organizational purposes and 67 | readability. This is because often the usd shading hiearchy is rather 68 | flat while we want to display it in organized groups. 69 | """ 70 | ) 71 | uniform token ui:displayName ( 72 | doc = """When publishing a nodegraph or a material, it can be useful to 73 | provide an optional display name, for readability. 74 | """ 75 | ) 76 | } 77 | 78 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI/resources/generatedSchema.usda.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee59e1d2a9bf34329a0b0e42d6a0207c 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI/resources/plugInfo.json: -------------------------------------------------------------------------------- 1 | # Portions of this file auto-generated by usdGenSchema. 2 | # Edits will survive regeneration except for comments and 3 | # changes to types with autoGenerated=true. 4 | { 5 | "Plugins": [ 6 | { 7 | "Info": { 8 | "Types": { 9 | "UsdUINodeGraphNodeAPI": { 10 | "autoGenerated": true, 11 | "bases": [ 12 | "UsdSchemaBase" 13 | ] 14 | }, 15 | "UsdUISceneGraphPrimAPI": { 16 | "autoGenerated": true, 17 | "bases": [ 18 | "UsdSchemaBase" 19 | ] 20 | } 21 | } 22 | }, 23 | "LibraryPath": "../../MacOS/libusdUI.dylib", 24 | "Name": "usdUI", 25 | "ResourcePath": "resources", 26 | "Root": "..", 27 | "Type": "library" 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.bundle/Contents/plugins_mac/usdUI/resources/plugInfo.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd645e52bffb047418ed69cad969b42d 3 | timeCreated: 1482324553 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdi.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11a9086365afc7a48ab84c790b504a2c 3 | timeCreated: 1473158875 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | CPU: x86_64 18 | DefaultValueInitialized: true 19 | OS: Windows 20 | Linux: 21 | enabled: 0 22 | settings: 23 | CPU: None 24 | Linux64: 25 | enabled: 0 26 | settings: 27 | CPU: x86_64 28 | LinuxUniversal: 29 | enabled: 0 30 | settings: 31 | CPU: None 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: None 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | OSXUniversal: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | Win: 45 | enabled: 0 46 | settings: 47 | CPU: None 48 | Win64: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | data: 53 | enabled: 0 54 | settings: {} 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c241469708aef4c28827ba2dc3b7a6b8 3 | folderAsset: yes 4 | timeCreated: 1482130516 5 | licenseType: Pro 6 | PluginImporter: 7 | serializedVersion: 1 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | Any: 14 | enabled: 1 15 | settings: 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 0 19 | Exclude LinuxUniversal: 0 20 | Exclude OSXIntel: 1 21 | Exclude OSXIntel64: 0 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 0 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: OSX 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 1 37 | settings: 38 | CPU: x86_64 39 | LinuxUniversal: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 1 49 | settings: 50 | CPU: AnyCPU 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: x86_64 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 1 61 | settings: 62 | CPU: AnyCPU 63 | data: 64 | enabled: 0 65 | settings: {} 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bfe1c04ee9054b56ae348afb6d25771 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 16C67 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | usdiRT 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleLongVersionString 14 | 15 | CFBundlePackageType 16 | APPL 17 | CFBundleSignature 18 | ???? 19 | CFBundleSupportedPlatforms 20 | 21 | MacOSX 22 | 23 | CFBundleVersion 24 | 25 | CSResourcesFileMapped 26 | 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 8C38 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 16C58 35 | DTSDKName 36 | macosx10.12 37 | DTXcode 38 | 0820 39 | DTXcodeBuild 40 | 8C38 41 | LSRequiresCarbon 42 | 43 | NSHumanReadableCopyright 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54edfb6ff06654e80b78e7d9748d5198 3 | timeCreated: 1482324552 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e37621ea409d348ae9944893526985d0 3 | folderAsset: yes 4 | timeCreated: 1482324552 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Plugins/x86_64/usdiRT.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fa0918215c11da49a51955d422c08ac 3 | timeCreated: 1493819237 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | CPU: x86_64 25 | DefaultValueInitialized: true 26 | data: 27 | first: 28 | Facebook: Win 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: None 33 | data: 34 | first: 35 | Facebook: Win64 36 | second: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | data: 41 | first: 42 | Standalone: Linux 43 | second: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | data: 48 | first: 49 | Standalone: Linux64 50 | second: 51 | enabled: 1 52 | settings: 53 | CPU: x86_64 54 | data: 55 | first: 56 | Standalone: LinuxUniversal 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | data: 62 | first: 63 | Standalone: OSXIntel 64 | second: 65 | enabled: 0 66 | settings: 67 | CPU: None 68 | data: 69 | first: 70 | Standalone: OSXIntel64 71 | second: 72 | enabled: 1 73 | settings: 74 | CPU: AnyCPU 75 | data: 76 | first: 77 | Standalone: OSXUniversal 78 | second: 79 | enabled: 0 80 | settings: 81 | CPU: x86_64 82 | data: 83 | first: 84 | Standalone: Win 85 | second: 86 | enabled: 0 87 | settings: 88 | CPU: None 89 | data: 90 | first: 91 | Standalone: Win64 92 | second: 93 | enabled: 1 94 | settings: 95 | CPU: AnyCPU 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e576d4a0d2c765640ac546962c7c8690 3 | folderAsset: yes 4 | timeCreated: 1473230459 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Prefabs/USDExporter.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/Assets/UTJ/USDForUnity/Prefabs/USDExporter.prefab -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Prefabs/USDExporter.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db3a97ab7d37dbe499c2f15eb6f8287e 3 | timeCreated: 1473401299 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43c06aa1f0e83f4418d8d070a5b62219 3 | folderAsset: yes 4 | timeCreated: 1462773048 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/Misc/Bool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UTJ.USD 5 | { 6 | // bool is marshal as int (4 byte) by default and you need ugly [MarshalAs(UnmanagedType.U1)] to pass to (or receive from) C++ code. 7 | // this struct emulates bool and marshal as byte (1 byte). this makes things bit easier in some cases. 8 | [Serializable] 9 | public struct Bool 10 | { 11 | [SerializeField] 12 | public byte v; 13 | public static implicit operator bool(Bool v) { return v.v != 0; } 14 | public static implicit operator Bool(bool v) { Bool r; r.v = v ? (byte)1 : (byte)0; return r; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/Misc/Bool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e74a0ade798956d49a6bbb833422663e 3 | timeCreated: 1457112037 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/Misc/DataPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fd1bcdf4e762654da9323b7b37cfecb 3 | timeCreated: 1457112037 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/TimeUnit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | namespace UTJ.USD 8 | { 9 | [Serializable] 10 | public class TimeUnit 11 | { 12 | public enum Types 13 | { 14 | Frame_30FPS, 15 | Frame_60FPS, 16 | Seconds, 17 | FreeScale, 18 | } 19 | [SerializeField] 20 | public Types m_type; 21 | [SerializeField] 22 | public float m_scale; 23 | 24 | public Types type 25 | { 26 | get { return m_type; } 27 | set { m_type = value; m_scale = Adjust(m_type, m_scale); } 28 | } 29 | public float scale 30 | { 31 | get { return m_scale; } 32 | set { m_scale = value; m_type = Types.FreeScale; } 33 | } 34 | 35 | public TimeUnit(Types t = Types.Frame_30FPS) 36 | { 37 | type = t; 38 | } 39 | 40 | public static float Adjust(Types t, float s) 41 | { 42 | switch (t) 43 | { 44 | case Types.Frame_30FPS: return 30.0f; 45 | case Types.Frame_60FPS: return 60.0f; 46 | case Types.Seconds: return 1.0f; 47 | default: return s; 48 | } 49 | 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/TimeUnit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f6e0b75733a2b943b6e1704911d7fa8 3 | timeCreated: 1482695354 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCamera.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UTJ.USD 5 | { 6 | 7 | [Serializable] 8 | public class UsdCamera : UsdXform 9 | { 10 | public enum AspectRatioMode 11 | { 12 | Screen, 13 | USD, 14 | } 15 | 16 | #region fields 17 | [SerializeField] AspectRatioMode m_aspectRatioMode; 18 | [SerializeField] Camera m_ucam; 19 | 20 | usdi.Camera m_camera; 21 | usdi.CameraData m_cameraData = usdi.CameraData.default_value; 22 | #endregion 23 | 24 | 25 | #region properties 26 | public usdi.Camera nativeCameraPtr 27 | { 28 | get { return m_camera; } 29 | } 30 | public AspectRatioMode aspectRatioMode 31 | { 32 | get { return m_aspectRatioMode; } 33 | set { m_aspectRatioMode = value; } 34 | } 35 | #endregion 36 | 37 | 38 | #region impl 39 | protected override UsdIComponent usdiSetupSchemaComponent() 40 | { 41 | return GetOrAddComponent(); 42 | } 43 | 44 | public override void usdiOnLoad() 45 | { 46 | base.usdiOnLoad(); 47 | m_camera = usdi.usdiAsCamera(m_schema); 48 | m_ucam = GetOrAddComponent(); 49 | } 50 | 51 | public override void usdiOnUnload() 52 | { 53 | base.usdiOnUnload(); 54 | m_camera = default(usdi.Camera); 55 | } 56 | 57 | public override void usdiAsyncUpdate(double time) 58 | { 59 | base.usdiAsyncUpdate(time); 60 | if (m_updateFlags.bits == 0) { return; } 61 | usdi.usdiCameraReadSample(m_camera, ref m_cameraData, time); 62 | } 63 | 64 | public override void usdiUpdate(double time) 65 | { 66 | if (m_updateFlags.bits == 0) { return; } 67 | base.usdiUpdate(time); 68 | 69 | if (m_goAssigned) 70 | { 71 | m_ucam.nearClipPlane = m_cameraData.near_clipping_plane; 72 | m_ucam.farClipPlane = m_cameraData.far_clipping_plane; 73 | m_ucam.fieldOfView = m_cameraData.field_of_view; 74 | 75 | if (m_aspectRatioMode == AspectRatioMode.USD) 76 | { 77 | m_ucam.aspect = m_cameraData.aspect_ratio; 78 | } 79 | else 80 | { 81 | m_ucam.ResetAspect(); 82 | } 83 | } 84 | } 85 | #endregion 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31842cd5764784047a895c2e42df7898 3 | timeCreated: 1463353987 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCameraComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | 8 | namespace UTJ.USD 9 | { 10 | [ExecuteInEditMode] 11 | public class UsdCameraComponent : UsdIComponent 12 | { 13 | [SerializeField] 14 | UsdCamera m_schema; 15 | 16 | public override UsdSchema schema 17 | { 18 | get { return m_schema; } 19 | set { m_schema = value as UsdCamera; } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCameraComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 440d511c568886046a397a58c7acde98 3 | timeCreated: 1480350071 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | 8 | namespace UTJ.USD 9 | { 10 | 11 | [ExecuteInEditMode] 12 | public abstract class UsdIComponent : MonoBehaviour 13 | { 14 | public abstract UsdSchema schema 15 | { 16 | get; 17 | set; 18 | } 19 | 20 | #if UNITY_EDITOR 21 | public virtual void OnValidate() 22 | { 23 | if(!usdi.pluginInitialized) return; 24 | 25 | var s = schema; 26 | if (s != null) 27 | { 28 | s.usdiApplyImportSettings(); 29 | s.usdiApplyVariantSets(); 30 | } 31 | } 32 | #endif 33 | 34 | void OnDestroy() 35 | { 36 | var s = schema; 37 | if (s != null) 38 | { 39 | s.usdiSync(); 40 | s.gameObject = null; 41 | } 42 | } 43 | } 44 | 45 | [ExecuteInEditMode] 46 | public class UsdComponent : UsdIComponent 47 | { 48 | [SerializeField] UsdSchema m_schema; 49 | 50 | public override UsdSchema schema 51 | { 52 | get { return m_schema; } 53 | set { m_schema = value; } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6311498132235df42ac39c5e1e8bdf7a 3 | timeCreated: 1480336481 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCustomComponentCapturer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | #if UNITY_EDITOR 6 | using UnityEditor; 7 | #endif 8 | 9 | 10 | namespace UTJ.USD 11 | { 12 | public abstract class UsdCustomComponentCapturer : MonoBehaviour 13 | { 14 | #region impl 15 | public abstract void CreateUSDObject(usdi.Context ctx, usdi.Schema parent); 16 | 17 | // capture data. called from main thread. 18 | public abstract void Capture(double t); 19 | 20 | // write data to USD. called from worker thread. 21 | // you can write data in Capture(), but do it in Flush() is better for performance. 22 | public abstract void Flush(double t); 23 | #endregion 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdCustomComponentCapturer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bd46b5dcd72bc64e8ded5a6a4556d0f 3 | timeCreated: 1463386292 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8ca5696f0dc878479487f856b98faa5 3 | timeCreated: 1463384997 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51c0443c1397fa44ea595a1e833dc805 3 | timeCreated: 1463070700 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdMeshComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | 8 | namespace UTJ.USD 9 | { 10 | public class UsdMeshComponent : UsdIComponent 11 | { 12 | [SerializeField] 13 | UsdMesh m_schema; 14 | 15 | public override UsdSchema schema 16 | { 17 | get { return m_schema; } 18 | set { m_schema = value as UsdMesh; } 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdMeshComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92e4a924df810a14a89490c12853914b 3 | timeCreated: 1480350071 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdMeshExportSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Reflection; 4 | using UnityEngine; 5 | #if UNITY_EDITOR 6 | using UnityEditor; 7 | #endif 8 | 9 | namespace UTJ.USD 10 | { 11 | 12 | [AddComponentMenu("USD/Mesh Export Config")] 13 | public class UsdMeshExportSettings : MonoBehaviour 14 | { 15 | #region fields 16 | public bool m_captureNormals = true; 17 | public bool m_captureTangents = true; 18 | public bool m_captureUVs = true; 19 | public bool m_captureBones = false; 20 | public bool m_captureEveryFrame = false; 21 | public bool m_captureEveryFrameUV = false; 22 | public bool m_captureEveryFrameIndices = false; 23 | #endregion 24 | 25 | 26 | #region callbacks 27 | #if UNITY_EDITOR 28 | void Reset() 29 | { 30 | if(GetComponent() != null) 31 | { 32 | m_captureEveryFrame = false; 33 | } 34 | if (GetComponent() != null) 35 | { 36 | m_captureEveryFrame = true; 37 | } 38 | } 39 | #endif 40 | #endregion 41 | 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdMeshExportSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2421587bf2d06844a2d96d50d973a2e 3 | timeCreated: 1473394335 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdParticleExportSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Reflection; 4 | using UnityEngine; 5 | #if UNITY_EDITOR 6 | using UnityEditor; 7 | #endif 8 | 9 | namespace UTJ.USD 10 | { 11 | 12 | [AddComponentMenu("USD/Particle Export Config")] 13 | public class UsdParticleExportSettings : MonoBehaviour 14 | { 15 | #region fields 16 | public bool m_captureRotations = true; 17 | #endregion 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdParticleExportSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 465257f56a958e3429db78667d9fefc1 3 | timeCreated: 1473403980 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdPoints.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 772ec1ef0bbedab47a889abec71c2aa2 3 | timeCreated: 1463353987 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdPointsComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | 8 | namespace UTJ.USD 9 | { 10 | [ExecuteInEditMode] 11 | public class UsdPointsComponent : UsdIComponent 12 | { 13 | [SerializeField] 14 | UsdPoints m_schema; 15 | 16 | public override UsdSchema schema 17 | { 18 | get { return m_schema; } 19 | set { m_schema = value as UsdPoints; } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdPointsComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd2c5d8fb6e4c1347b7961bd1c25d071 3 | timeCreated: 1480350071 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdSchema.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a2e4f81e7d1f284d81e3d6d1b49e8a2 3 | timeCreated: 1463070700 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5765497019444bb4e99a4f482b1445dc 3 | timeCreated: 1462773048 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdSubmesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77a31924e7d3f5e4ca907a3e3ce9b43f 3 | timeCreated: 1479251033 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdTransformExportSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Reflection; 4 | using UnityEngine; 5 | #if UNITY_EDITOR 6 | using UnityEditor; 7 | #endif 8 | 9 | namespace UTJ.USD 10 | { 11 | 12 | [AddComponentMenu("USD/Transform Export Config")] 13 | public class UsdTransformExportSettings : MonoBehaviour 14 | { 15 | #region fields 16 | public bool m_captureEveryFrame = true; 17 | #endregion 18 | 19 | #region callbacks 20 | void Reset() 21 | { 22 | if (gameObject.isStatic) 23 | { 24 | m_captureEveryFrame = false; 25 | } 26 | } 27 | #endregion 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdTransformExportSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52f9bcbb3616f8a4b9638ea33d1c4d92 3 | timeCreated: 1473416653 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdXform.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UTJ.USD 5 | { 6 | 7 | [Serializable] 8 | public class UsdXform : UsdSchema 9 | { 10 | #region fields 11 | [SerializeField] protected Transform m_trans; 12 | 13 | usdi.Xform m_xf; 14 | usdi.XformData m_xfData = usdi.XformData.default_value; 15 | protected usdi.UpdateFlags m_updateFlags; 16 | #endregion 17 | 18 | #region properties 19 | public usdi.Xform nativeXformPtr 20 | { 21 | get { return m_xf; } 22 | } 23 | #endregion 24 | 25 | #region impl 26 | protected override UsdIComponent usdiSetupSchemaComponent() 27 | { 28 | return GetOrAddComponent(); 29 | } 30 | 31 | public override void usdiOnLoad() 32 | { 33 | base.usdiOnLoad(); 34 | m_xf = usdi.usdiAsXform(m_schema); 35 | m_trans = GetComponent(); 36 | } 37 | 38 | public override void usdiOnUnload() 39 | { 40 | base.usdiOnUnload(); 41 | m_xf = default(usdi.Xform); 42 | } 43 | 44 | public override void usdiAsyncUpdate(double time) 45 | { 46 | m_updateFlags = usdi.usdiPrimGetUpdateFlags(m_xf); 47 | usdi.usdiXformReadSample(m_xf, ref m_xfData, time); 48 | } 49 | 50 | public override void usdiUpdate(double time) 51 | { 52 | base.usdiUpdate(time); 53 | if(m_goAssigned) 54 | { 55 | usdi.TransformAssign(m_trans, ref m_xfData); 56 | } 57 | } 58 | #endregion 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdXform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d23d26cf19b4c1e47aa98af9a94dec43 3 | timeCreated: 1463134543 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdXformComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | 8 | namespace UTJ.USD 9 | { 10 | [ExecuteInEditMode] 11 | public class UsdXformComponent : UsdIComponent 12 | { 13 | [SerializeField] 14 | UsdXform m_schema; 15 | 16 | public override UsdSchema schema 17 | { 18 | get { return m_schema; } 19 | set { m_schema = value as UsdXform; } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/UsdXformComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16d5a154d6186dc42b65ca2c00c37dfe 3 | timeCreated: 1480350071 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/UTJ/USDForUnity/Scripts/usdi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a800215ef7a64f4b9ebe99d20293335 3 | timeCreated: 1462773048 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/Assets/usdiPackaging.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using UnityEditor; 4 | 5 | namespace UTJ.USD 6 | { 7 | public class UsdPackaging 8 | { 9 | [MenuItem("Assets/Make USDForUnity.unitypackage")] 10 | public static void MakePackage() 11 | { 12 | string[] files = new string[] 13 | { 14 | "Assets/UTJ", 15 | "Assets/USDExamples", 16 | "Assets/StreamingAssets/USDForUnity", 17 | "Assets/StreamingAssets/USDExamples", 18 | }; 19 | AssetDatabase.ExportPackage(files, "USDForUnity.unitypackage", ExportPackageOptions.Recurse); 20 | } 21 | 22 | } 23 | 24 | } 25 | #endif // UNITY_EDITOR 26 | -------------------------------------------------------------------------------- /USDForUnity/Assets/usdiPackaging.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa514c152758413418e1ceb8b6f4ac32 3 | timeCreated: 1463388442 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | m_SettingNames: 89 | - Humanoid 90 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/NavMeshProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/ProjectSettings/NavMeshProjectSettings.asset -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ShowColliderAABB: 0 29 | m_ContactArrowScale: 0.2 30 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 31 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 32 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 33 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 34 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 35 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.0f3 2 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unity3d-jp/USDForUnity/1cdf1d8e6061215528382c16d7f5d0d7cd9a1078/USDForUnity/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /USDForUnity/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | CrashReportingSettings: 11 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 12 | m_Enabled: 0 13 | m_CaptureEditorExceptions: 1 14 | UnityPurchasingSettings: 15 | m_Enabled: 0 16 | m_TestMode: 0 17 | UnityAnalyticsSettings: 18 | m_Enabled: 0 19 | m_InitializeOnStartup: 1 20 | m_TestMode: 0 21 | m_TestEventUrl: 22 | m_TestConfigUrl: 23 | UnityAdsSettings: 24 | m_Enabled: 0 25 | m_InitializeOnStartup: 1 26 | m_TestMode: 0 27 | m_EnabledPlatforms: 4294967295 28 | m_IosGameId: 29 | m_AndroidGameId: 30 | PerformanceReportingSettings: 31 | m_Enabled: 0 32 | --------------------------------------------------------------------------------