├── .gitignore ├── maya └── maya2JanusAnimExport.mel ├── unity ├── .gitignore ├── Project │ └── JanusExporter │ │ ├── .gitignore │ │ ├── Assets │ │ ├── JanusExporter.meta │ │ └── JanusExporter │ │ │ ├── Codebase.meta │ │ │ ├── Codebase │ │ │ ├── Components.meta │ │ │ ├── Components │ │ │ │ ├── IJanusObject.cs │ │ │ │ ├── IJanusObject.cs.meta │ │ │ │ ├── JanusVREntryPortal.cs │ │ │ │ ├── JanusVREntryPortal.cs.meta │ │ │ │ ├── JanusVRLink.cs │ │ │ │ └── JanusVRLink.cs.meta │ │ │ ├── Editor.meta │ │ │ └── Editor │ │ │ │ ├── Assets.meta │ │ │ │ ├── Assets │ │ │ │ ├── AssetObject.meta │ │ │ │ ├── AssetObject │ │ │ │ │ ├── BruteForce.meta │ │ │ │ │ ├── BruteForce │ │ │ │ │ │ ├── BruteForceMeshExportData.cs │ │ │ │ │ │ ├── BruteForceMeshExportData.cs.meta │ │ │ │ │ │ ├── BruteForceObjectScanner.cs │ │ │ │ │ │ └── BruteForceObjectScanner.cs.meta │ │ │ │ │ ├── LightmapIDScanner.cs │ │ │ │ │ ├── LightmapIDScanner.cs.meta │ │ │ │ │ ├── PerLightmapID.meta │ │ │ │ │ ├── PerLightmapID │ │ │ │ │ │ ├── PerLightmapIDScanner.cs │ │ │ │ │ │ └── PerLightmapIDScanner.cs.meta │ │ │ │ │ ├── PerMaterial.meta │ │ │ │ │ └── PerMaterial │ │ │ │ │ │ ├── PerMaterialMeshExportData.cs │ │ │ │ │ │ ├── PerMaterialMeshExportData.cs.meta │ │ │ │ │ │ ├── PerMaterialMeshExportDataObj.cs │ │ │ │ │ │ ├── PerMaterialMeshExportDataObj.cs.meta │ │ │ │ │ │ ├── PerMaterialObjectScanner.cs │ │ │ │ │ │ └── PerMaterialObjectScanner.cs.meta │ │ │ │ ├── AssetObjectSearchType.cs │ │ │ │ ├── AssetObjectSearchType.cs.meta │ │ │ │ ├── JanusComp.meta │ │ │ │ ├── JanusComp │ │ │ │ │ ├── JanusComponentExporter.cs │ │ │ │ │ └── JanusComponentExporter.cs.meta │ │ │ │ ├── Material.meta │ │ │ │ ├── Material │ │ │ │ │ ├── LightmapExportType.cs │ │ │ │ │ ├── LightmapExportType.cs.meta │ │ │ │ │ ├── MaterialScanner.cs │ │ │ │ │ └── MaterialScanner.cs.meta │ │ │ │ ├── ObjectScanner.cs │ │ │ │ ├── ObjectScanner.cs.meta │ │ │ │ ├── ObjectScannerFactory.cs │ │ │ │ └── ObjectScannerFactory.cs.meta │ │ │ │ ├── Cmft.meta │ │ │ │ ├── Cmft │ │ │ │ ├── CmftInterop.cs │ │ │ │ └── CmftInterop.cs.meta │ │ │ │ ├── Content.meta │ │ │ │ ├── Content │ │ │ │ ├── Mesh.meta │ │ │ │ ├── Mesh │ │ │ │ │ ├── ExportMeshFormat.cs │ │ │ │ │ ├── ExportMeshFormat.cs.meta │ │ │ │ │ ├── FBX.meta │ │ │ │ │ ├── FBX │ │ │ │ │ │ ├── FbxExporter.cs │ │ │ │ │ │ ├── FbxExporter.cs.meta │ │ │ │ │ │ ├── FbxExporterInterop.cs │ │ │ │ │ │ ├── FbxExporterInterop.cs.meta │ │ │ │ │ │ ├── FbxVector2.cs │ │ │ │ │ │ ├── FbxVector2.cs.meta │ │ │ │ │ │ ├── FbxVector3.cs │ │ │ │ │ │ └── FbxVector3.cs.meta │ │ │ │ │ ├── MeshData.cs │ │ │ │ │ ├── MeshData.cs.meta │ │ │ │ │ ├── MeshExportParameters.cs │ │ │ │ │ ├── MeshExportParameters.cs.meta │ │ │ │ │ ├── MeshExporter.cs │ │ │ │ │ └── MeshExporter.cs.meta │ │ │ │ ├── Texture.meta │ │ │ │ └── Texture │ │ │ │ │ ├── ExportTextureFormat.cs │ │ │ │ │ ├── ExportTextureFormat.cs.meta │ │ │ │ │ ├── LightmapTextureFormat.cs │ │ │ │ │ ├── LightmapTextureFormat.cs.meta │ │ │ │ │ ├── TextureFilterMode.cs │ │ │ │ │ └── TextureFilterMode.cs.meta │ │ │ │ ├── Data.meta │ │ │ │ ├── Data │ │ │ │ ├── Asset.meta │ │ │ │ ├── Asset │ │ │ │ │ ├── AssetImage.cs │ │ │ │ │ ├── AssetImage.cs.meta │ │ │ │ │ ├── AssetObject.cs │ │ │ │ │ ├── AssetObject.cs.meta │ │ │ │ │ ├── FireBoxAssets.cs │ │ │ │ │ ├── FireBoxAssets.cs.meta │ │ │ │ │ ├── JanusAsset.cs │ │ │ │ │ └── JanusAsset.cs.meta │ │ │ │ ├── FireBoxRoom.cs │ │ │ │ ├── FireBoxRoom.cs.meta │ │ │ │ ├── JanusRoom.cs │ │ │ │ ├── JanusRoom.cs.meta │ │ │ │ ├── Room.meta │ │ │ │ └── Room │ │ │ │ │ ├── JanusRoomElement.cs │ │ │ │ │ ├── JanusRoomElement.cs.meta │ │ │ │ │ ├── LinkObject.cs │ │ │ │ │ ├── LinkObject.cs.meta │ │ │ │ │ ├── Room.cs │ │ │ │ │ ├── Room.cs.meta │ │ │ │ │ ├── RoomObject.cs │ │ │ │ │ └── RoomObject.cs.meta │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ ├── JanusVREntryPortalEditor.cs │ │ │ │ ├── JanusVREntryPortalEditor.cs.meta │ │ │ │ ├── JanusVRLinkEditor.cs │ │ │ │ └── JanusVRLinkEditor.cs.meta │ │ │ │ ├── ExportedObject.cs │ │ │ │ ├── ExportedObject.cs.meta │ │ │ │ ├── Exporter.meta │ │ │ │ ├── Exporter │ │ │ │ ├── Exporter.cs │ │ │ │ ├── Exporter.cs.meta │ │ │ │ ├── Probe.meta │ │ │ │ ├── Probe │ │ │ │ │ ├── ProbeExporter.cs │ │ │ │ │ └── ProbeExporter.cs.meta │ │ │ │ ├── Skybox.meta │ │ │ │ └── Skybox │ │ │ │ │ ├── SkyboxExporter.cs │ │ │ │ │ └── SkyboxExporter.cs.meta │ │ │ │ ├── Shaders.meta │ │ │ │ ├── Shaders │ │ │ │ ├── ExposureShader.shader │ │ │ │ ├── ExposureShader.shader.meta │ │ │ │ ├── LMapBaked.shader │ │ │ │ ├── LMapBaked.shader.meta │ │ │ │ ├── LMapPacked.shader │ │ │ │ ├── LMapPacked.shader.meta │ │ │ │ ├── LMapUnpacked.shader │ │ │ │ ├── LMapUnpacked.shader.meta │ │ │ │ ├── UnityVC.meta │ │ │ │ └── UnityVC │ │ │ │ │ ├── Standard.mat │ │ │ │ │ ├── Standard.mat.meta │ │ │ │ │ ├── StandardVC.shader │ │ │ │ │ ├── StandardVC.shader.meta │ │ │ │ │ ├── UnityVC.cginc │ │ │ │ │ ├── UnityVC.cginc.meta │ │ │ │ │ ├── UnityVCShadow.cginc │ │ │ │ │ └── UnityVCShadow.cginc.meta │ │ │ │ ├── Unused.meta │ │ │ │ ├── Unused │ │ │ │ ├── Compression.meta │ │ │ │ ├── Compression │ │ │ │ │ ├── GZipExporter.cs │ │ │ │ │ ├── GZipExporter.cs.meta │ │ │ │ │ ├── Unity.IO.Compression.meta │ │ │ │ │ └── Unity.IO.Compression │ │ │ │ │ │ ├── BlockType.cs │ │ │ │ │ │ ├── BlockType.cs.meta │ │ │ │ │ │ ├── CompressionMode.cs │ │ │ │ │ │ ├── CompressionMode.cs.meta │ │ │ │ │ │ ├── CopyEncoder.cs │ │ │ │ │ │ ├── CopyEncoder.cs.meta │ │ │ │ │ │ ├── Crc32Helper.cs │ │ │ │ │ │ ├── Crc32Helper.cs.meta │ │ │ │ │ │ ├── DeflateInput.cs │ │ │ │ │ │ ├── DeflateInput.cs.meta │ │ │ │ │ │ ├── DeflateStream.cs │ │ │ │ │ │ ├── DeflateStream.cs.meta │ │ │ │ │ │ ├── DeflateStreamAsyncResult.cs │ │ │ │ │ │ ├── DeflateStreamAsyncResult.cs.meta │ │ │ │ │ │ ├── DeflaterManaged.cs │ │ │ │ │ │ ├── DeflaterManaged.cs.meta │ │ │ │ │ │ ├── FastEncoder.cs │ │ │ │ │ │ ├── FastEncoder.cs.meta │ │ │ │ │ │ ├── FastEncoderStatics.cs │ │ │ │ │ │ ├── FastEncoderStatics.cs.meta │ │ │ │ │ │ ├── FastEncoderWindow.cs │ │ │ │ │ │ ├── FastEncoderWindow.cs.meta │ │ │ │ │ │ ├── FileFormats.cs │ │ │ │ │ │ ├── FileFormats.cs.meta │ │ │ │ │ │ ├── GZipDecoder.cs │ │ │ │ │ │ ├── GZipDecoder.cs.meta │ │ │ │ │ │ ├── GZipStream.cs │ │ │ │ │ │ ├── GZipStream.cs.meta │ │ │ │ │ │ ├── GZipUtils.cs │ │ │ │ │ │ ├── GZipUtils.cs.meta │ │ │ │ │ │ ├── HuffmanTree.cs │ │ │ │ │ │ ├── HuffmanTree.cs.meta │ │ │ │ │ │ ├── IDeflater.cs │ │ │ │ │ │ ├── IDeflater.cs.meta │ │ │ │ │ │ ├── Inflater.cs │ │ │ │ │ │ ├── Inflater.cs.meta │ │ │ │ │ │ ├── InflaterState.cs │ │ │ │ │ │ ├── InflaterState.cs.meta │ │ │ │ │ │ ├── InputBuffer.cs │ │ │ │ │ │ ├── InputBuffer.cs.meta │ │ │ │ │ │ ├── InvalidDataException.cs │ │ │ │ │ │ ├── InvalidDataException.cs.meta │ │ │ │ │ │ ├── Match.cs │ │ │ │ │ │ ├── Match.cs.meta │ │ │ │ │ │ ├── MatchState.cs │ │ │ │ │ │ ├── MatchState.cs.meta │ │ │ │ │ │ ├── OutputBuffer.cs │ │ │ │ │ │ ├── OutputBuffer.cs.meta │ │ │ │ │ │ ├── OutputWindow.cs │ │ │ │ │ │ ├── OutputWindow.cs.meta │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── README.md.meta │ │ │ │ │ │ ├── SR.cs │ │ │ │ │ │ └── SR.cs.meta │ │ │ │ ├── Material.meta │ │ │ │ ├── Material │ │ │ │ │ ├── MtlImporterWindow.cs │ │ │ │ │ └── MtlImporterWindow.cs.meta │ │ │ │ ├── Texture.meta │ │ │ │ ├── Texture │ │ │ │ │ ├── DDSExporter.cs │ │ │ │ │ └── DDSExporter.cs.meta │ │ │ │ ├── Updater.meta │ │ │ │ └── Updater │ │ │ │ │ ├── JanusVRUpdater.cs │ │ │ │ │ └── JanusVRUpdater.cs.meta │ │ │ │ ├── Util.meta │ │ │ │ ├── Util │ │ │ │ ├── HtmlUtil.cs │ │ │ │ ├── HtmlUtil.cs.meta │ │ │ │ ├── JanusUtil.cs │ │ │ │ ├── JanusUtil.cs.meta │ │ │ │ ├── MathUtil.cs │ │ │ │ ├── MathUtil.cs.meta │ │ │ │ ├── ReflectionUtil.cs │ │ │ │ ├── ReflectionUtil.cs.meta │ │ │ │ ├── TextureUtil.cs │ │ │ │ ├── TextureUtil.cs.meta │ │ │ │ ├── UnityUtil.cs │ │ │ │ ├── UnityUtil.cs.meta │ │ │ │ ├── Vector3Util.cs │ │ │ │ └── Vector3Util.cs.meta │ │ │ │ ├── Windows.meta │ │ │ │ ├── Windows │ │ │ │ ├── JanusVRExporterWindow.cs │ │ │ │ ├── JanusVRExporterWindow.cs.meta │ │ │ │ ├── JanusVRWelcome.cs │ │ │ │ ├── JanusVRWelcome.cs.meta │ │ │ │ ├── LightmapPreviewWindow.cs │ │ │ │ └── LightmapPreviewWindow.cs.meta │ │ │ │ ├── Writer.meta │ │ │ │ └── Writer │ │ │ │ ├── JanusRoomWriterXml.cs │ │ │ │ └── JanusRoomWriterXml.cs.meta │ │ │ ├── JanusGlobals.cs │ │ │ ├── JanusGlobals.cs.meta │ │ │ ├── JanusResources.cs │ │ │ ├── JanusResources.cs.meta │ │ │ ├── Plugins.meta │ │ │ ├── Plugins │ │ │ ├── x64.meta │ │ │ ├── x64 │ │ │ │ ├── Half.dll │ │ │ │ ├── Half.dll.meta │ │ │ │ ├── Iex-2_2.dll │ │ │ │ ├── Iex-2_2.dll.meta │ │ │ │ ├── IexMath-2_2.dll │ │ │ │ ├── IexMath-2_2.dll.meta │ │ │ │ ├── IlmImf-2_2.dll │ │ │ │ ├── IlmImf-2_2.dll.meta │ │ │ │ ├── IlmImfUtil-2_2.dll │ │ │ │ ├── IlmImfUtil-2_2.dll.meta │ │ │ │ ├── IlmThread-2_2.dll │ │ │ │ ├── IlmThread-2_2.dll.meta │ │ │ │ ├── Imath-2_2.dll │ │ │ │ ├── Imath-2_2.dll.meta │ │ │ │ ├── UnityFBXExporter.dll │ │ │ │ ├── UnityFBXExporter.dll.meta │ │ │ │ ├── cmftRelease.dll │ │ │ │ ├── cmftRelease.dll.meta │ │ │ │ ├── zlib.dll │ │ │ │ └── zlib.dll.meta │ │ │ ├── x86.meta │ │ │ └── x86 │ │ │ │ ├── Half.dll │ │ │ │ ├── Half.dll.meta │ │ │ │ ├── Iex-2_2.dll │ │ │ │ ├── Iex-2_2.dll.meta │ │ │ │ ├── IexMath-2_2.dll │ │ │ │ ├── IexMath-2_2.dll.meta │ │ │ │ ├── IlmImf-2_2.dll │ │ │ │ ├── IlmImf-2_2.dll.meta │ │ │ │ ├── IlmImfUtil-2_2.dll │ │ │ │ ├── IlmImfUtil-2_2.dll.meta │ │ │ │ ├── IlmThread-2_2.dll │ │ │ │ ├── IlmThread-2_2.dll.meta │ │ │ │ ├── Imath-2_2.dll │ │ │ │ ├── Imath-2_2.dll.meta │ │ │ │ ├── UnityFBXExporter.dll │ │ │ │ ├── UnityFBXExporter.dll.meta │ │ │ │ ├── cmftRelease.dll │ │ │ │ ├── cmftRelease.dll.meta │ │ │ │ ├── cmftclr.dll │ │ │ │ ├── cmftclr.dll.meta │ │ │ │ ├── zlib.dll │ │ │ │ └── zlib.dll.meta │ │ │ ├── Resources.meta │ │ │ └── Resources │ │ │ ├── janusvricon.png │ │ │ └── janusvricon.png.meta │ │ ├── JanusExporter.Editor.csproj │ │ ├── JanusExporter.csproj │ │ ├── JanusExporter.sln │ │ ├── ProjectSettings │ │ ├── AudioManager.asset │ │ ├── ClusterInputManager.asset │ │ ├── DynamicsManager.asset │ │ ├── EditorBuildSettings.asset │ │ ├── EditorSettings.asset │ │ ├── GraphicsSettings.asset │ │ ├── InputManager.asset │ │ ├── NavMeshAreas.asset │ │ ├── NetworkManager.asset │ │ ├── Physics2DSettings.asset │ │ ├── ProjectSettings.asset │ │ ├── ProjectVersion.txt │ │ ├── QualitySettings.asset │ │ ├── TagManager.asset │ │ ├── TimeManager.asset │ │ ├── UnityAdsSettings.asset │ │ └── UnityConnectSettings.asset │ │ └── UpgradeLog.htm └── README.md └── unreal ├── .gitignore ├── BuildPlugin.bat ├── JanusExporter ├── .gitignore ├── Config │ └── FilterPlugin.ini ├── JanusExporter.uplugin ├── Resources │ └── Icon128.png └── Source │ └── JanusExporter │ ├── JanusExporter.Build.cs │ ├── Private │ ├── BaseEditorTool.cpp │ ├── BaseEditorToolCustomization.cpp │ ├── BaseEditorToolCustomization.h │ ├── FJanusExporterModule.cpp │ ├── FJanusExporterModulePrivatePCH.h │ ├── JanusCommands.cpp │ ├── JanusCommands.h │ ├── JanusExporterStyle.cpp │ ├── JanusExporterStyle.h │ ├── JanusExporterUI.cpp │ ├── JanusExporterUI.h │ ├── JanusExporterWindow.cpp │ ├── JanusExporterWindow.h │ ├── JanusImporterIncludes.h │ ├── WinUtil.cpp │ └── WinUtil.h │ └── Public │ └── BaseEditorTool.h └── Readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.suo 2 | bin/ 3 | obj/ 4 | Library/ 5 | .vs/ 6 | /unity/Project/JanusExporterProject/Temp 7 | -------------------------------------------------------------------------------- /unity/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/.gitignore: -------------------------------------------------------------------------------- 1 | /Temp 2 | /Library -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19cce43adcd52af4eb7c7fb4da4b1dfe 3 | folderAsset: yes 4 | timeCreated: 1475522812 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5218ba0991bd9b4f974defa968a337a 3 | folderAsset: yes 4 | timeCreated: 1499951621 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d92644b17dda7d438ba69ac698aaf1c 3 | folderAsset: yes 4 | timeCreated: 1499951621 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components/IJanusObject.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace JanusVR 8 | { 9 | public interface IJanusObject 10 | { 11 | void UpdateScale(float scale); 12 | } 13 | } 14 | #endif -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components/IJanusObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5c94bd2f41a45a47aa811d571fabda8 3 | timeCreated: 1490031598 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components/JanusVREntryPortal.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13c8e6b131d41584f8e7a30cad22f922 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components/JanusVRLink.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 310d040d2de5f904abeaaf937a03c3b2 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 187ae92110edee04f85626d47c07dba5 3 | folderAsset: yes 4 | timeCreated: 1499951621 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b010a57c534c58e4fab374c48b435856 3 | folderAsset: yes 4 | timeCreated: 1497486280 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb1f8fc7e52dd444795bdfa7fee5f326 3 | folderAsset: yes 4 | timeCreated: 1497511318 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/BruteForce.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2a8c8867f93d8046b124a43b04cee7b 3 | folderAsset: yes 4 | timeCreated: 1497486280 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/BruteForce/BruteForceMeshExportData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class BruteForceMeshExportData 10 | { 11 | public Mesh Mesh { get; set; } 12 | public string MeshId { get; set; } 13 | public AssetObject Asset { get; set; } 14 | 15 | public string ExportedPath { get; set; } 16 | public Texture2D Preview { get; set; } 17 | public ExportMeshFormat Format { get; set; } 18 | } 19 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/BruteForce/BruteForceMeshExportData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ce8c51d1fdcfe74b9f0884eae1d8246 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/BruteForce/BruteForceObjectScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd063cf9ac2c3ec42be75e371798b37b 3 | timeCreated: 1497486280 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/LightmapIDScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90b3b698201d7f14899c556acacc394e 3 | timeCreated: 1499477994 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerLightmapID.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb1be8969a4d04a4aa3c13966fcf10c0 3 | folderAsset: yes 4 | timeCreated: 1499477994 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerLightmapID/PerLightmapIDScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1806e4ef05f21c347a617d8051b7bd58 3 | timeCreated: 1499477994 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13d487a9f14bea5408ea529b95b67a4f 3 | folderAsset: yes 4 | timeCreated: 1497839325 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial/PerMaterialMeshExportData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class PerMaterialMeshExportData 10 | { 11 | public RoomObject Object { get; set; } 12 | public List Meshes { get; set; } 13 | public AssetObject Asset { get; set; } 14 | 15 | public PerMaterialMeshExportData() 16 | { 17 | Meshes = new List(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial/PerMaterialMeshExportData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c5547e31d656b54d88997240689896f 3 | timeCreated: 1497840379 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial/PerMaterialMeshExportDataObj.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public struct PerMaterialMeshExportDataObj 10 | { 11 | public Mesh Mesh { get; set; } 12 | public Transform Transform { get; set; } 13 | public MeshRenderer Renderer { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial/PerMaterialMeshExportDataObj.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52673710a46d45e43ab58305e400a8fc 3 | timeCreated: 1497842446 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObject/PerMaterial/PerMaterialObjectScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af9cb33470327d0489c220b320112581 3 | timeCreated: 1497840379 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObjectSearchType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum AssetObjectSearchType 9 | { 10 | // Each Mesh that is used inside Unity becomes a single model file outside 11 | EachMesh, 12 | // 13 | PerMaterial, 14 | // Maintains the original model file hierarchy, while also re-exporting it 15 | //KeepHierarchy, 16 | // Modify model transformations to match Janus space while keeping the original model files 17 | //PassthroughKeepHierarchy, 18 | 19 | PerLightmapId 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/AssetObjectSearchType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5676f3320a4026b4bbdbb487b78f1cdc 3 | timeCreated: 1497049526 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/JanusComp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbd9f5b7ba43c04468df0c0d7b0c3421 3 | folderAsset: yes 4 | timeCreated: 1497643232 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/JanusComp/JanusComponentExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class JanusComponentExtractor 10 | { 11 | private JanusRoom room; 12 | public JanusComponentExtractor(JanusRoom room) 13 | { 14 | this.room = room; 15 | } 16 | 17 | public bool CanExport(Component[] comps) 18 | { 19 | return !comps.Any(c => c is JanusVREntryPortal || c is JanusVRLink); 20 | } 21 | 22 | public void Process(Component[] comps) 23 | { 24 | float uniformScale = room.UniformScale; 25 | 26 | for (int i = 0; i < comps.Length; i++) 27 | { 28 | Component comp = comps[i]; 29 | if (!comp) 30 | { 31 | continue; 32 | } 33 | 34 | if (comp is JanusVREntryPortal) 35 | { 36 | JanusVREntryPortal portal = (JanusVREntryPortal)comp; 37 | Transform portalTransform = portal.transform; 38 | 39 | Vector3 portalPos = JanusUtil.ConvertPosition(portal.GetJanusPosition(), uniformScale); 40 | Vector3 xDir, yDir, zDir; 41 | 42 | Quaternion rot = portalTransform.rotation; 43 | //rot.eulerAngles += new Vector3(0, 180, 0); 44 | JanusUtil.GetJanusVectors(rot, out xDir, out yDir, out zDir); 45 | 46 | room.PortalPos = portalPos; 47 | room.PortalXDir = xDir; 48 | room.PortalYDir = yDir; 49 | room.PortalZDir = zDir; 50 | } 51 | else if (comp is JanusVRLink) 52 | { 53 | JanusVRLink link = (JanusVRLink)comp; 54 | 55 | Transform trans = link.transform; 56 | Vector3 pos = JanusUtil.ConvertPosition(link.GetJanusPosition(), uniformScale); 57 | Vector3 sca = trans.localScale; 58 | Vector3 xDir, yDir, zDir; 59 | JanusUtil.GetJanusVectors(trans.rotation, out xDir, out yDir, out zDir); 60 | 61 | LinkObject linkObj = new LinkObject(); 62 | linkObj.pos = pos; 63 | linkObj.xDir = xDir; 64 | linkObj.yDir = yDir; 65 | linkObj.zDir = zDir; 66 | linkObj.col = link.Color; 67 | linkObj.scale = sca; 68 | linkObj.url = link.url; 69 | linkObj.title = link.title; 70 | //linkObj.image_id = link.url; 71 | 72 | Material mat = link.meshRenderer.sharedMaterial; 73 | Texture tex = mat.mainTexture; 74 | if (tex != null) 75 | { 76 | } 77 | 78 | room.AddLinkObject(linkObj); 79 | } 80 | } 81 | } 82 | 83 | public void ProcessNewRoomObject(RoomObject rObj, Component[] comps) 84 | { 85 | for (int i = 0; i < comps.Length; i++) 86 | { 87 | Component comp = comps[i]; 88 | if (comp is MeshCollider) 89 | { 90 | rObj.collision_id = rObj.id; 91 | } 92 | else if (comp is BoxCollider) 93 | { 94 | 95 | } 96 | else if (comp is SphereCollider) 97 | { 98 | 99 | } 100 | else if (comp is CapsuleCollider) 101 | { 102 | 103 | } 104 | } 105 | } 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/JanusComp/JanusComponentExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae2edfb3e542e51439405971bb8bf02f 3 | timeCreated: 1497643232 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/Material.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51016bcb34224c7438e7290c7f0c988b 3 | folderAsset: yes 4 | timeCreated: 1497511318 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/Material/LightmapExportType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum LightmapExportType 9 | { 10 | // None: No lightmaps 11 | None, 12 | 13 | // BakedMaterial: Each object gets a texture 14 | // with the lightmap and the material baked in 15 | // (memory redundant, wastes space) 16 | BakedMaterial, 17 | 18 | // Packed: Default Unity configuration but converted to SDR, 19 | // exports all lightmaps on their original packed configuration 20 | Packed, 21 | 22 | // PackedSource: Exports exactly the HDR lighting data straight from Unity with no modifications 23 | //PackedSourceEXR, 24 | 25 | // Unpacked: Exports all lightmaps, but 26 | // each object gets its own texture instead of sharing one. 27 | // There's nothing lost in quality terms, just 28 | // memory (as they are forced power of 2) 29 | Unpacked 30 | } 31 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/Material/LightmapExportType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41fb67388c35dee4ca199032c4911bb4 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/Material/MaterialScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57d30ac0cb2eb02429aa51db5d86be48 3 | timeCreated: 1497541765 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/ObjectScanner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public abstract class ObjectScanner 10 | { 11 | public abstract void Initialize(JanusRoom room, GameObject[] rootObjects); 12 | public abstract void ExportAssetImages(); 13 | public abstract void ExportAssetObjects(); 14 | } 15 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/ObjectScanner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5db12ff54ec7f27468f5f1015c4cbbbb 3 | timeCreated: 1497486280 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/ObjectScannerFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public static class ObjectScannerFactory 9 | { 10 | public static ObjectScanner GetObjectScanner(AssetObjectSearchType type, JanusRoom room) 11 | { 12 | switch (type) 13 | { 14 | case AssetObjectSearchType.EachMesh: 15 | return new BruteForceObjectScanner(); 16 | case AssetObjectSearchType.PerMaterial: 17 | return new PerMaterialObjectScanner(); 18 | case AssetObjectSearchType.PerLightmapId: 19 | return new PerLightmapIDScanner(); 20 | default: 21 | return null; 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Assets/ObjectScannerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a687c74c9fc36c849bbb84706f1bbc81 3 | timeCreated: 1497487201 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Cmft.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e92fc16f4c8fa7418435f31ed748dd8 3 | folderAsset: yes 4 | timeCreated: 1492080780 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Cmft/CmftInterop.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | 7 | namespace JanusVR.CMFT 8 | { 9 | public static class CmftInterop 10 | { 11 | [DllImport("cmftRelease", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 12 | private extern static void Execute([MarshalAs(UnmanagedType.LPStr)] string cmd); 13 | 14 | public static void DoExecute(string cmd) 15 | { 16 | Execute(cmd); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Cmft/CmftInterop.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de3cae9ef347fc8448940d11102e7605 3 | timeCreated: 1492080780 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd559d579d4a8c149bd34b80e049b30e 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58fd62f07d83ca74e94f28f1403c8bc7 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/ExportMeshFormat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum ExportMeshFormat 9 | { 10 | FBX 11 | } 12 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/ExportMeshFormat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd5082d9ba7f75644b809a7fcd4bd102 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed38af90e7ca4b94689a74e10fd1c8dd 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d33286891c3f764788bd00dcd7fe109 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxExporterInterop.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | 7 | namespace JanusVR.FBX 8 | { 9 | public static class FbxExporterInterop 10 | { 11 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 12 | public extern static void Initialize([MarshalAs(UnmanagedType.LPStr)] string SceneName); 13 | 14 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 15 | public extern static void SetFBXCompatibility(int CompatibilityVersion); 16 | 17 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 18 | public extern static void BeginMesh([MarshalAs(UnmanagedType.LPStr)] string MeshName); 19 | 20 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 21 | public extern static void EndMesh(); 22 | 23 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl)] 24 | public extern static void AddVertices(FbxVector3[] Vertices, int Count); 25 | 26 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl)] 27 | public extern static void AddIndices(int[] Triangles, int Count, int Material); 28 | 29 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl)] 30 | public extern static void AddNormals(FbxVector3[] Normals, int Count); 31 | 32 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl)] 33 | public extern static void AddTexCoords(FbxVector2[] TexCoords, int Count, int UVLayer, string ChannelName); 34 | 35 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 36 | public extern static void EnableDefaultMaterial([MarshalAs(UnmanagedType.LPStr)] string materialName); 37 | 38 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl)] 39 | public extern static void SetMaterial([MarshalAs(UnmanagedType.LPStr)] string materialName, 40 | FbxVector3 emissive, FbxVector3 ambient, FbxVector3 diffuse, FbxVector3 specular, 41 | FbxVector3 reflection, double shininess); 42 | 43 | [DllImport("UnityFBXExporter", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] 44 | public extern static void Export([MarshalAs(UnmanagedType.LPStr)] string SceneName); 45 | } 46 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxExporterInterop.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13e3f7c68902e974296d27cf60fe22b5 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxVector2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | 7 | namespace JanusVR.FBX 8 | { 9 | [StructLayout(LayoutKind.Sequential)] 10 | public struct FbxVector2 11 | { 12 | public float X; 13 | public float Y; 14 | 15 | public FbxVector2(float x, float y) 16 | { 17 | X = x; 18 | Y = y; 19 | } 20 | 21 | public override string ToString() 22 | { 23 | StringBuilder sb = new StringBuilder(32); 24 | sb.Append("{X:"); 25 | sb.Append(this.X.ToString("F6")); 26 | sb.Append(" Y:"); 27 | sb.Append(this.Y.ToString("F6")); 28 | sb.Append("}"); 29 | return sb.ToString(); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxVector2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96650543134c09d4b9a62bac95aedce6 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxVector3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | 7 | namespace JanusVR.FBX 8 | { 9 | [StructLayout(LayoutKind.Sequential)] 10 | public struct FbxVector3 11 | { 12 | public double X; 13 | public double Y; 14 | public double Z; 15 | 16 | public FbxVector3(double x, double y, double z) 17 | { 18 | X = x; 19 | Y = y; 20 | Z = z; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/FBX/FbxVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe0b06cfb5f4bb04d85e2563f370f421 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class MeshData 10 | { 11 | public string Name { get; set; } 12 | public Vector3[] Vertices { get; set; } 13 | public Vector3[] Normals { get; set; } 14 | public int[] Triangles { get; set; } 15 | public Vector2[][] UV { get; set; } 16 | public float Scale { get; set; } 17 | 18 | public MeshData() 19 | { 20 | Scale = 1; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 200cd92f624eb5b46932117a177f21bb 3 | timeCreated: 1497842446 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshExportParameters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | /// 9 | /// Parameters for properly exporting meshes 10 | /// through the exporter's pipeline 11 | /// 12 | public class MeshExportParameters 13 | { 14 | private bool switchUv; 15 | private bool mirror; 16 | 17 | /// 18 | /// If the exporter should grab the UV1 layer 19 | /// and export as UV0 (for baked material option) 20 | /// 21 | public bool SwitchUV 22 | { 23 | get { return switchUv; } 24 | } 25 | 26 | /// 27 | /// If true, mirrors all vertices and normals on the X-axis, 28 | /// and changes the winding of the triangles (always true 29 | /// to match JanusVR OpenGL space) 30 | /// 31 | public bool Mirror 32 | { 33 | get { return mirror; } 34 | } 35 | 36 | public MeshExportParameters(bool switchUv, bool mirror) 37 | { 38 | this.switchUv = switchUv; 39 | this.mirror = mirror; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshExportParameters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f0abe9ecd3a8bc43bcafccb1f77bbc0 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | /// 10 | /// Class that convert meshes into files 11 | /// 12 | public abstract class MeshExporter 13 | { 14 | public abstract void Initialize(JanusRoom room); 15 | public abstract string GetFormat(); 16 | 17 | //public abstract void ExportMesh(Mesh mesh, string exportPath, MeshExportParameters parameters); 18 | public abstract void ExportMesh(MeshData mesh, string exportPath, MeshExportParameters parameters); 19 | } 20 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Mesh/MeshExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69888b129dd1ac443ae0ed599ff25dea 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4510d1a5616be2d4fbf9b1b615e9374a 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/ExportTextureFormat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum ExportTextureFormat 9 | { 10 | JPG, 11 | PNG 12 | } 13 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/ExportTextureFormat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fed5185fd2c143448ed6332f725ae7c 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/LightmapTextureFormat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum LightmapTextureFormat 9 | { 10 | JPG, 11 | PNG, 12 | EXR 13 | } 14 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/LightmapTextureFormat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6306e11dc471fd24d905e0adc6fded2a 3 | timeCreated: 1500793022 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/TextureFilterMode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public enum TextureFilterMode 9 | { 10 | Nearest, 11 | //Average, 12 | } 13 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Content/Texture/TextureFilterMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 426c839f2a283c844a5e6ced13f14784 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 666d5cbaa1e175445b89794fedf77468 3 | folderAsset: yes 4 | timeCreated: 1497044686 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e0eaadb9bd4ca746856be85e8a0f061 3 | folderAsset: yes 4 | timeCreated: 1497653500 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/AssetImage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml.Serialization; 6 | using UnityEngine; 7 | 8 | namespace JanusVR 9 | { 10 | public class AssetImage : JanusAsset 11 | { 12 | [XmlIgnore] 13 | public Texture2D Texture { get; set; } 14 | 15 | [XmlIgnore] 16 | public bool Created { get; set; } 17 | 18 | public static implicit operator string(AssetImage asset) 19 | { 20 | if (asset == null) 21 | { 22 | return null; 23 | } 24 | return asset.id; 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/AssetImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b1803415267314a8993660c8c0fad9 3 | timeCreated: 1497653500 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/AssetObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml.Serialization; 6 | using UnityEngine; 7 | 8 | namespace JanusVR 9 | { 10 | public class AssetObject : JanusAsset 11 | { 12 | [XmlIgnore] 13 | public Mesh Mesh { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/AssetObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e7d84d4561c3f14b804e63a9f0e46b7 3 | timeCreated: 1497653500 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/FireBoxAssets.cs: -------------------------------------------------------------------------------- 1 | using JanusVR; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Xml.Serialization; 7 | 8 | namespace JanusVR 9 | { 10 | public class FireBoxAssets 11 | { 12 | [XmlElement(typeof(AssetImage))] 13 | [XmlElement(typeof(AssetObject))] 14 | public JanusAsset[] Assets { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/FireBoxAssets.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2e06189ead1769449fc95a93adacaf7 3 | timeCreated: 1497652526 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/JanusAsset.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml.Serialization; 6 | 7 | namespace JanusVR 8 | { 9 | [XmlRoot("JanusAsset", Namespace = "", IsNullable = false)] 10 | public class JanusAsset 11 | { 12 | [XmlAttribute("src")] 13 | public string src { get; set; } 14 | 15 | [XmlAttribute("id")] 16 | public string id { get; set; } 17 | 18 | public override string ToString() 19 | { 20 | return string.Format("src: {0}, id: {1}", src, id); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Asset/JanusAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 700e07427e35a1a4c9e4f8cea6707b6a 3 | timeCreated: 1497045113 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/FireBoxRoom.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml; 6 | using System.Xml.Serialization; 7 | using UnityEngine; 8 | 9 | namespace JanusVR 10 | { 11 | [XmlRoot("FireBoxRoom", IsNullable = false)] 12 | public class FireBoxRoom 13 | { 14 | private XmlSerializerNamespaces namespaces; 15 | 16 | [XmlElement("Assets")] 17 | public FireBoxAssets Assets { get; set; } 18 | 19 | [XmlElement("Room")] 20 | public Room Room { get; set; } 21 | 22 | [XmlNamespaceDeclarations] 23 | public XmlSerializerNamespaces Namespaces 24 | { 25 | get { return namespaces; } 26 | } 27 | 28 | public FireBoxRoom() 29 | { 30 | Assets = new FireBoxAssets(); 31 | Room = new Room(); 32 | 33 | this.namespaces = new XmlSerializerNamespaces(new XmlQualifiedName[] { 34 | new XmlQualifiedName("", "") // Default Namespace 35 | }); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/FireBoxRoom.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 503cc2c62eb3eb84a8ae381afb9768b6 3 | timeCreated: 1497644431 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/JanusRoom.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f1e21ded23405b40af8d7717f408152 3 | timeCreated: 1497047145 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e0e48c2c4b33c140b5b786fab557c50 3 | folderAsset: yes 4 | timeCreated: 1497653500 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/JanusRoomElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public class JanusRoomElement 9 | { 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/JanusRoomElement.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f77520912cdcf06448717c7ed093f5ad 3 | timeCreated: 1497654111 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/LinkObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class LinkObject : JanusRoomElement 10 | { 11 | public Vector3 pos; 12 | public Vector3 xDir; 13 | public Vector3 yDir; 14 | public Vector3 zDir; 15 | 16 | public Color col; 17 | public Vector3 scale; 18 | public string url; 19 | public string title; 20 | 21 | public AssetImage thumb_id; 22 | } 23 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/LinkObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ba51b043c11d9c4dbca0647a0891cf1 3 | timeCreated: 1497643232 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/Room.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml.Serialization; 6 | 7 | namespace JanusVR 8 | { 9 | public class Room 10 | { 11 | [XmlAttribute("far_dist")] 12 | public int? FarDistance { get; set; } 13 | 14 | [XmlElement(typeof(RoomObject), ElementName = "Object")] 15 | [XmlElement(typeof(LinkObject))] 16 | public JanusRoomElement[] Elements { get; set; } 17 | 18 | [XmlAttribute] 19 | public string skybox_front_id { get; set; } 20 | [XmlAttribute] 21 | public string skybox_back_id { get; set; } 22 | [XmlAttribute] 23 | public string skybox_left_id { get; set; } 24 | [XmlAttribute] 25 | public string skybox_right_id { get; set; } 26 | [XmlAttribute] 27 | public string skybox_up_id { get; set; } 28 | [XmlAttribute] 29 | public string skybox_down_id { get; set; } 30 | 31 | [XmlAttribute] 32 | public string cubemap_irradiance_id { get; set; } 33 | [XmlAttribute] 34 | public string cubemap_radiance_id { get; set; } 35 | 36 | [XmlAttribute] 37 | public string pos { get; set; } 38 | [XmlAttribute] 39 | public string xdir { get; set; } 40 | [XmlAttribute] 41 | public string ydir { get; set; } 42 | [XmlAttribute] 43 | public string zdir { get; set; } 44 | } 45 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/Room.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14bd21899ecc03b49a2770efe9b68660 3 | timeCreated: 1497653500 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Data/Room/RoomObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b09198736880ee74fb897b6420b81c26 3 | timeCreated: 1497490246 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 578b9e552f6720c4d97a24a232879dee 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Editor/JanusVREntryPortalEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace JanusVR 9 | { 10 | [CustomEditor(typeof(JanusVREntryPortal))] 11 | public class JanusVREntryPortalEditor : Editor 12 | { 13 | //private JanusVREntryPortal instance; 14 | 15 | public void OnEnable() 16 | { 17 | //instance = (JanusVREntryPortal)target; 18 | } 19 | 20 | public override void OnInspectorGUI() 21 | { 22 | EditorGUILayout.LabelField("Update size by changing"); 23 | EditorGUILayout.LabelField("Uniform Scale on JanusVR Exporter window"); 24 | //instance.Circular = EditorGUILayout.Toggle("Circular", instance.Circular); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Editor/JanusVREntryPortalEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17511d5a64140c5488bc558cd403ce6e 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Editor/JanusVRLinkEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace JanusVR 9 | { 10 | [CustomEditor(typeof(JanusVRLink))] 11 | public class JanusVRLinkEditor : Editor 12 | { 13 | private JanusVRLink instance; 14 | 15 | public void OnEnable() 16 | { 17 | instance = (JanusVRLink)target; 18 | } 19 | 20 | public override void OnInspectorGUI() 21 | { 22 | //instance.Circular = EditorGUILayout.Toggle("Circular", instance.Circular); 23 | 24 | instance.draw_glow = EditorGUILayout.Toggle("Draw Glow", instance.draw_glow); 25 | instance.draw_text = EditorGUILayout.Toggle("Draw Text", instance.draw_text); 26 | instance.auto_load = EditorGUILayout.Toggle("Auto Load", instance.auto_load); 27 | instance.url = EditorGUILayout.TextField("URL", instance.url); 28 | instance.title = EditorGUILayout.TextField("Title", instance.title); 29 | 30 | instance.Color = EditorGUILayout.ColorField("Color", instance.Color); 31 | 32 | GUILayout.Label("For a custom texture modify the Link's material"); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Editor/JanusVRLinkEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03ab58108cec5bc4a9cc9a9aa92b46ba 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/ExportedObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public class ExportedObject 10 | { 11 | private Mesh mesh; 12 | private Texture2D lightMapTex; 13 | private Texture2D diffuseMapTex; 14 | private GameObject go; 15 | private Collider col; 16 | 17 | public ReflectionProbe ReflectionProbe { get; set; } 18 | 19 | public bool IsTransparent { get; set; } 20 | 21 | public Mesh Mesh 22 | { 23 | get { return mesh; } 24 | set { mesh = value; } 25 | } 26 | 27 | public Texture2D LightMapTex 28 | { 29 | get { return lightMapTex; } 30 | set { lightMapTex = value; } 31 | } 32 | 33 | public Texture2D DiffuseMapTex 34 | { 35 | get { return diffuseMapTex; } 36 | set { diffuseMapTex = value; } 37 | } 38 | 39 | public Texture Texture { get; set; } 40 | 41 | public GameObject GameObject 42 | { 43 | get { return go; } 44 | set { go = value; } 45 | } 46 | 47 | public Collider Col 48 | { 49 | get { return col; } 50 | set { col = value; } 51 | } 52 | 53 | public MeshCollider MeshCol { get; set; } 54 | 55 | public Color? Color { get; set; } 56 | 57 | public Vector4? Tiling { get; set; } 58 | } 59 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/ExportedObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1833c50f9171a1d43a1c532fc68d3aa5 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1aa2d9ec088f4204ca5aaeb0af9d4d9e 3 | folderAsset: yes 4 | timeCreated: 1497830236 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Exporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace JanusVR 7 | { 8 | public abstract class Exporter 9 | { 10 | public abstract void Initialize(JanusRoom room); 11 | public abstract void PreExport(); 12 | public abstract void Export(); 13 | 14 | public abstract void Cleanup(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Exporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70ca663e7bb47fd448d9de3f7bd73c16 3 | timeCreated: 1497830236 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Probe.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebd69574e88e3214a96d951b7cd79c45 3 | folderAsset: yes 4 | timeCreated: 1497830236 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Probe/ProbeExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df3e02726b0f69b469ec251a52c60a7a 3 | timeCreated: 1497554922 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Skybox.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a269de5e4acc64c4b9669b7463051d79 3 | folderAsset: yes 4 | timeCreated: 1497830236 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Exporter/Skybox/SkyboxExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfe4776b2dd72c84fb0bc50d88a1133a 3 | timeCreated: 1497550318 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05e7ecde94619144496926ef0c253f60 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/ExposureShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/ExposureShader" 2 | { 3 | Properties 4 | { 5 | _InputTex("InputTex", 2D) = "White" {} 6 | _RelFStops("Exposure", Float) = 0 7 | } 8 | SubShader 9 | { 10 | Cull Off 11 | Tags { "RenderType" = "Opaque" } 12 | Pass 13 | { 14 | CGPROGRAM 15 | #pragma vertex vert 16 | #pragma fragment frag 17 | 18 | #include "UnityCG.cginc" 19 | 20 | struct appdata 21 | { 22 | float4 vertex : POSITION; 23 | float2 uv0 : TEXCOORD0; 24 | }; 25 | 26 | struct v2f 27 | { 28 | float4 vertex : SV_POSITION; 29 | float2 uv0 : TEXCOORD0; 30 | }; 31 | 32 | uniform sampler2D _InputTex; 33 | uniform float _RelFStops; 34 | uniform float _IsLinear; 35 | 36 | v2f vert(appdata v) 37 | { 38 | v2f o; 39 | float2 inTexCoord = v.uv0; 40 | float2 screenPosTexCoord = float2(inTexCoord.x - 0.5f, -inTexCoord.y + 0.5f) * 2; 41 | o.vertex = float4(screenPosTexCoord, 0, 1); 42 | o.uv0 = v.uv0; 43 | 44 | return o; 45 | } 46 | 47 | float3 exposure(float3 color, float relative_fstop) 48 | { 49 | return color * pow(2.0, relative_fstop); 50 | } 51 | 52 | float4 frag(v2f i) : SV_Target 53 | { 54 | float3 lightmap = DecodeLightmap(tex2D(_InputTex, i.uv0)); 55 | float3 exposed = exposure(lightmap, _RelFStops); 56 | 57 | if (_IsLinear > 1) 58 | { 59 | // power twice on the preview window, 60 | // (Unity would convert this to gamma on the GUI part) 61 | return float4(pow(pow(exposed, 1 / 2.2), 1 / 2.2), 1); 62 | } 63 | else if (_IsLinear > 0) 64 | { 65 | return float4(pow(exposed, 1 / 2.2), 1); 66 | } 67 | else 68 | { 69 | return float4(exposed, 1); 70 | } 71 | } 72 | ENDCG 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/ExposureShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03e82836079c9da439298906105861bd 3 | timeCreated: 1494625608 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapBaked.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/LMapBaked" 2 | { 3 | Properties 4 | { 5 | _LightMapUV("LightMapUV", Vector) = (0,0,0,0) 6 | _LightMapTex("LightMapTex", 2D) = "White" {} 7 | _MainTex("MainTexture", 2D) = "White" {} 8 | _Color("Color", Color) = (0,0,0,0) 9 | _RelFStops("Exposure", Float) = 0 10 | } 11 | SubShader 12 | { 13 | Cull Off 14 | Tags { "RenderType" = "Opaque" } 15 | Pass 16 | { 17 | CGPROGRAM 18 | #pragma vertex vert 19 | #pragma fragment frag 20 | 21 | #include "UnityCG.cginc" 22 | 23 | struct appdata 24 | { 25 | float4 vertex : POSITION; 26 | float2 uv0 : TEXCOORD0; 27 | float2 uv1 : TEXCOORD1; 28 | }; 29 | 30 | struct v2f 31 | { 32 | float4 vertex : SV_POSITION; 33 | float2 uv0 : TEXCOORD0; 34 | float2 uv1 : TEXCOORD1; 35 | }; 36 | 37 | uniform float4 _LightMapUV; 38 | uniform sampler2D _LightMapTex; 39 | uniform sampler2D _MainTex; 40 | uniform float4 _Color; 41 | uniform float _IsLinear; 42 | uniform float _RelFStops; 43 | 44 | v2f vert (appdata v) 45 | { 46 | v2f o; 47 | float2 inTexCoord = v.uv1; 48 | float2 screenPosTexCoord = float2(inTexCoord.x - 0.5f, -inTexCoord.y + 0.5f) * 2; 49 | o.vertex = float4(screenPosTexCoord, 0, 1); 50 | o.uv0 = v.uv0; 51 | o.uv1.xy = v.uv1.xy * _LightMapUV.xy + _LightMapUV.zw; 52 | 53 | return o; 54 | } 55 | 56 | float3 exposure(float3 color, float relative_fstop) 57 | { 58 | return color * pow(2.0, relative_fstop); 59 | } 60 | 61 | float4 frag (v2f i) : SV_Target 62 | { 63 | float3 texData = tex2D(_MainTex, i.uv0).rgb; 64 | float3 lightmap = DecodeLightmap(tex2D(_LightMapTex, i.uv1)); 65 | float3 result = texData * lightmap * _Color.rgb; 66 | float3 exposed = exposure(result, _RelFStops); 67 | 68 | if (_IsLinear > 0) 69 | { 70 | // output gamma 71 | //return float4(pow(result, 1 / 2.2), 1); 72 | return float4(pow(exposed, 1 / 2.2), 1); 73 | } 74 | else 75 | { 76 | return float4(exposed, 1); 77 | } 78 | } 79 | ENDCG 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapBaked.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f967061d534ed44c907ed2b7667c9b9 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapPacked.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/LMapPacked" 2 | { 3 | Properties 4 | { 5 | _LightMapUV("LightMapUV", Vector) = (0,0,0,0) 6 | _LightMapTex("LightMapTex", 2D) = "White" {} 7 | _MainTex("MainTexture", 2D) = "White" {} 8 | _RelFStops("Exposure", Float) = 0 9 | } 10 | SubShader 11 | { 12 | Cull Off 13 | Tags { "RenderType" = "Opaque" } 14 | Pass 15 | { 16 | CGPROGRAM 17 | #pragma vertex vert 18 | #pragma fragment frag 19 | 20 | #include "UnityCG.cginc" 21 | 22 | struct appdata 23 | { 24 | float4 vertex : POSITION; 25 | float2 uv0 : TEXCOORD0; 26 | float2 uv1 : TEXCOORD1; 27 | }; 28 | 29 | struct v2f 30 | { 31 | float4 vertex : SV_POSITION; 32 | float2 uv0 : TEXCOORD0; 33 | float2 uv1 : TEXCOORD1; 34 | }; 35 | 36 | uniform float4 _LightMapUV; 37 | uniform sampler2D _LightMapTex; 38 | uniform float _IsLinear; 39 | uniform float _RelFStops; 40 | 41 | float3 exposure(float3 color, float relative_fstop) 42 | { 43 | return color * pow(2.0, relative_fstop); 44 | } 45 | 46 | v2f vert(appdata v) 47 | { 48 | v2f o; 49 | float2 uv = v.uv1; 50 | float2 inTexCoord = (uv *_LightMapUV.xy) + _LightMapUV.zw; 51 | float2 screenPosTexCoord = float2(inTexCoord.x - 0.5f, -inTexCoord.y + 0.5f) * 2; 52 | o.vertex = float4(screenPosTexCoord, 0, 1); 53 | o.uv0 = v.uv0; 54 | o.uv1.xy = v.uv1.xy * _LightMapUV.xy + _LightMapUV.zw; 55 | 56 | return o; 57 | } 58 | 59 | float4 frag(v2f i) : SV_Target 60 | { 61 | float2 tc = i.uv1; 62 | tc.xy *= _LightMapUV.xy; 63 | tc.xy += _LightMapUV.zw; 64 | float3 lightmap = DecodeLightmap(tex2D(_LightMapTex, i.uv1)); 65 | float3 exposed = exposure(lightmap, _RelFStops); 66 | 67 | if (_IsLinear > 0) 68 | { 69 | //return float4(exposure(lightmap, _Exposure), 1); 70 | return float4(pow(exposed, 1 / 2.2), 1); 71 | } 72 | else 73 | { 74 | return float4(exposed, 1); 75 | } 76 | } 77 | ENDCG 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapPacked.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fdeb262aa11a884d83dab2b4628e277 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapUnpacked.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/LMapUnpacked" 2 | { 3 | Properties 4 | { 5 | _LightMapUV("LightMapUV", Vector) = (0,0,0,0) 6 | _LightMapTex("LightMapTex", 2D) = "White" {} 7 | _RelFStops("Exposure", Float) = 0 8 | } 9 | SubShader 10 | { 11 | Cull Off 12 | Tags { "RenderType" = "Opaque" } 13 | Pass 14 | { 15 | CGPROGRAM 16 | #pragma vertex vert 17 | #pragma fragment frag 18 | 19 | #include "UnityCG.cginc" 20 | 21 | struct appdata 22 | { 23 | float4 vertex : POSITION; 24 | float2 uv0 : TEXCOORD0; 25 | float2 uv1 : TEXCOORD1; 26 | }; 27 | 28 | struct v2f 29 | { 30 | float4 vertex : SV_POSITION; 31 | float2 uv0 : TEXCOORD0; 32 | float2 uv1 : TEXCOORD1; 33 | }; 34 | 35 | uniform float4 _LightMapUV; 36 | uniform sampler2D _LightMapTex; 37 | uniform float _IsLinear; 38 | uniform float _RelFStops; 39 | 40 | v2f vert(appdata v) 41 | { 42 | v2f o; 43 | float2 inTexCoord = v.uv1; 44 | float2 screenPosTexCoord = float2(inTexCoord.x - 0.5f, -inTexCoord.y + 0.5f) * 2; 45 | o.vertex = float4(screenPosTexCoord, 0, 1); 46 | o.uv0 = v.uv0; 47 | o.uv1.xy = v.uv1.xy * _LightMapUV.xy + _LightMapUV.zw; 48 | 49 | return o; 50 | } 51 | 52 | float3 exposure(float3 color, float relative_fstop) 53 | { 54 | return color * pow(2.0, relative_fstop); 55 | } 56 | 57 | float4 frag (v2f i) : SV_Target 58 | { 59 | float3 lightmap = DecodeLightmap(tex2D(_LightMapTex, i.uv1)); 60 | float3 exposed = exposure(lightmap, _RelFStops); 61 | 62 | if (_IsLinear > 0) 63 | { 64 | // output gamma 65 | //return float4(pow(lightmap, 1 / 2.2), 1); 66 | //return float4(exposure(lightmap, _Exposure), 1); 67 | return float4(pow(exposed, 1 / 2.2), 1); 68 | } 69 | else 70 | { 71 | return float4(exposed, 1); 72 | } 73 | } 74 | ENDCG 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/LMapUnpacked.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21be619fbea36034f8c7c7dc98a6aedc 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bea4bbbeb896c7e4fbeb190be2c4b223 3 | folderAsset: yes 4 | timeCreated: 1433407132 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/Standard.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Standard 10 | m_Shader: {fileID: 4800000, guid: 466466a0175d2e340b26817200194fc0, type: 3} 11 | m_ShaderKeywords: _VERTEXCOLOR 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 2800000, guid: f5baab790477371499d58388584017a5, type: 3} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 4, y: 4} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 2800000, guid: 1223b34f95ccef140988a60b68c87c0a, type: 3} 43 | m_Scale: {x: 4, y: 4} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 2800000, guid: 57b2585fca985ab47b6f30b68f994c71, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _SpecGlossMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | m_Floats: 62 | - _BumpScale: 1 63 | - _Cutoff: 0.5 64 | - _DetailNormalMapScale: 1 65 | - _DstBlend: 0 66 | - _EmissionScaleUI: 0 67 | - _GlossMapScale: 1 68 | - _Glossiness: 0.5 69 | - _GlossyReflections: 1 70 | - _IntensityVC: 1 71 | - _Metallic: 0.591 72 | - _Mode: 0 73 | - _OcclusionStrength: 1 74 | - _Parallax: 0.02 75 | - _SmoothnessTextureChannel: 0 76 | - _SpecularHighlights: 1 77 | - _SrcBlend: 1 78 | - _UVSec: 0 79 | - _ZWrite: 1 80 | m_Colors: 81 | - _Color: {r: 1, g: 1, b: 1, a: 1} 82 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 0} 83 | - _EmissionColorUI: {r: 1, g: 1, b: 1, a: 1} 84 | - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} 85 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/Standard.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 272f8d89d7bfcfc40a47153f49d9e553 3 | timeCreated: 1433403822 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/StandardVC.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 466466a0175d2e340b26817200194fc0 3 | timeCreated: 1428218860 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/UnityVC.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a6c61abcc5796241b098499a0f9281d 3 | timeCreated: 1428235817 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/UnityVCShadow.cginc: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced 'UNITY_INSTANCE_ID' with 'UNITY_VERTEX_INPUT_INSTANCE_ID' 2 | 3 | #ifndef UNITY_VC_SHADOW_INCLUDED 4 | #define UNITY_VC_SHADOW_INCLUDED 5 | 6 | /* 7 | Unity Standard Vertex Color Shader Shadow Lib v0.91 8 | by defaxer 9 | */ 10 | 11 | #include "UnityCG.cginc" 12 | #include "UnityShaderVariables.cginc" 13 | #include "UnityInstancing.cginc" 14 | #include "UnityStandardConfig.cginc" 15 | 16 | #if defined(_VERTEXCOLOR) || defined(_VERTEXCOLOR_LERP) 17 | float _IntensityVC; 18 | #endif 19 | 20 | struct VertexInput_VC 21 | { 22 | float4 vertex : POSITION; 23 | #if defined(_VERTEXCOLOR) || defined(_VERTEXCOLOR_LERP) 24 | fixed4 color : COLOR; 25 | #endif 26 | float3 normal : NORMAL; 27 | float2 uv0 : TEXCOORD0; 28 | UNITY_VERTEX_INPUT_INSTANCE_ID 29 | }; 30 | 31 | #ifdef UNITY_STANDARD_USE_SHADOW_OUTPUT_STRUCT 32 | struct VertexOutputShadowCaster_VC 33 | { 34 | V2F_SHADOW_CASTER_NOPOS 35 | #if defined(UNITY_STANDARD_USE_SHADOW_UVS) 36 | float2 tex : TEXCOORD1; 37 | #if defined(_VERTEXCOLOR) || defined(_VERTEXCOLOR_LERP) 38 | fixed4 color : COLOR; 39 | #endif 40 | #endif 41 | }; 42 | #endif 43 | 44 | // We have to do these dances of outputting SV_POSITION separately from the vertex shader, 45 | // and inputting VPOS in the pixel shader, since they both map to "POSITION" semantic on 46 | // some platforms, and then things don't go well. 47 | 48 | void vertShadowCaster_VC(VertexInput_VC v, 49 | #ifdef UNITY_STANDARD_USE_SHADOW_OUTPUT_STRUCT 50 | out VertexOutputShadowCaster_VC o, 51 | #endif 52 | out float4 opos : SV_POSITION) 53 | { 54 | UNITY_SETUP_INSTANCE_ID(v); 55 | TRANSFER_SHADOW_CASTER_NOPOS(o, opos) 56 | #if defined(UNITY_STANDARD_USE_SHADOW_UVS) 57 | o.tex = TRANSFORM_TEX(v.uv0, _MainTex); 58 | #if defined(_VERTEXCOLOR) || defined(_VERTEXCOLOR_LERP) 59 | o.color = v.color; 60 | #endif 61 | #endif 62 | } 63 | 64 | half4 fragShadowCaster_VC( 65 | #ifdef UNITY_STANDARD_USE_SHADOW_OUTPUT_STRUCT 66 | VertexOutputShadowCaster_VC i 67 | #endif 68 | #ifdef UNITY_STANDARD_USE_DITHER_MASK 69 | , UNITY_VPOS_TYPE vpos : VPOS 70 | #endif 71 | ) : SV_Target 72 | { 73 | #if defined(UNITY_STANDARD_USE_SHADOW_UVS) 74 | half alpha = tex2D(_MainTex, i.tex).a * _Color.a; 75 | #if defined(_VERTEXCOLOR) 76 | alpha *= i.color.a; 77 | #endif 78 | #if defined(_VERTEXCOLOR_LERP) 79 | alpha *= lerp(1, i.color.a, _IntensityVC); 80 | #endif 81 | 82 | #if defined(_ALPHATEST_ON) 83 | clip(alpha - _Cutoff); 84 | #endif 85 | 86 | #if defined(_ALPHABLEND_ON) || defined(_ALPHAPREMULTIPLY_ON) 87 | #if defined(UNITY_STANDARD_USE_DITHER_MASK) 88 | // Use dither mask for alpha blended shadows, based on pixel position xy 89 | // and alpha level. Our dither texture is 4x4x16. 90 | half alphaRef = tex3D(_DitherMaskLOD, float3(vpos.xy*0.25,alpha*0.9375)).a; 91 | clip(alphaRef - 0.01); 92 | #else 93 | clip(alpha - _Cutoff); 94 | #endif 95 | #endif 96 | #endif // #if defined(UNITY_STANDARD_USE_SHADOW_UVS) 97 | 98 | SHADOW_CASTER_FRAGMENT(i) 99 | } 100 | 101 | #endif -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Shaders/UnityVC/UnityVCShadow.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fce7af1926c98447b1cf3dbba3d9bd7 3 | timeCreated: 1428235817 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15b93936cbe158945ad3dde89fd938e0 3 | folderAsset: yes 4 | timeCreated: 1497829995 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cb8f070c9621f246943cae5d7f2b576 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/GZipExporter.cs: -------------------------------------------------------------------------------- 1 | #if GZIP 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using Unity.IO.Compression; 8 | 9 | namespace JanusVR 10 | { 11 | public static class GZipExporter 12 | { 13 | public static void CopyStream(Stream input, Stream output) 14 | { 15 | byte[] buffer = new byte[32768]; 16 | int read; 17 | while ((read = input.Read(buffer, 0, buffer.Length)) > 0) 18 | { 19 | output.Write(buffer, 0, read); 20 | } 21 | } 22 | 23 | public static void Save(string file, Stream str) 24 | { 25 | using (FileStream output = File.OpenWrite(file)) 26 | { 27 | using (GZipStream stream = new GZipStream(output, CompressionMode.Compress, false)) 28 | { 29 | byte[] source = new byte[str.Length]; 30 | str.Read(source, 0, source.Length); 31 | // this is memory heavy 32 | 33 | stream.Write(source, 0, source.Length); 34 | } 35 | } 36 | } 37 | } 38 | } 39 | #endif 40 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/GZipExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87d24260f80ba4c4bb5598d497e97387 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c6bb2fb0e46d834380ac16992a2cac8 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/BlockType.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression { 4 | internal enum BlockType { 5 | Uncompressed = 0, 6 | Static = 1, 7 | Dynamic = 2 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/BlockType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3f9ce8187f9055499334abbd1ab6533 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/CompressionMode.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression 4 | { 5 | public enum CompressionMode { 6 | Decompress = 0, 7 | Compress = 1 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/CompressionMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b34f699db7b01964e91e39cbee456541 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/CopyEncoder.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression 4 | { 5 | using System; 6 | using System.Diagnostics; 7 | 8 | internal class CopyEncoder { 9 | 10 | // padding for copy encoder formatting 11 | // - 1 byte for header 12 | // - 4 bytes for len, nlen 13 | private const int PaddingSize = 5; 14 | 15 | // max uncompressed deflate block size is 64K. 16 | private const int MaxUncompressedBlockSize = 65536; 17 | 18 | 19 | // null input means write an empty payload with formatting info. This is needed for the final block. 20 | public void GetBlock(DeflateInput input, OutputBuffer output, bool isFinal) { 21 | Debug.Assert(output != null); 22 | Debug.Assert(output.FreeBytes >= PaddingSize); 23 | 24 | // determine number of bytes to write 25 | int count = 0; 26 | if (input != null) { 27 | 28 | // allow space for padding and bits not yet flushed to buffer 29 | count = Math.Min(input.Count, output.FreeBytes - PaddingSize - output.BitsInBuffer); 30 | 31 | // we don't expect the output buffer to ever be this big (currently 4K), but we'll check this 32 | // just in case that changes. 33 | if (count > MaxUncompressedBlockSize - PaddingSize) { 34 | count = MaxUncompressedBlockSize - PaddingSize; 35 | } 36 | } 37 | 38 | // write header and flush bits 39 | if (isFinal) { 40 | output.WriteBits(FastEncoderStatics.BFinalNoCompressionHeaderBitCount, 41 | FastEncoderStatics.BFinalNoCompressionHeader); 42 | } 43 | else { 44 | output.WriteBits(FastEncoderStatics.NoCompressionHeaderBitCount, 45 | FastEncoderStatics.NoCompressionHeader); 46 | } 47 | 48 | // now we're aligned 49 | output.FlushBits(); 50 | 51 | // write len, nlen 52 | WriteLenNLen((ushort)count, output); 53 | 54 | // write uncompressed bytes 55 | if (input != null && count > 0) { 56 | output.WriteBytes(input.Buffer, input.StartIndex, count); 57 | input.ConsumeBytes(count); 58 | } 59 | 60 | } 61 | 62 | private void WriteLenNLen(ushort len, OutputBuffer output) { 63 | 64 | // len 65 | output.WriteUInt16(len); 66 | 67 | // nlen 68 | ushort onesComp = (ushort)(~(ushort)len); 69 | output.WriteUInt16(onesComp); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/CopyEncoder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e97aa92756b61545a4e1fa1f15661ce 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/Crc32Helper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e88908b9bb8eb0746bd7df5cf5c5d1c3 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/DeflateInput.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression { 4 | using System.Diagnostics; 5 | 6 | internal class DeflateInput { 7 | private byte[] buffer; 8 | private int count; 9 | private int startIndex; 10 | 11 | internal byte[] Buffer { 12 | get { 13 | return buffer; 14 | } 15 | set { 16 | buffer = value; 17 | } 18 | } 19 | 20 | internal int Count { 21 | get { 22 | return count; 23 | } 24 | set { 25 | count = value; 26 | } 27 | } 28 | 29 | internal int StartIndex { 30 | get { 31 | return startIndex; 32 | } 33 | set { 34 | startIndex = value; 35 | } 36 | } 37 | 38 | internal void ConsumeBytes(int n) { 39 | Debug.Assert(n <= count, "Should use more bytes than what we have in the buffer"); 40 | startIndex += n; 41 | count -= n; 42 | Debug.Assert(startIndex + count <= buffer.Length, "Input buffer is in invalid state!"); 43 | } 44 | 45 | internal InputState DumpState() { 46 | InputState savedState; 47 | savedState.count = count; 48 | savedState.startIndex = startIndex; 49 | return savedState; 50 | } 51 | 52 | internal void RestoreState(InputState state) { 53 | count = state.count; 54 | startIndex = state.startIndex; 55 | } 56 | 57 | internal struct InputState { 58 | internal int count; 59 | internal int startIndex; 60 | } 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/DeflateInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f722acfc5123b0c42a9ce6f47af19083 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/DeflateStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 127f77bc4d58b854e92b25ca2e57abfc 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/DeflateStreamAsyncResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 231dd7e0b9b33ec47a77ed6ff34fabcf 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/DeflaterManaged.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 434e2a22e3ab0384499e86a0ac92deaa 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/FastEncoder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65366763983a1104685ccdd06aa1c868 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/FastEncoderStatics.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 579a2720a478fb14eafe19fff22e1fa5 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/FastEncoderWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d9658e5258c8be4e873d192fa961c6a 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/FileFormats.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression 4 | { 5 | interface IFileFormatWriter { 6 | byte[] GetHeader(); 7 | void UpdateWithBytesRead(byte[] buffer, int offset, int bytesToCopy); 8 | byte[] GetFooter(); 9 | } 10 | 11 | interface IFileFormatReader { 12 | bool ReadHeader(InputBuffer input); 13 | bool ReadFooter(InputBuffer input); 14 | void UpdateWithBytesRead(byte[] buffer, int offset, int bytesToCopy); 15 | void Validate(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/FileFormats.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3254a77f6535f344c856fcfcd352e878 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/GZipDecoder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0527124e109c2a24abf0ebde6581e84d 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/GZipStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb1a34d535682f34bad22ffaa4641ef6 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/GZipUtils.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | namespace Unity.IO.Compression { 5 | using System.Diagnostics; 6 | 7 | internal static class GZipConstants { 8 | internal const int CompressionLevel_3 = 3; 9 | internal const int CompressionLevel_10 = 10; 10 | 11 | internal const long FileLengthModulo = 4294967296; 12 | 13 | internal const byte ID1 = 0x1F; 14 | internal const byte ID2 = 0x8B; 15 | internal const byte Deflate = 0x8; 16 | 17 | internal const int Xfl_HeaderPos = 8; 18 | internal const byte Xfl_FastestAlgorithm = 4; 19 | internal const byte Xfl_MaxCompressionSlowestAlgorithm = 2; 20 | } 21 | 22 | internal class GZipFormatter : IFileFormatWriter { 23 | 24 | private byte[] headerBytes = new byte[] { 25 | GZipConstants.ID1, // ID1 26 | GZipConstants.ID2, // ID2 27 | GZipConstants.Deflate, // CM = deflate 28 | 0, // FLG, no text, no crc, no extra, no name, no comment 29 | 30 | // MTIME (Modification Time) - no time available 31 | 0, 32 | 0, 33 | 0, 34 | 0, 35 | 36 | // XFL 37 | // 2 = compressor used max compression, slowest algorithm 38 | // 4 = compressor used fastest algorithm 39 | GZipConstants.Xfl_FastestAlgorithm, 40 | 41 | // OS: 0 = FAT filesystem (MS-DOS, OS/2, NT/Win32) 42 | 0 43 | }; 44 | 45 | private uint _crc32; 46 | private long _inputStreamSizeModulo; 47 | 48 | internal GZipFormatter() : this(GZipConstants.CompressionLevel_3) { } 49 | 50 | internal GZipFormatter(int compressionLevel) { 51 | if (compressionLevel == GZipConstants.CompressionLevel_10) { 52 | headerBytes[GZipConstants.Xfl_HeaderPos] = GZipConstants.Xfl_MaxCompressionSlowestAlgorithm; 53 | } 54 | } 55 | 56 | public byte[] GetHeader() { 57 | return headerBytes; 58 | } 59 | 60 | public void UpdateWithBytesRead(byte[] buffer, int offset, int bytesToCopy) { 61 | _crc32 = Crc32Helper.UpdateCrc32(_crc32, buffer, offset, bytesToCopy); 62 | 63 | long n = _inputStreamSizeModulo + (uint) bytesToCopy; 64 | if (n >= GZipConstants.FileLengthModulo) { 65 | n %= GZipConstants.FileLengthModulo; 66 | } 67 | _inputStreamSizeModulo = n; 68 | } 69 | 70 | public byte[] GetFooter() { 71 | byte[] b = new byte[8]; 72 | 73 | WriteUInt32(b, _crc32, 0); 74 | WriteUInt32(b, (uint)_inputStreamSizeModulo, 4); 75 | 76 | return b; 77 | 78 | } 79 | 80 | internal void WriteUInt32(byte[] b, uint value, int startIndex) { 81 | b[startIndex] = (byte)value; 82 | b[startIndex + 1] = (byte)(value >> 8); 83 | b[startIndex + 2] = (byte)(value >> 16); 84 | b[startIndex + 3] = (byte)(value >> 24); 85 | } 86 | } 87 | 88 | 89 | } 90 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/GZipUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 811cde01fa423224e8b48290745859bf 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/HuffmanTree.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5d077665d954d748a5b9082366bed0c 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/IDeflater.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | using System; 4 | namespace Unity.IO.Compression { 5 | 6 | internal interface IDeflater : IDisposable { 7 | bool NeedsInput(); 8 | void SetInput(byte[] inputBuffer, int startIndex, int count); 9 | int GetDeflateOutput(byte[] outputBuffer); 10 | bool Finish(byte[] outputBuffer, out int bytesRead); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/IDeflater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3605f45ca3166f142bd031aeac811719 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/Inflater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bc2748893d514146a8e7704beb21055 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/InflaterState.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression { 4 | // Do not rearrange the enum values. 5 | internal enum InflaterState { 6 | ReadingHeader = 0, // Only applies to GZIP 7 | 8 | ReadingBFinal = 2, // About to read bfinal bit 9 | ReadingBType = 3, // About to read blockType bits 10 | 11 | ReadingNumLitCodes = 4, // About to read # literal codes 12 | ReadingNumDistCodes = 5, // About to read # dist codes 13 | ReadingNumCodeLengthCodes = 6, // About to read # code length codes 14 | ReadingCodeLengthCodes = 7, // In the middle of reading the code length codes 15 | ReadingTreeCodesBefore = 8, // In the middle of reading tree codes (loop top) 16 | ReadingTreeCodesAfter = 9, // In the middle of reading tree codes (extension; code > 15) 17 | 18 | DecodeTop = 10, // About to decode a literal (char/match) in a compressed block 19 | HaveInitialLength = 11, // Decoding a match, have the literal code (base length) 20 | HaveFullLength = 12, // Ditto, now have the full match length (incl. extra length bits) 21 | HaveDistCode = 13, // Ditto, now have the distance code also, need extra dist bits 22 | 23 | /* uncompressed blocks */ 24 | UncompressedAligning = 15, 25 | UncompressedByte1 = 16, 26 | UncompressedByte2 = 17, 27 | UncompressedByte3 = 18, 28 | UncompressedByte4 = 19, 29 | DecodingUncompressed = 20, 30 | 31 | // These three apply only to GZIP 32 | StartReadingFooter = 21, // (Initialisation for reading footer) 33 | ReadingFooter = 22, 34 | VerifyingFooter = 23, 35 | 36 | Done = 24 // Finished 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/InflaterState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6335bb0ba8380564ab77efafa01f19e0 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/InputBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fd125061c44dd94b87fb1854732a411 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/InvalidDataException.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace Unity.IO.Compression { 4 | 5 | using System; 6 | using System.Runtime.Serialization; 7 | 8 | #if !NETFX_CORE 9 | [Serializable] 10 | #endif // !FEATURE_NETCORE 11 | public sealed class InvalidDataException 12 | #if NETFX_CORE 13 | : Exception 14 | #else 15 | : SystemException 16 | #endif 17 | { 18 | public InvalidDataException () 19 | : base(SR.GetString(SR.GenericInvalidData)) { 20 | } 21 | 22 | public InvalidDataException (String message) 23 | : base(message) { 24 | } 25 | 26 | public InvalidDataException (String message, Exception innerException) 27 | : base(message, innerException) { 28 | } 29 | 30 | #if !NETFX_CORE 31 | internal InvalidDataException (SerializationInfo info, StreamingContext context) : base(info, context) { 32 | } 33 | #endif // !NETFX_CORE 34 | 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/InvalidDataException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3daf09485efce9e4db847510830c084b 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/Match.cs: -------------------------------------------------------------------------------- 1 | namespace Unity.IO.Compression { 2 | // This class represents a match in the history window 3 | internal class Match { 4 | private MatchState state; 5 | private int pos; 6 | private int len; 7 | private byte symbol; 8 | 9 | internal MatchState State { 10 | get { return state; } 11 | set { state = value; } 12 | } 13 | 14 | internal int Position { 15 | get { return pos; } 16 | set { pos = value; } 17 | } 18 | 19 | internal int Length { 20 | get { return len; } 21 | set { len = value; } 22 | } 23 | 24 | internal byte Symbol { 25 | get { return symbol; } 26 | set { symbol = value; } 27 | 28 | } 29 | } 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/Match.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d8e87bb35c01984abc5d596ca1602be 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/MatchState.cs: -------------------------------------------------------------------------------- 1 | internal enum MatchState { 2 | HasSymbol = 1, 3 | HasMatch = 2, 4 | HasSymbolAndMatch = 3 5 | } 6 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/MatchState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: febb0ebeb3973af4b88cf90c8fdfa007 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/OutputBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a77d3fb44c03a14c9fa2f67f4988aee 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/OutputWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0e853aaec89ede4eb08168034052b99 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/README.md: -------------------------------------------------------------------------------- 1 | # Unity.IO.Compression 2 | This is a port of Microsoft's code from [here](https://github.com/Microsoft/referencesource/tree/master/System/sys/system/IO/compression). 3 | 4 | The classes in System.IO.Compression in Unity 4.x [do not seem to work on Windows](http://answers.unity3d.com/questions/692250/gzipstream-and-deflatestream-give-entrypointnotfou.html) and perhaps several other platforms. 5 | 6 | Luckily, Microsoft has released much of the source code of the .NET BCL. We have ported Microsoft's code to work in Unity. This seems like the cleanest and most stable way to get the GZipStream and DeflateStream classes working in Unity. 7 | 8 | Find the plugin on the Unity Asset Store [here](https://www.assetstore.unity3d.com/#!/content/31902). 9 | 10 | Built by [Hitcents](http://hitcents.com/), contact us [here](http://hitcents.com/contact) for questions. 11 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ced9c7f0d2682e14b8b9ec66deb67631 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/SR.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Hitcents 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | namespace Unity.IO.Compression { 4 | /// 5 | /// NOTE: this is a hacked in replacement for the SR class 6 | /// Unity games don't care about localized exception messages, so we just hacked these in the best we could 7 | /// 8 | internal class SR 9 | { 10 | public const string ArgumentOutOfRange_Enum = "Argument out of range"; 11 | public const string CorruptedGZipHeader = "Corrupted gzip header"; 12 | public const string CannotReadFromDeflateStream = "Cannot read from deflate stream"; 13 | public const string CannotWriteToDeflateStream = "Cannot write to deflate stream"; 14 | public const string GenericInvalidData = "Invalid data"; 15 | public const string InvalidCRC = "Invalid CRC"; 16 | public const string InvalidStreamSize = "Invalid stream size"; 17 | public const string InvalidHuffmanData = "Invalid Huffman data"; 18 | public const string InvalidBeginCall = "Invalid begin call"; 19 | public const string InvalidEndCall = "Invalid end call"; 20 | public const string InvalidBlockLength = "Invalid block length"; 21 | public const string InvalidArgumentOffsetCount = "Invalid argument offset count"; 22 | public const string NotSupported = "Not supported"; 23 | public const string NotWriteableStream = "Not a writeable stream"; 24 | public const string NotReadableStream = "Not a readable stream"; 25 | public const string ObjectDisposed_StreamClosed = "Object disposed"; 26 | public const string UnknownState = "Unknown state"; 27 | public const string UnknownCompressionMode = "Unknown compression mode"; 28 | public const string UnknownBlockType = "Unknown block type"; 29 | 30 | private SR() 31 | { 32 | } 33 | 34 | internal static string GetString(string p) 35 | { 36 | //HACK: just return the string passed in, not doing localization 37 | return p; 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Compression/Unity.IO.Compression/SR.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a7aa69f837beb44ca8806b398afb2b7 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Material.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 509ff608dd633974ea2e08b6d6770e98 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Material/MtlImporterWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a39d98350ec02044aa5280ffd0ab9f7 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f697b85ff28de44bae5758d1d36adb8 3 | folderAsset: yes 4 | timeCreated: 1497829995 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Texture/DDSExporter.cs: -------------------------------------------------------------------------------- 1 | #if DDS 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using UnityEngine; 8 | 9 | namespace JanusExporter 10 | { 11 | internal class DDSExporter 12 | { 13 | public void Write(Stream stream, Texture2D[] faces) 14 | { 15 | BinaryWriter writer = new BinaryWriter(stream); 16 | 17 | writer.Write((Int32)0x20534444); 18 | writer.Write((Int32)124); //dwSize 19 | } 20 | } 21 | } 22 | #endif -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Texture/DDSExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a572f2d082e9fa4ea3b31859fa6a5c4 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Updater.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa3c79a2106fa9749bd01bb4e208ce7e 3 | folderAsset: yes 4 | timeCreated: 1491524902 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Unused/Updater/JanusVRUpdater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 718bb6a9d249fba4085e680c85628ccd 3 | timeCreated: 1488812508 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa282d09128d83f43bd1ff2ad49c29e0 3 | folderAsset: yes 4 | timeCreated: 1488769107 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/HtmlUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public static class HtmlUtil 10 | { 11 | public static string ColorToHex(Color color) 12 | { 13 | int r = (int)(color.r * 255); 14 | int g = (int)(color.g * 255); 15 | int b = (int)(color.b * 255); 16 | return r.ToString("X2") + g.ToString("X2") + b.ToString("X2"); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/HtmlUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 014c6b31432c2aa4dbb572bfa3dd1590 3 | timeCreated: 1488769107 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/JanusUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 773bc49c666dff94586667f4b8a76927 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/MathUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public static class MathUtil 10 | { 11 | public static Vector3 Abs(Vector3 v) 12 | { 13 | return new Vector3(Math.Abs(v.x), Math.Abs(v.y), Math.Abs(v.z)); 14 | } 15 | 16 | /// 17 | /// Returns true if the value is a power of 2 18 | /// 19 | /// 20 | /// 21 | public static bool IsPowerOf2(int value) 22 | { 23 | return (value & (value - 1)) == 0; 24 | } 25 | 26 | /// 27 | /// Gets the next exponent of 2 28 | /// 29 | /// 30 | /// 31 | public static int NextPowerOf2(int value) 32 | { 33 | return (int)Math.Pow(2, Math.Ceiling(Math.Log(value) / Math.Log(2))); 34 | } 35 | 36 | /// 37 | /// Gets the next exponent of 2 38 | /// 39 | /// 40 | /// 41 | public static int GetExponentOf2(int value) 42 | { 43 | int times = 1; 44 | for (int result = value; result > 2; result /= 2) 45 | { 46 | times++; 47 | } 48 | return times; 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/MathUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b114017a5bc0d614b9df1c56cb034560 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/ReflectionUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | using System.Text; 6 | 7 | namespace JanusVR 8 | { 9 | public static class ReflectionUtil 10 | { 11 | public static Type GetType(string className, Assembly assembly = null) 12 | { 13 | Type t = null; 14 | if (assembly == null) 15 | { 16 | // search all loaded assemblies 17 | Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); 18 | for (int i = 0; i < assemblies.Length; i++) 19 | { 20 | Assembly a = assemblies[i]; 21 | Type k = a.GetType(className); 22 | if (k != null) 23 | { 24 | t = k; 25 | break; 26 | } 27 | } 28 | } 29 | else 30 | { 31 | t = assembly.GetType(className); 32 | } 33 | 34 | return t; 35 | } 36 | 37 | public static object GetStaticField(string className, string fieldName, Assembly assembly = null) 38 | { 39 | Type t = GetType(className, assembly); 40 | FieldInfo field = t.GetField(fieldName, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); 41 | return (object)field.GetValue(null); 42 | } 43 | 44 | public static void InvokeStaticMethod(string methodName, params object[] parameters) 45 | { 46 | 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/ReflectionUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b50080ab122cafb46a33a2ab19d9e8a3 3 | timeCreated: 1491525123 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/TextureUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fe39e0fb744f58489dfaaadaac06f2e 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/UnityUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using UnityEditor; 8 | using UnityEngine; 9 | using UnityEngine.SceneManagement; 10 | 11 | namespace JanusVR 12 | { 13 | public static class UnityUtil 14 | { 15 | public static bool IsProceduralSkybox() 16 | { 17 | Material skybox = RenderSettings.skybox; 18 | if (skybox != null) 19 | { 20 | string[] skyboxTexNames = JanusGlobals.SkyboxTexNames; 21 | for (int i = 0; i < skyboxTexNames.Length; i++) 22 | { 23 | if (!skybox.HasProperty(skyboxTexNames[i])) 24 | { 25 | return true; 26 | } 27 | } 28 | } 29 | return false; 30 | } 31 | 32 | public static IEnumerable GetSceneRoots2() 33 | { 34 | var prop = new HierarchyProperty(HierarchyType.GameObjects); 35 | var expanded = new int[0]; 36 | while (prop.Next(expanded)) 37 | { 38 | yield return prop.pptrValue as GameObject; 39 | } 40 | } 41 | 42 | public static string GetLightmapsFolder() 43 | { 44 | string scenePath = Path.GetDirectoryName(GetScenePath()); 45 | return Path.Combine(scenePath, GetSceneName()); 46 | } 47 | 48 | public static string GetScenePath() 49 | { 50 | #if UNITY_5_3_OR_NEWER 51 | return SceneManager.GetActiveScene().path; 52 | #else 53 | return EditorApplication.currentScene; 54 | #endif 55 | } 56 | 57 | public static string GetSceneName() 58 | { 59 | #if UNITY_5_3_OR_NEWER 60 | return SceneManager.GetActiveScene().name; 61 | #else 62 | return Path.GetFileNameWithoutExtension(EditorApplication.currentScene); 63 | #endif 64 | } 65 | 66 | public static GameObject[] GetSceneRoots() 67 | { 68 | #if UNITY_5_3_OR_NEWER 69 | Scene scene = SceneManager.GetActiveScene(); 70 | return scene.GetRootGameObjects(); 71 | #else 72 | return GetSceneRoots2().ToArray(); 73 | #endif 74 | } 75 | 76 | public static void SetWindowTitle(this EditorWindow window, string title, Texture2D icon) 77 | { 78 | #if UNITY_5_0 79 | window.title = "Janus"; 80 | #else 81 | window.titleContent = new GUIContent("Janus", icon); 82 | #endif 83 | } 84 | 85 | public static void StartProcess(string exportPath) 86 | { 87 | #if UNITY_5_3 88 | Process p = new Process(); 89 | p.StartInfo.FileName = exportPath; 90 | p.Start(); 91 | #else 92 | System.Diagnostics.Process.Start(exportPath); 93 | #endif 94 | } 95 | 96 | public static void WriteAllText(string exportPath, string text) 97 | { 98 | #if UNITY_5_3 99 | using (Stream stream = File.OpenWrite(exportPath)) 100 | { 101 | using (StreamWriter writer = new StreamWriter(stream)) 102 | { 103 | writer.Write(text); 104 | writer.Flush(); 105 | } 106 | stream.Flush(); 107 | } 108 | #else 109 | File.WriteAllText(exportPath, text); 110 | #endif 111 | } 112 | } 113 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/UnityUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97a6fbd1d1a063749b76b772ba57fdb1 3 | timeCreated: 1494798512 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/Vector3Util.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace JanusVR 8 | { 9 | public static class Vector3Util 10 | { 11 | public static Vector3 Divide(Vector3 input, Vector3 divisor) 12 | { 13 | return new Vector3(input.x / divisor.x, 14 | input.y / divisor.y, 15 | input.z / divisor.z); 16 | } 17 | 18 | public static Vector3 Divide(Vector3 input, float divisor) 19 | { 20 | return new Vector3(input.x / divisor, 21 | input.y / divisor, 22 | input.z / divisor); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Util/Vector3Util.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aad9f73700aee9c43abe3e6053844c06 3 | timeCreated: 1499553274 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8e1587dec0b261429d74b85addb07cd 3 | folderAsset: yes 4 | timeCreated: 1494634158 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/JanusVRExporterWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e152ac6f87d153d4d9a879ac2dfad41e 3 | timeCreated: 1488769108 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/JanusVRWelcome.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using UnityEditor; 7 | using UnityEngine; 8 | 9 | namespace JanusVR 10 | { 11 | /// 12 | /// Class shown when the user first adds the Janus 13 | /// 14 | public class JanusVRWelcome : EditorWindow 15 | { 16 | [NonSerialized] 17 | private Rect border = new Rect(10, 5, 20, 15); 18 | 19 | //[MenuItem("Window/JanusVR Welcome")] 20 | public static void ShowWindow() 21 | { 22 | // Get existing open window or if none, make a new one: 23 | JanusVRWelcome window = EditorWindow.GetWindow(); 24 | window.Show(); 25 | } 26 | 27 | private void OnEnable() 28 | { 29 | // search for the icon file 30 | Texture2D icon = Resources.Load("janusvricon"); 31 | this.SetWindowTitle("Welcome", icon); 32 | } 33 | 34 | private void OnGUI() 35 | { 36 | Rect rect = this.position; 37 | GUILayout.BeginArea(new Rect(border.x, border.y, rect.width - border.width, rect.height - border.height)); 38 | 39 | GUILayout.Label("JanusVR Unity Exporter Version " + (JanusGlobals.Version).ToString("F2"), EditorStyles.boldLabel); 40 | GUILayout.Label("Welcome!"); 41 | GUILayout.Label("Open the exporter window by hitting Window -> JanusVR Exporter"); 42 | GUILayout.Label("or clicking one of the buttons below:"); 43 | 44 | if (GUILayout.Button("Check for Updates")) 45 | { 46 | //JanusVRUpdater.ShowWindow(); 47 | } 48 | 49 | if (GUILayout.Button("Open JanusVR Exporter")) 50 | { 51 | JanusVRExporterWindow.ShowWindow(); 52 | } 53 | 54 | GUILayout.EndArea(); 55 | } 56 | } 57 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/JanusVRWelcome.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a3bd64f268334340bbfd517d6aa2df5 3 | timeCreated: 1488812306 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/LightmapPreviewWindow.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Runtime.InteropServices; 7 | using System.Text; 8 | using UnityEditor; 9 | using UnityEngine; 10 | using UnityEngine.Rendering; 11 | using UObject = UnityEngine.Object; 12 | using System.Xml; 13 | 14 | namespace JanusVR 15 | { 16 | public class LightmapPreviewWindow : EditorWindow 17 | { 18 | public Texture2D Tex { get; set; } 19 | 20 | private void OnEnable() 21 | { 22 | // search for the icon file 23 | Texture2D icon = Resources.Load("janusvricon"); 24 | this.SetWindowTitle("Lightmap", icon); 25 | } 26 | 27 | private void OnGUI() 28 | { 29 | if (Tex != null) 30 | { 31 | Rect rect = this.position; 32 | GUI.DrawTexture(new Rect(0, 0, rect.width, rect.height), Tex); 33 | } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/LightmapPreviewWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 396c4d184c7e8244d9e0bab54777ef87 3 | timeCreated: 1494634159 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Writer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2df8d5d9f24eed44fa183d86dd319645 3 | folderAsset: yes 4 | timeCreated: 1497505093 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Writer/JanusRoomWriterXml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Xml; 6 | using System.Xml.Serialization; 7 | using UnityEngine; 8 | 9 | namespace JanusVR 10 | { 11 | public class JanusRoomWriterXml 12 | { 13 | private JanusRoom room; 14 | 15 | private StringBuilder builder; 16 | private XmlTextWriter writer; 17 | 18 | public JanusRoomWriterXml(JanusRoom room) 19 | { 20 | this.room = room; 21 | } 22 | 23 | private FireBoxRoom MakeRoom() 24 | { 25 | FireBoxRoom fireBoxRoom = new FireBoxRoom(); 26 | float uniformScale = room.UniformScale; 27 | 28 | // copy data 29 | fireBoxRoom.Assets.Assets = room.AllAssets.ToArray(); 30 | fireBoxRoom.Room.Elements = room.RoomElements.ToArray(); 31 | fireBoxRoom.Room.FarDistance = room.FarPlaneDistance; 32 | 33 | if (room.PortalPos != null) 34 | { 35 | fireBoxRoom.Room.pos = JanusUtil.FormatVector3(room.PortalPos.Value); 36 | fireBoxRoom.Room.xdir = JanusUtil.FormatVector3(room.PortalXDir.Value); 37 | fireBoxRoom.Room.ydir = JanusUtil.FormatVector3(room.PortalYDir.Value); 38 | fireBoxRoom.Room.zdir = JanusUtil.FormatVector3(room.PortalZDir.Value); 39 | } 40 | 41 | // implicit operators 42 | fireBoxRoom.Room.skybox_back_id = room.SkyboxBack; 43 | fireBoxRoom.Room.skybox_front_id = room.SkyboxFront; 44 | fireBoxRoom.Room.skybox_left_id = room.SkyboxLeft; 45 | fireBoxRoom.Room.skybox_right_id = room.SkyboxRight; 46 | fireBoxRoom.Room.skybox_up_id = room.SkyboxUp; 47 | fireBoxRoom.Room.skybox_down_id = room.SkyboxDown; 48 | 49 | fireBoxRoom.Room.cubemap_irradiance_id = room.CubemapIrradiance; 50 | fireBoxRoom.Room.cubemap_radiance_id = room.CubemapRadiance; 51 | 52 | return fireBoxRoom; 53 | } 54 | 55 | public void WriteHtml(string path) 56 | { 57 | LightmapExportType lightmapExportType = room.LightmapType; 58 | float uniformScale = room.UniformScale; 59 | 60 | XmlWriterSettings settings = new XmlWriterSettings(); 61 | settings.OmitXmlDeclaration = true; 62 | settings.Encoding = Encoding.UTF8; 63 | 64 | builder = new StringBuilder(); 65 | writer = (XmlTextWriter)XmlWriter.Create(builder, settings); 66 | writer.Formatting = Formatting.Indented; 67 | 68 | writer.WriteStartDocument(); 69 | writer.WriteStartElement("html"); 70 | 71 | writer.WriteStartElement("head"); 72 | writer.WriteStartElement("title"); 73 | writer.WriteString("Janus Unity Exporter v" + JanusGlobals.Version); 74 | writer.WriteEndElement(); 75 | writer.WriteEndElement(); 76 | 77 | writer.WriteStartElement("body"); 78 | 79 | FireBoxRoom fireBoxRoom = MakeRoom(); 80 | XmlSerializer fireBoxRoomSerializer = new XmlSerializer(typeof(FireBoxRoom)); 81 | fireBoxRoomSerializer.Serialize(writer, fireBoxRoom, fireBoxRoom.Namespaces); 82 | 83 | writer.WriteEndDocument(); 84 | 85 | writer.Close(); 86 | writer.Flush(); 87 | 88 | UnityUtil.WriteAllText(path, builder.ToString()); 89 | return; 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Writer/JanusRoomWriterXml.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5067290e8949d5144b8e613b74e8e44e 3 | timeCreated: 1497505094 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/JanusGlobals.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using UObject = UnityEngine.Object; 8 | 9 | namespace JanusVR 10 | { 11 | /// 12 | /// Global values for JanusVR 13 | /// 14 | public static class JanusGlobals 15 | { 16 | /// 17 | /// A list with all JanusObject components on the Unity scene 18 | /// 19 | private static List objects = new List(); 20 | 21 | public const decimal Version = 2.13M; 22 | 23 | /// 24 | /// Decimal cases used by default when exporting position/scale/rotation values 25 | /// 26 | public static int DecimalCasesForTransforms = 4; 27 | 28 | /// 29 | /// Decimal cases used by default when exporting lightmaps 30 | /// 31 | public static int DecimalCasesForLightmaps = 6; 32 | 33 | /// 34 | /// Lower case values that the exporter will consider for being the Main Texture on a shader 35 | /// 36 | public static readonly string[] SemanticsMainTex = new string[] 37 | { 38 | "_maintex" 39 | }; 40 | 41 | /// 42 | /// Lower case values that the exporter will consider for being the Tiling 43 | /// 44 | public static readonly string[] SemanticsTiling = new string[] 45 | { 46 | "_maintex_st" 47 | }; 48 | 49 | /// 50 | /// Lower case values that the exporter will consider for being the Color off a shader 51 | /// 52 | public static readonly string[] SemanticsColor = new string[] 53 | { 54 | "_color" 55 | }; 56 | 57 | /// 58 | /// Lower case values that the exporter will consider for the shader using transparent textures 59 | /// 60 | public static readonly string[] SemanticsTransparent = new string[] 61 | { 62 | "transparent" 63 | }; 64 | 65 | /// 66 | /// The semantic names for all the skybox 6-sided faces 67 | /// 68 | public static readonly string[] SkyboxTexNames = new string[] 69 | { 70 | "_FrontTex", "_BackTex", "_LeftTex", "_RightTex", "_UpTex", "_DownTex" 71 | }; 72 | 73 | /// 74 | /// Registers an object to be updated when the exporter needs 75 | /// (for now only when the user updates the scale) 76 | /// 77 | /// 78 | public static void RegisterObject(IJanusObject obj) 79 | { 80 | objects.Add(obj); 81 | } 82 | 83 | public static void UpdateScale(float scale) 84 | { 85 | for (int i = 0; i < objects.Count; i++) 86 | { 87 | IJanusObject obj = objects[i]; 88 | UObject uobj = (UObject)obj; 89 | if (!uobj) 90 | { 91 | objects.RemoveAt(i); 92 | i--; 93 | continue; 94 | } 95 | 96 | obj.UpdateScale(scale); 97 | } 98 | } 99 | } 100 | } 101 | #endif -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/JanusGlobals.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec683a297305e6a4a94272fe73981859 3 | timeCreated: 1497844269 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/JanusResources.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c68b6414c6d532f4dae5bcca58f46e71 3 | timeCreated: 1497844293 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2da326e94f2a314fb4eb3fa9b4c0fda 3 | folderAsset: yes 4 | timeCreated: 1474307608 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02af04d2dda0b8a48ae330581f2c5230 3 | folderAsset: yes 4 | timeCreated: 1465488946 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Half.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Half.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Half.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95a425c3f07f3fe44a58d5fa4d85ead3 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Iex-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Iex-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Iex-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbf11a87bb011bf47a00542d08ee353d 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IexMath-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IexMath-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IexMath-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a78988763416ab418ea2fc041fa2e82 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImf-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImf-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImf-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08c719a7be63e94468ebf612215bb95c 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImfUtil-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImfUtil-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmImfUtil-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 236fe615f40ab754780bacb7f9da0c11 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmThread-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmThread-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/IlmThread-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 075a725d03bfefd4db3c7d3276614d3d 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Imath-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Imath-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/Imath-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 466dfa3e0241e8040836ea12d1057cde 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/UnityFBXExporter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/UnityFBXExporter.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/UnityFBXExporter.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84bdc6f83986f7947ab32544543728ae 3 | timeCreated: 1465224752 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 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: x86 24 | Linux64: 25 | enabled: 0 26 | settings: 27 | CPU: x86_64 28 | OSXIntel: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | OSXIntel64: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | Win: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | Win64: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | userData: 45 | assetBundleName: 46 | assetBundleVariant: 47 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/cmftRelease.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/cmftRelease.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/cmftRelease.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07b31063ee8456c4c9333b92ad3773ff 3 | timeCreated: 1492080623 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: x86_64 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: AnyCPU 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/zlib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/zlib.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x64/zlib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cdd29ab99a38bb47ba7a04409a50210 3 | timeCreated: 1492079179 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d906107590d480344a9af0d1c762def4 3 | folderAsset: yes 4 | timeCreated: 1465488946 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Half.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Half.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Half.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84817e745f4f70a4882e101f3dd4002d 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Iex-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Iex-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Iex-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47c45429ee6a7d14ebbbcfbee8da93cd 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IexMath-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IexMath-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IexMath-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6c27455f3474d24480ff4804831be67 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImf-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImf-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImf-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14d719b525f19c44aa4b2e960e4e5636 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImfUtil-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImfUtil-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmImfUtil-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d949159cee059fa4ea109e351aa5a477 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmThread-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmThread-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/IlmThread-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc2c7158177650245b60b1bf78b7311e 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Imath-2_2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Imath-2_2.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/Imath-2_2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c2db85c5abbf4341abb4b2ef25fb82c 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/UnityFBXExporter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/UnityFBXExporter.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/UnityFBXExporter.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e640d3d5855c9ae4081081ed8043efc0 3 | timeCreated: 1465224752 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | CPU: x86 18 | DefaultValueInitialized: true 19 | OS: Windows 20 | Linux: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | Linux64: 25 | enabled: 0 26 | settings: 27 | CPU: x86_64 28 | OSXIntel: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | OSXIntel64: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | Win: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | Win64: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | userData: 45 | assetBundleName: 46 | assetBundleVariant: 47 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftRelease.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftRelease.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftRelease.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 852c971cb630d6f4abce8194e0d72550 3 | timeCreated: 1492132961 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 1 14 | settings: {} 15 | Editor: 16 | enabled: 0 17 | settings: 18 | CPU: x86 19 | DefaultValueInitialized: true 20 | Linux: 21 | enabled: 1 22 | settings: 23 | CPU: x86 24 | Linux64: 25 | enabled: 0 26 | settings: 27 | CPU: None 28 | LinuxUniversal: 29 | enabled: 1 30 | settings: 31 | CPU: x86 32 | OSXIntel: 33 | enabled: 1 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: None 40 | OSXUniversal: 41 | enabled: 0 42 | settings: 43 | CPU: x86 44 | Win: 45 | enabled: 1 46 | settings: 47 | CPU: AnyCPU 48 | Win64: 49 | enabled: 0 50 | settings: 51 | CPU: None 52 | userData: 53 | assetBundleName: 54 | assetBundleVariant: 55 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftclr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftclr.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/cmftclr.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 771f5b3c4157b824681cc7658c9e6199 3 | timeCreated: 1492033057 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: x86 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: AnyCPU 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: AnyCPU 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/zlib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/zlib.dll -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Plugins/x86/zlib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b441e497ab6756447b2b29e7b8cd41c0 3 | timeCreated: 1492077618 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Editor: 0 16 | Exclude Linux: 1 17 | Exclude Linux64: 1 18 | Exclude LinuxUniversal: 1 19 | Exclude OSXIntel: 1 20 | Exclude OSXIntel64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude PS4: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Editor: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | DefaultValueInitialized: true 30 | OS: Windows 31 | Linux: 32 | enabled: 0 33 | settings: 34 | CPU: None 35 | Linux64: 36 | enabled: 0 37 | settings: 38 | CPU: None 39 | LinuxUniversal: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | OSXIntel: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | OSXIntel64: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | OSXUniversal: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | Win: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | Win64: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | userData: 64 | assetBundleName: 65 | assetBundleVariant: 66 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eec7e7b6b3c4b7442b6dda87917bc76a 3 | folderAsset: yes 4 | timeCreated: 1488171991 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Resources/janusvricon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/Assets/JanusExporter/Resources/janusvricon.png -------------------------------------------------------------------------------- /unity/Project/JanusExporter/Assets/JanusExporter/Resources/janusvricon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50a72a79a5f18494289d92c997271f15 3 | timeCreated: 1488167420 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/JanusExporter.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2015 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JanusExporter", "JanusExporter.csproj", "{6ED893AD-ABE4-74D5-4468-11838B81D1E7}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JanusExporter.Editor", "JanusExporter.Editor.csproj", "{398EE5F4-84B0-4D75-EA62-C590149F4466}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6ED893AD-ABE4-74D5-4468-11838B81D1E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {6ED893AD-ABE4-74D5-4468-11838B81D1E7}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {6ED893AD-ABE4-74D5-4468-11838B81D1E7}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {6ED893AD-ABE4-74D5-4468-11838B81D1E7}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {398EE5F4-84B0-4D75-EA62-C590149F4466}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {398EE5F4-84B0-4D75-EA62-C590149F4466}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {398EE5F4-84B0-4D75-EA62-C590149F4466}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {398EE5F4-84B0-4D75-EA62-C590149F4466}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.2f1 2 | -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /unity/Project/JanusExporter/UpgradeLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unity/Project/JanusExporter/UpgradeLog.htm -------------------------------------------------------------------------------- /unity/README.md: -------------------------------------------------------------------------------- 1 | JanusVR Unity Exporter 2 | Latest Release: v2.11 3 | 4 | FAQ 5 | 6 | 7 | Info 8 | - Textures: If you set textures to uncompressed the exports are going to be WAY faster as the exporter doesn't need to decompress before exporting. 9 | 10 | 11 | 12 | Dev Info 13 | - The Unity package include source files for the exporter instead of a built DLL for compatibility with Unity's from version 5.0 to 5.6+ (with static DLLs we'd have to update 7 packages every time we release a new update to the exporter). 14 | - If there's code that looks redundant be careful of changing it - Unity can be extremely finnicky, and a lot of ifs are just there to handle extremely rare situations that could lead to a crash. 15 | - All the methods that display a progress bar use a try/catch/finally because if it fails anywhere Unity will not hide the progress bar - locking the user out of the editor. 16 | 17 | - The conversion between Unity and Janus space is made on the RoomObject class - SetUnityObj method. 18 | 19 | - CMFT: The cmft implementation in C# uses the CLR version (thogh we call console commands, they are actually ran inside Unity's memory space, so anti-viruses should have no issues with our DLLs) -------------------------------------------------------------------------------- /unreal/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | -------------------------------------------------------------------------------- /unreal/BuildPlugin.bat: -------------------------------------------------------------------------------- 1 | "C:\Program Files\Epic Games\UE_4.16\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="JanusExporter\JanusExporter.uplugin" -Package="Release" -Rocket -------------------------------------------------------------------------------- /unreal/JanusExporter/.gitignore: -------------------------------------------------------------------------------- 1 | /Intermediate 2 | /Binaries -------------------------------------------------------------------------------- /unreal/JanusExporter/Config/FilterPlugin.ini: -------------------------------------------------------------------------------- 1 | [FilterPlugin] 2 | ; This section lists additional files which will be packaged along with your plugin. Paths should be listed relative to the root plugin directory, and 3 | ; may include "...", "*", and "?" wildcards to match directories, files, and individual characters respectively. 4 | ; 5 | ; Examples: 6 | ; /README.txt 7 | ; /Extras/... 8 | ; /Binaries/ThirdParty/*.dll 9 | -------------------------------------------------------------------------------- /unreal/JanusExporter/JanusExporter.uplugin: -------------------------------------------------------------------------------- 1 | { 2 | "FileVersion": 3, 3 | "Version": 1, 4 | "VersionName": "1.0", 5 | "FriendlyName": "JanusVR Exporter", 6 | "Description": "JanusVR Scene Exporter", 7 | "Category": "Exporters", 8 | "CreatedBy": "JanusVR, Inc", 9 | "CreatedByURL": "http://janusvr.com", 10 | "DocsURL": "", 11 | "MarketplaceURL": "", 12 | "SupportURL": "", 13 | "EnabledByDefault": false, 14 | "CanContainContent": true, 15 | "IsBetaVersion": false, 16 | "Installed": false, 17 | "Modules": 18 | [ 19 | { 20 | "Name" : "JanusExporter", 21 | "Type" : "Editor" 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /unreal/JanusExporter/Resources/Icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janusvr/janusvr_utils/5b0bd30f762ae4f84070e6eddf9d2be15fcb797f/unreal/JanusExporter/Resources/Icon128.png -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/BaseEditorTool.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "BaseEditorTool.h" 3 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/BaseEditorToolCustomization.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "BaseEditorToolCustomization.h" 3 | #include "PropertyEditing.h" 4 | 5 | #define LOCTEXT_NAMESPACE "BaseToolEditor" 6 | 7 | void FBaseEditorToolCustomization::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) 8 | { 9 | TSet Classes; 10 | 11 | TArray> ObjectsBeingCustomized; 12 | DetailBuilder.GetObjectsBeingCustomized(ObjectsBeingCustomized); 13 | 14 | for (auto WeakObject : ObjectsBeingCustomized) 15 | { 16 | if (UObject* Instance = WeakObject.Get()) 17 | { 18 | Classes.Add(Instance->GetClass()); 19 | } 20 | } 21 | 22 | // Create a commands category 23 | IDetailCategoryBuilder& Category = DetailBuilder.EditCategory(TEXT("Commands")); 24 | 25 | for (UClass* Class : Classes) 26 | { 27 | for (TFieldIterator FuncIt(Class); FuncIt; ++FuncIt) 28 | { 29 | UFunction* Function = *FuncIt; 30 | if (Function->HasAnyFunctionFlags(FUNC_Exec) && (Function->NumParms == 0)) 31 | { 32 | const FString FunctionName = Function->GetName(); 33 | const FText ButtonCaption = FText::FromString(FunctionName); 34 | const FString FilterString = FunctionName; 35 | 36 | Category.AddCustomRow(FText::FromString(FilterString)) 37 | .ValueContent() 38 | [ 39 | SNew(SButton) 40 | .Text(ButtonCaption) 41 | .OnClicked(FOnClicked::CreateStatic(&FBaseEditorToolCustomization::ExecuteToolCommand, &DetailBuilder, Function)) 42 | ]; 43 | } 44 | } 45 | } 46 | } 47 | 48 | TSharedRef FBaseEditorToolCustomization::MakeInstance() 49 | { 50 | return MakeShareable(new FBaseEditorToolCustomization); 51 | } 52 | 53 | FReply FBaseEditorToolCustomization::ExecuteToolCommand(IDetailLayoutBuilder* DetailBuilder, UFunction* MethodToExecute) 54 | { 55 | TArray> ObjectsBeingCustomized; 56 | DetailBuilder->GetObjectsBeingCustomized(ObjectsBeingCustomized); 57 | 58 | for (auto WeakObject : ObjectsBeingCustomized) 59 | { 60 | if (UObject* Instance = WeakObject.Get()) 61 | { 62 | Instance->CallFunctionByNameWithArguments(*MethodToExecute->GetName(), *GLog, nullptr, true); 63 | } 64 | } 65 | 66 | return FReply::Handled(); 67 | } 68 | 69 | #undef LOCTEXT_NAMESPACE -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/BaseEditorToolCustomization.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "IDetailCustomization.h" 4 | 5 | class FBaseEditorToolCustomization : public IDetailCustomization 6 | { 7 | public: 8 | virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override; 9 | 10 | static TSharedRef MakeInstance(); 11 | 12 | static FReply ExecuteToolCommand(IDetailLayoutBuilder* DetailBuilder, UFunction* MethodToExecute); 13 | }; -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/FJanusExporterModulePrivatePCH.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Engine.h" 4 | #include "Editor.h" 5 | #include "SlateBasics.h" -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusCommands.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "JanusCommands.h" 3 | 4 | #define LOCTEXT_NAMESPACE "JanusExporter" 5 | 6 | void FJanusCommands::RegisterCommands() 7 | { 8 | //UI_COMMAND(TestCommand, "Test Command", "Performs a test command", EUserInterfaceActionType::Button, FInputGesture()); 9 | } 10 | 11 | #undef LOCTEXT_NAMESPACE 12 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusCommands.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "JanusExporterStyle.h" 4 | 5 | class FJanusCommands : public TCommands 6 | { 7 | public: 8 | FJanusCommands() 9 | : TCommands( 10 | TEXT("JanusExporterExtensions"), // Context name for fast lookup 11 | NSLOCTEXT("Contents", "Janus", "Janus Exporter"), 12 | NAME_None, // Parent 13 | FJanusExporterStyle::Get()->GetStyleSetName() // Icon Style Set 14 | ) 15 | { 16 | } 17 | 18 | // TCommand<> interface 19 | void RegisterCommands() override; 20 | // End of TCommand<> interface 21 | 22 | public: 23 | //TSharedPtr TestCommand; 24 | }; 25 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusExporterStyle.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "JanusExporterStyle.h" 3 | 4 | void FJanusExporterStyle::Initialize() 5 | { 6 | // Only register once 7 | if (StyleSet.IsValid()) 8 | { 9 | return; 10 | } 11 | 12 | StyleSet = MakeShareable(new FSlateStyleSet(GetStyleSetName())); 13 | 14 | FSlateStyleRegistry::RegisterSlateStyle(*StyleSet.Get()); 15 | } 16 | 17 | void FJanusExporterStyle::Shutdown() 18 | { 19 | if (StyleSet.IsValid()) 20 | { 21 | FSlateStyleRegistry::UnRegisterSlateStyle(*StyleSet.Get()); 22 | ensure(StyleSet.IsUnique()); 23 | StyleSet.Reset(); 24 | } 25 | } 26 | 27 | TSharedPtr< class FSlateStyleSet > FJanusExporterStyle::StyleSet = nullptr; 28 | 29 | TSharedPtr< class ISlateStyle > FJanusExporterStyle::Get() 30 | { 31 | return StyleSet; 32 | } 33 | 34 | FName FJanusExporterStyle::GetStyleSetName() 35 | { 36 | return TEXT("DemoStyle"); 37 | } 38 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusExporterStyle.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class FJanusExporterStyle 4 | { 5 | public: 6 | static void Initialize(); 7 | 8 | static void Shutdown(); 9 | 10 | static TSharedPtr< class ISlateStyle > Get(); 11 | 12 | static FName GetStyleSetName(); 13 | private: 14 | //static FString InContent(const FString& RelativePath, const ANSICHAR* Extension); 15 | 16 | private: 17 | static TSharedPtr< class FSlateStyleSet > StyleSet; 18 | }; -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusExporterUI.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "JanusExporterUI.h" 3 | #include "WinUtil.h" 4 | 5 | UJanusExporterUI::UJanusExporterUI(const FObjectInitializer& ObjectInitializer) 6 | : Super(ObjectInitializer) 7 | { 8 | UWinUtil util; 9 | ExportPath = util.GetDefaultExportPath(GConfig); 10 | } 11 | 12 | bool UJanusExporterUI::CanEditChange(const UProperty* InProperty) const 13 | { 14 | bool bIsMutable = Super::CanEditChange(InProperty); 15 | return bIsMutable; 16 | } -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusExporterUI.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "CoreMinimal.h" 4 | #include "UObject/ObjectMacros.h" 5 | #include "UObject/Object.h" 6 | #include "Factories/ImportSettings.h" 7 | #include "JanusImporterIncludes.h" 8 | #include "JanusExporterUI.generated.h" 9 | 10 | UCLASS(config = EditorPerProjectUserSettings, AutoExpandCategories = (FTransform), HideCategories = Object, MinimalAPI) 11 | class UJanusExporterUI : public UObject 12 | { 13 | GENERATED_UCLASS_BODY() 14 | 15 | public: 16 | FString ExportPath; 17 | 18 | UPROPERTY(EditAnywhere, Category = AssetObjects, meta = (ClampMin = "0.0001", ClampMax = "10000000.0")) 19 | float ExportScale = 0.01f; 20 | 21 | UPROPERTY(EditAnywhere, Category = Materials, meta = (ClampMin = "32", ClampMax = "4096")) 22 | int MaterialResolution = 1024; 23 | //UPROPERTY(EditAnywhere, Category = Lightmaps) 24 | TEnumAsByte MaterialFormat = JanusTextureFormat::PNG; 25 | 26 | //UPROPERTY(EditAnywhere, Category = Materials) 27 | bool ExportNormals = false; 28 | 29 | UPROPERTY(EditAnywhere, Category = Lightmaps) 30 | TEnumAsByte LightmapFormat = JanusLightmapExportType::PackedOpenEXR; 31 | UPROPERTY(EditAnywhere, Category = Lightmaps, meta = (ClampMin = "-5", ClampMax = "5")) 32 | float RelativeFStops = 0; 33 | 34 | 35 | /** UObject Interface */ 36 | virtual bool CanEditChange(const UProperty* InProperty) const override; 37 | 38 | }; 39 | 40 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusExporterWindow.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "CoreMinimal.h" 4 | #include "InputCoreTypes.h" 5 | #include "Widgets/DeclarativeSyntaxSupport.h" 6 | #include "Input/Reply.h" 7 | #include "Widgets/SCompoundWidget.h" 8 | #include "Widgets/SWindow.h" 9 | #include "JanusExporterUI.h" 10 | //#include "JanusFbxExporter.h" 11 | 12 | class SJanusExporterWindow : public SCompoundWidget 13 | { 14 | public: 15 | SLATE_BEGIN_ARGS(SJanusExporterWindow) 16 | : _FullPath() 17 | , _MaxWindowHeight(0.0f) 18 | , _MaxWindowWidth(0.0f) 19 | {} 20 | 21 | SLATE_ARGUMENT(FText, FullPath) 22 | SLATE_ARGUMENT(float, MaxWindowHeight) 23 | SLATE_ARGUMENT(float, MaxWindowWidth) 24 | SLATE_END_ARGS() 25 | 26 | void Construct(const FArguments& InArgs); 27 | virtual bool SupportsKeyboardFocus() const override { return true; } 28 | 29 | UJanusExporterUI* GetData(); 30 | 31 | SJanusExporterWindow() 32 | { 33 | ToolData = NewObject(); 34 | //UJanusFbxExporter* Exporter = UJanusFbxExporter::GetInstance(); 35 | } 36 | 37 | FReply OnBrowseDir(); 38 | FReply DoExport(); 39 | FReply ShowInExplorer(); 40 | 41 | private: 42 | UJanusExporterUI* ToolData; 43 | SWindow* ParentWindow; 44 | float MaxWindowHeight; 45 | float MaxWindowWidth; 46 | }; 47 | 48 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/JanusImporterIncludes.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | UENUM() 4 | enum JanusTextureFormat 5 | { 6 | OpenEXR, 7 | PNG 8 | }; 9 | 10 | UENUM() 11 | enum JanusLightmapExportType 12 | { 13 | None, 14 | PackedOpenEXR, 15 | PackedLDR 16 | }; 17 | 18 | struct AssetImage 19 | { 20 | JanusTextureFormat Format; 21 | FString Path; 22 | }; 23 | struct AssetObject 24 | { 25 | UStaticMesh* Mesh; 26 | UStaticMeshComponent* Component; 27 | FString Path; 28 | }; 29 | 30 | 31 | 32 | struct JanusExporter 33 | { 34 | public: 35 | 36 | 37 | static FString GetTextureFormatExtension(JanusTextureFormat format) 38 | { 39 | switch (format) 40 | { 41 | case JanusTextureFormat::OpenEXR: 42 | return ".exr"; 43 | case JanusTextureFormat::PNG: 44 | return ".png"; 45 | default: 46 | return ""; 47 | } 48 | } 49 | }; -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/WinUtil.cpp: -------------------------------------------------------------------------------- 1 | #include "FJanusExporterModulePrivatePCH.h" 2 | #include "WinUtil.h" 3 | #include 4 | 5 | FString UWinUtil::GetDefaultExportPath(FConfigCacheIni* GConfig) 6 | { 7 | wchar_t* DocumentsFolder = 0; 8 | SHGetKnownFolderPath(FOLDERID_Documents, 0, NULL, &DocumentsFolder); 9 | 10 | // get scene name 11 | int DocumentsFolderLength = wcslen(DocumentsFolder); 12 | FString ExportPath = FString(DocumentsFolderLength, DocumentsFolder); 13 | 14 | FString ProjectName; 15 | GConfig->GetString( 16 | TEXT("/Script/EngineSettings.GeneralProjectSettings"), 17 | TEXT("ProjectName"), 18 | ProjectName, 19 | GGameIni 20 | ); 21 | if (ProjectName.IsEmpty()) 22 | { 23 | ProjectName = L"Unreal Project"; 24 | } 25 | 26 | ExportPath = ExportPath + L"\\JanusVR\\workspaces\\" + ProjectName + L"\\"; 27 | 28 | CoTaskMemFree(static_cast(DocumentsFolder)); 29 | 30 | return ExportPath; 31 | } -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Private/WinUtil.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "CoreMinimal.h" 4 | 5 | struct UWinUtil 6 | { 7 | public: 8 | UWinUtil() 9 | { 10 | } 11 | 12 | FString GetDefaultExportPath(FConfigCacheIni* GConfig); 13 | }; 14 | -------------------------------------------------------------------------------- /unreal/JanusExporter/Source/JanusExporter/Public/BaseEditorTool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "BaseEditorTool.generated.h" 4 | 5 | UCLASS(Blueprintable, Abstract) 6 | class UBaseEditorTool : public UObject 7 | { 8 | GENERATED_BODY() 9 | }; -------------------------------------------------------------------------------- /unreal/Readme.md: -------------------------------------------------------------------------------- 1 | Janus VR Unreal Exporter v2.0A 2 | 3 | 1. Copy the JanusExporter folder into your "Project\Plugins" folder 4 | 2. Open the project as normal, Unreal will ask to build the new plugin packages. 5 | 3. To export, hit Edit -> Janus Exporter -> JanusVR Exporter --------------------------------------------------------------------------------