Initialer Upload neues Unity-Projekt
This commit is contained in:
24
Assets/Oculus/Spatializer/Oculus.Spatializer.asmdef
Normal file
24
Assets/Oculus/Spatializer/Oculus.Spatializer.asmdef
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "Oculus.Spatializer",
|
||||
"references": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.xr.management",
|
||||
"expression": "",
|
||||
"define": "USING_XR_MANAGEMENT"
|
||||
},
|
||||
{
|
||||
"name": "com.unity.xr.oculus",
|
||||
"expression": "",
|
||||
"define": "USING_XR_SDK_OCULUS"
|
||||
}
|
||||
],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
7
Assets/Oculus/Spatializer/Oculus.Spatializer.asmdef.meta
Normal file
7
Assets/Oculus/Spatializer/Oculus.Spatializer.asmdef.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d2c6c35bff878341a57ebf7a749f298
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/Plugins.meta
Normal file
9
Assets/Oculus/Spatializer/Plugins.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98f8de3e06b691a4a81218b17f50425b
|
||||
folderAsset: yes
|
||||
timeCreated: 1549938752
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/Plugins/Android.meta
Normal file
9
Assets/Oculus/Spatializer/Plugins/Android.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1ec0b585f1ff1141a7aff27b3051ecd
|
||||
folderAsset: yes
|
||||
timeCreated: 1441297332
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/Plugins/Android/libs.meta
Normal file
9
Assets/Oculus/Spatializer/Plugins/Android/libs.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74b7d3fc9204c7e4585f305bdd578ab7
|
||||
folderAsset: yes
|
||||
timeCreated: 1549940099
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af8817e8718ce644494ce28ce74d3c9c
|
||||
folderAsset: yes
|
||||
timeCreated: 1549940099
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1,93 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a57801270cf689244b48012cf9db1713
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 974645eea9b37a54f90ef4acffcf326e
|
||||
folderAsset: yes
|
||||
timeCreated: 1549940099
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1,93 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7fbe62f1c7858f945993b181b759a64b
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,33 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d100aef0c9e5604fadae2b9e444a8f2
|
||||
folderAsset: yes
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 757b8af1745763349a541c08724cdc8c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d47976489cf12e40a9b5b2fb846ee24
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1 @@
|
||||
APPLWRUN
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a98ddf6131a104a48bd9fecb5293f100
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict/>
|
||||
<key>files2</key>
|
||||
<dict/>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
9
Assets/Oculus/Spatializer/Plugins/x86.meta
Normal file
9
Assets/Oculus/Spatializer/Plugins/x86.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d02373d93b4b79e41af291b26708f322
|
||||
folderAsset: yes
|
||||
timeCreated: 1425156097
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/Plugins/x86/AudioPluginOculusSpatializer.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/Plugins/x86/AudioPluginOculusSpatializer.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,60 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a2d372edefc4cd54e9a670e7b84844b9
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: X86
|
||||
OS: Windows
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: X86
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Oculus/Spatializer/Plugins/x86_64.meta
Normal file
8
Assets/Oculus/Spatializer/Plugins/x86_64.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5157f25f994439847b0d979faa555a6f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/Plugins/x86_64/AudioPluginOculusSpatializer.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/Plugins/x86_64/AudioPluginOculusSpatializer.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,60 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c690d7fe6a087dd4d85889e33751393f
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: X86_64
|
||||
OS: Windows
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: X86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/editor.meta
Normal file
9
Assets/Oculus/Spatializer/editor.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a7ebdb460d56464d8b791d31175510c
|
||||
folderAsset: yes
|
||||
timeCreated: 1544586570
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
324
Assets/Oculus/Spatializer/editor/ONSPAudioPluginUpdater.cs
Normal file
324
Assets/Oculus/Spatializer/editor/ONSPAudioPluginUpdater.cs
Normal file
@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
|
||||
[InitializeOnLoad]
|
||||
class ONSPAudioPluginUpdater
|
||||
{
|
||||
private static bool restartPending = false;
|
||||
private static bool unityRunningInBatchmode = false;
|
||||
|
||||
private static System.Version invalidVersion = new System.Version("0.0.0");
|
||||
|
||||
static ONSPAudioPluginUpdater()
|
||||
{
|
||||
EditorApplication.delayCall += OnDelayCall;
|
||||
}
|
||||
|
||||
static void OnDelayCall()
|
||||
{
|
||||
if (System.Environment.CommandLine.Contains("-batchmode"))
|
||||
{
|
||||
unityRunningInBatchmode = true;
|
||||
}
|
||||
|
||||
if (ShouldAttemptPluginUpdate())
|
||||
{
|
||||
AttemptSpatializerPluginUpdate(true);
|
||||
}
|
||||
}
|
||||
|
||||
private static string GetCurrentProjectPath()
|
||||
{
|
||||
return Directory.GetParent(Application.dataPath).FullName;
|
||||
}
|
||||
|
||||
private static string GetUtilitiesRootPath()
|
||||
{
|
||||
var so = ScriptableObject.CreateInstance(typeof(ONSPAudioPluginUpdaterStub));
|
||||
var script = MonoScript.FromScriptableObject(so);
|
||||
string assetPath = AssetDatabase.GetAssetPath(script);
|
||||
string editorDir = Directory.GetParent(assetPath).FullName;
|
||||
string ovrDir = Directory.GetParent(editorDir).FullName;
|
||||
|
||||
return ovrDir;
|
||||
}
|
||||
|
||||
public static string GetVersionDescription(System.Version version)
|
||||
{
|
||||
bool isVersionValid = (version != invalidVersion);
|
||||
return isVersionValid ? version.ToString() : "(Unknown)";
|
||||
}
|
||||
|
||||
private static bool ShouldAttemptPluginUpdate()
|
||||
{
|
||||
if (unityRunningInBatchmode)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (autoUpdateEnabled && !restartPending && !Application.isPlaying);
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly string autoUpdateEnabledKey = "Oculus_Utilities_ONSPAudioPluginUpdater_AutoUpdate_" + 1.0;//PASOVRManager.utilitiesVersion;
|
||||
private static bool autoUpdateEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return PlayerPrefs.GetInt(autoUpdateEnabledKey, 1) == 1;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
PlayerPrefs.SetInt(autoUpdateEnabledKey, value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem("Oculus/Tools/Update Spatializer Plugin")]
|
||||
private static void RunSpatializerPluginUpdate()
|
||||
{
|
||||
autoUpdateEnabled = true;
|
||||
AttemptSpatializerPluginUpdate(false);
|
||||
}
|
||||
|
||||
// Separate entry point needed since "-executeMethod" does not support parameters or default parameter values
|
||||
private static void BatchmodePluginUpdate()
|
||||
{
|
||||
OnDelayCall(); // manually invoke when running editor in batchmode
|
||||
AttemptSpatializerPluginUpdate(false);
|
||||
}
|
||||
|
||||
private static string GetSpatializerPluginsRootPath()
|
||||
{
|
||||
string ovrPath = GetUtilitiesRootPath();
|
||||
string spatializerPluginsPath = Path.GetFullPath(Path.Combine(ovrPath, "../Spatializer/Plugins"));
|
||||
return spatializerPluginsPath;
|
||||
}
|
||||
|
||||
private static bool RenameSpatializerPluginToOld(string currentPluginPath)
|
||||
{
|
||||
if (File.Exists(currentPluginPath))
|
||||
{
|
||||
int index = 0;
|
||||
string targetPluginPath;
|
||||
string targetPluginMetaPath;
|
||||
for (; ; )
|
||||
{
|
||||
targetPluginPath = currentPluginPath + ".old" + index.ToString();
|
||||
targetPluginMetaPath = targetPluginPath + ".meta";
|
||||
if (!File.Exists(targetPluginPath) && !File.Exists(targetPluginPath))
|
||||
break;
|
||||
++index;
|
||||
}
|
||||
try
|
||||
{
|
||||
File.Move(currentPluginPath, targetPluginPath);
|
||||
File.Move(currentPluginPath + ".meta", targetPluginMetaPath);
|
||||
UnityEngine.Debug.LogFormat("Spatializer plugin renamed: {0} to {1}", currentPluginPath, targetPluginPath);
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UnityEngine.Debug.LogWarningFormat("Unable to rename spatializer plugin: {0}, exception {1}", currentPluginPath, e.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void AttemptSpatializerPluginUpdate(bool triggeredByAutoUpdate)
|
||||
{
|
||||
// We use a simplified path to update spatializer plugins:
|
||||
// If there is a new AudioPluginOculusSpatializer.dll.new, we'll rename the original one to .old, and the new one to .dll, and restart the editor
|
||||
|
||||
string pluginsPath = GetSpatializerPluginsRootPath();
|
||||
string newX86PluginPath = Path.GetFullPath(Path.Combine(pluginsPath, "x86/AudioPluginOculusSpatializer.dll.new"));
|
||||
string newX64PluginPath = Path.GetFullPath(Path.Combine(pluginsPath, "x86_64/AudioPluginOculusSpatializer.dll.new"));
|
||||
if (File.Exists(newX86PluginPath) || File.Exists(newX64PluginPath))
|
||||
{
|
||||
bool userAcceptsUpdate = false;
|
||||
|
||||
if (unityRunningInBatchmode)
|
||||
{
|
||||
userAcceptsUpdate = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
int dialogResult = EditorUtility.DisplayDialogComplex("Update Spatializer Plugins",
|
||||
"New spatializer plugin found. Do you want to upgrade? If you choose 'Upgrade', the old plugin will be renamed to AudioPluginOculusSpatializer.old",
|
||||
"Upgrade", "Don't upgrade", "Delete new plugin");
|
||||
if (dialogResult == 0)
|
||||
{
|
||||
userAcceptsUpdate = true;
|
||||
}
|
||||
else if (dialogResult == 1)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
else if (dialogResult == 2)
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(newX86PluginPath);
|
||||
File.Delete(newX86PluginPath + ".meta");
|
||||
File.Delete(newX64PluginPath);
|
||||
File.Delete(newX64PluginPath + ".meta");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("Exception happened when deleting new spatializer plugin: " + e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (userAcceptsUpdate)
|
||||
{
|
||||
bool upgradeDone = false;
|
||||
string curX86PluginPath = Path.Combine(pluginsPath, "x86/AudioPluginOculusSpatializer.dll");
|
||||
if (File.Exists(newX86PluginPath))
|
||||
{
|
||||
RenameSpatializerPluginToOld(curX86PluginPath);
|
||||
try
|
||||
{
|
||||
File.Move(newX86PluginPath, curX86PluginPath);
|
||||
File.Move(newX86PluginPath + ".meta", curX86PluginPath + ".meta");
|
||||
|
||||
// fix the platform
|
||||
string curX86PluginPathRel = "Assets/Oculus/Spatializer/Plugins/x86/AudioPluginOculusSpatializer.dll";
|
||||
UnityEngine.Debug.Log("path = " + curX86PluginPathRel);
|
||||
AssetDatabase.ImportAsset(curX86PluginPathRel, ImportAssetOptions.ForceUpdate);
|
||||
PluginImporter pi = PluginImporter.GetAtPath(curX86PluginPathRel) as PluginImporter;
|
||||
pi.SetCompatibleWithEditor(false);
|
||||
pi.SetCompatibleWithAnyPlatform(false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, false);
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, false);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, true);
|
||||
pi.SetCompatibleWithEditor(true);
|
||||
pi.SetEditorData("CPU", "X86");
|
||||
pi.SetEditorData("OS", "Windows");
|
||||
pi.SetPlatformData("Editor", "CPU", "X86");
|
||||
pi.SetPlatformData("Editor", "OS", "Windows");
|
||||
|
||||
AssetDatabase.ImportAsset(curX86PluginPathRel, ImportAssetOptions.ForceUpdate);
|
||||
AssetDatabase.Refresh();
|
||||
AssetDatabase.SaveAssets();
|
||||
|
||||
upgradeDone = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("Unable to rename the new spatializer plugin: " + e.Message);
|
||||
}
|
||||
}
|
||||
string curX64PluginPath = Path.Combine(pluginsPath, "x86_64/AudioPluginOculusSpatializer.dll");
|
||||
if (File.Exists(newX64PluginPath))
|
||||
{
|
||||
RenameSpatializerPluginToOld(curX64PluginPath);
|
||||
try
|
||||
{
|
||||
File.Move(newX64PluginPath, curX64PluginPath);
|
||||
File.Move(newX64PluginPath + ".meta", curX64PluginPath + ".meta");
|
||||
|
||||
// fix the platform
|
||||
string curX64PluginPathRel = "Assets/Oculus/Spatializer/Plugins/x86_64/AudioPluginOculusSpatializer.dll";
|
||||
UnityEngine.Debug.Log("path = " + curX64PluginPathRel);
|
||||
AssetDatabase.ImportAsset(curX64PluginPathRel, ImportAssetOptions.ForceUpdate);
|
||||
PluginImporter pi = PluginImporter.GetAtPath(curX64PluginPathRel) as PluginImporter;
|
||||
pi.SetCompatibleWithEditor(false);
|
||||
pi.SetCompatibleWithAnyPlatform(false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, false);
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, false);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, true);
|
||||
pi.SetCompatibleWithEditor(true);
|
||||
pi.SetEditorData("CPU", "X86_64");
|
||||
pi.SetEditorData("OS", "Windows");
|
||||
pi.SetPlatformData("Editor", "CPU", "X86_64");
|
||||
pi.SetPlatformData("Editor", "OS", "Windows");
|
||||
|
||||
AssetDatabase.ImportAsset(curX64PluginPathRel, ImportAssetOptions.ForceUpdate);
|
||||
AssetDatabase.Refresh();
|
||||
AssetDatabase.SaveAssets();
|
||||
|
||||
upgradeDone = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("Unable to rename the new spatializer plugin: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
if (upgradeDone)
|
||||
{
|
||||
if (unityRunningInBatchmode
|
||||
|| EditorUtility.DisplayDialog("Restart Unity",
|
||||
"Spatializer plugins has been upgraded."
|
||||
+ "\n\nPlease restart the Unity Editor to complete the update process."
|
||||
#if !UNITY_2017_1_OR_NEWER
|
||||
+ " You may need to manually relaunch Unity if you are using Unity 5.6 and higher."
|
||||
#endif
|
||||
,
|
||||
"Restart",
|
||||
"Not Now"))
|
||||
{
|
||||
RestartUnityEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void RestartUnityEditor()
|
||||
{
|
||||
if (unityRunningInBatchmode)
|
||||
{
|
||||
EditorApplication.Exit(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
restartPending = true;
|
||||
EditorApplication.OpenProject(GetCurrentProjectPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f2c64c63ba47b3449ca3bb32d2b82a3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class ONSPAudioPluginUpdaterStub : ScriptableObject
|
||||
{
|
||||
// Stub helper class to locate OVR Utilities Path through Unity Editor API.
|
||||
// Required to be a standalone class in a separate file or else MonoScript.FromScriptableObject() returns an empty string path.
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e050a42861e6994f936aa7dc4159f84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
105
Assets/Oculus/Spatializer/editor/ONSPAudioSourceEditor.cs
Normal file
105
Assets/Oculus/Spatializer/editor/ONSPAudioSourceEditor.cs
Normal file
@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
* Filename : ONSPAudioSourceEditor.cs
|
||||
* Content : This script adds editor functionality to OculusSpatializerUserParams script.
|
||||
***********************************************************************************/
|
||||
|
||||
#define CUSTOM_LAYOUT
|
||||
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[CustomEditor(typeof(ONSPAudioSource))]
|
||||
|
||||
public class OculusSpatializerUserParamsEditor : Editor
|
||||
{
|
||||
// target component
|
||||
private ONSPAudioSource m_Component;
|
||||
|
||||
// OnEnable
|
||||
void OnEnable()
|
||||
{
|
||||
m_Component = (ONSPAudioSource)target;
|
||||
}
|
||||
|
||||
// OnInspectorGUI
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
GUI.color = Color.white;
|
||||
Undo.RecordObject(m_Component, "OculusSpatializerUserParams");
|
||||
|
||||
{
|
||||
#if CUSTOM_LAYOUT
|
||||
m_Component.EnableSpatialization = EditorGUILayout.Toggle("Spatialization Enabled", m_Component.EnableSpatialization);
|
||||
m_Component.EnableRfl = EditorGUILayout.Toggle("Reflections Enabled", m_Component.EnableRfl);
|
||||
m_Component.Gain = EditorGUILayout.FloatField("Gain", m_Component.Gain);
|
||||
|
||||
Separator();
|
||||
|
||||
Label ("OCULUS ATTENUATION");
|
||||
m_Component.UseInvSqr = EditorGUILayout.Toggle("Enabled", m_Component.UseInvSqr);
|
||||
Label ("");
|
||||
Label("RANGE (0.0 - 1000000.0 meters)");
|
||||
m_Component.Near = EditorGUILayout.FloatField("Minimum", m_Component.Near);
|
||||
m_Component.Far = EditorGUILayout.FloatField("Maximum", m_Component.Far);
|
||||
|
||||
Label("");
|
||||
Label("VOLUMETRIC RADIUS (0.0 - 1000.0 meters)");
|
||||
m_Component.VolumetricRadius = EditorGUILayout.FloatField("Radius", m_Component.VolumetricRadius);
|
||||
|
||||
Separator();
|
||||
|
||||
Label("REVERB SEND LEVEL (-60.0 - 20.0 decibels)");
|
||||
m_Component.ReverbSend = EditorGUILayout.FloatField(" ", m_Component.ReverbSend);
|
||||
|
||||
Separator();
|
||||
|
||||
#else
|
||||
DrawDefaultInspector ();
|
||||
#endif
|
||||
}
|
||||
|
||||
if (GUI.changed)
|
||||
{
|
||||
EditorUtility.SetDirty(m_Component);
|
||||
}
|
||||
}
|
||||
|
||||
// Utilities, move out of here (or copy over to other editor script)
|
||||
|
||||
// Separator
|
||||
void Separator()
|
||||
{
|
||||
GUI.color = new Color(1, 1, 1, 0.25f);
|
||||
GUILayout.Box("", "HorizontalSlider", GUILayout.Height(16));
|
||||
GUI.color = Color.white;
|
||||
}
|
||||
|
||||
// Label
|
||||
void Label(string label)
|
||||
{
|
||||
EditorGUILayout.LabelField (label);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb850b86de9091d4db4595959c56f954
|
||||
timeCreated: 1442269815
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
* Filename : ONSPPropagationGeometryEditor.cs
|
||||
* Content : Geometry editor class
|
||||
Attach to geometry to define material properties
|
||||
***********************************************************************************/
|
||||
|
||||
//#define ENABLE_DEBUG_EXPORT_OBJ
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
[CustomEditor(typeof(ONSPPropagationGeometry))]
|
||||
public class ONSPPropagationGeometryEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
ONSPPropagationGeometry mesh = (ONSPPropagationGeometry)target;
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
bool newIncludeChildMeshes = EditorGUILayout.Toggle( new GUIContent("Include Child Meshes","Include all child meshes into single geometry instance"), mesh.includeChildMeshes );
|
||||
|
||||
Separator();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
string newFilePath = mesh.filePath;
|
||||
bool editedPath = false;
|
||||
bool writeMesh = false;
|
||||
EditorGUI.BeginDisabledGroup( Application.isPlaying );
|
||||
bool newFileEnabled = EditorGUILayout.Toggle( new GUIContent("File Enabled","If set, the serialized mesh file is used as the mesh data source"), mesh.fileEnabled );
|
||||
EditorGUILayout.LabelField( new GUIContent("File Path:","The path to the serialized mesh file, relative to the StreamingAssets directory" ),
|
||||
new GUIContent(mesh.filePathRelative != null ? mesh.filePathRelative : ""));
|
||||
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
EditorGUILayout.PrefixLabel( " " );
|
||||
if ( GUILayout.Button("Set Path") )
|
||||
{
|
||||
if (!System.IO.Directory.Exists(Application.streamingAssetsPath))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(Application.streamingAssetsPath);
|
||||
}
|
||||
|
||||
string directory = Application.streamingAssetsPath;
|
||||
string fileName = mesh.gameObject.name + "." + ONSPPropagationGeometry.GEOMETRY_FILE_EXTENSION;
|
||||
|
||||
if (newFilePath != "")
|
||||
{
|
||||
directory = System.IO.Path.GetDirectoryName(newFilePath);
|
||||
fileName = System.IO.Path.GetFileName(newFilePath);
|
||||
}
|
||||
|
||||
newFilePath = EditorUtility.SaveFilePanel(
|
||||
"Save baked mesh to file", directory, fileName,
|
||||
ONSPPropagationGeometry.GEOMETRY_FILE_EXTENSION);
|
||||
|
||||
// If the user canceled, use the old path.
|
||||
if ( newFilePath == null || newFilePath.Length == 0 )
|
||||
newFilePath = mesh.filePath;
|
||||
else
|
||||
editedPath = true;
|
||||
}
|
||||
|
||||
if ( GUILayout.Button("Bake Mesh to File") )
|
||||
writeMesh = true;
|
||||
|
||||
EditorGUILayout.EndHorizontal();
|
||||
|
||||
#if ENABLE_DEBUG_EXPORT_OBJ
|
||||
// this allows you to export the geometry to a .obj for viewing
|
||||
// in an external model viewer for debugging/validation
|
||||
if ( GUILayout.Button("Write to .obj (debug)") )
|
||||
mesh.WriteToObj();
|
||||
#endif
|
||||
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
#endif
|
||||
|
||||
if ( EditorGUI.EndChangeCheck() )
|
||||
{
|
||||
Undo.RecordObject( mesh, "Edited OVRAudioMesh" );
|
||||
|
||||
mesh.includeChildMeshes = newIncludeChildMeshes;
|
||||
mesh.fileEnabled = newFileEnabled;
|
||||
|
||||
newFilePath = newFilePath.Replace(Application.streamingAssetsPath + "/", "");
|
||||
|
||||
if ( editedPath )
|
||||
mesh.filePathRelative = newFilePath;
|
||||
|
||||
if ( editedPath || writeMesh )
|
||||
mesh.WriteFile();
|
||||
}
|
||||
|
||||
if ( Application.isPlaying && GUILayout.Button("Upload Mesh") )
|
||||
mesh.UploadGeometry();
|
||||
}
|
||||
void Separator()
|
||||
{
|
||||
GUI.color = new Color(1, 1, 1, 0.25f);
|
||||
GUILayout.Box("", "HorizontalSlider", GUILayout.Height(16));
|
||||
GUI.color = Color.white;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 914f2bea7a48eba40885dfc3262f12e4
|
||||
timeCreated: 1528234336
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,571 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
* Filename : ONSPPropagationMaterialEditor.cs
|
||||
* Content : Propagation material editor class
|
||||
Attach to geometry to define material properties
|
||||
***********************************************************************************/
|
||||
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
using Spectrum = ONSPPropagationMaterial.Spectrum;
|
||||
using Point = ONSPPropagationMaterial.Point;
|
||||
|
||||
[CustomEditor(typeof(ONSPPropagationMaterial))]
|
||||
internal sealed class ONSPPropagationMaterialEditor : Editor{
|
||||
|
||||
private enum AxisScale{ Lin, Log, Sqr }
|
||||
|
||||
private sealed class SpectrumDrawer{
|
||||
|
||||
private const float cutoff = 20000f;
|
||||
|
||||
private static readonly Texture2D texture = EditorGUIUtility.whiteTexture;
|
||||
|
||||
private static readonly GUIStyle textStyle = new GUIStyle{
|
||||
|
||||
alignment = TextAnchor.MiddleLeft,
|
||||
clipping = TextClipping.Overflow,
|
||||
fontSize = 8,
|
||||
fontStyle = FontStyle.Bold,
|
||||
wordWrap = false,
|
||||
normal = new GUIStyleState{ textColor = Color.grey },
|
||||
focused = new GUIStyleState{ textColor = Color.grey }
|
||||
|
||||
};
|
||||
|
||||
private static int focus;
|
||||
|
||||
private readonly string label;
|
||||
|
||||
private readonly AxisScale scale;
|
||||
private readonly Spectrum spectrum;
|
||||
|
||||
private bool dragInitiated;
|
||||
private bool isDragging;
|
||||
|
||||
private bool displaySpectrum;
|
||||
private bool displayPoints;
|
||||
|
||||
internal bool IsFocus{
|
||||
|
||||
get{
|
||||
|
||||
return focus == spectrum.GetHashCode();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal SpectrumDrawer(string label, Spectrum spectrum, AxisScale scale){
|
||||
|
||||
this.label = label;
|
||||
this.spectrum = spectrum;
|
||||
this.scale = scale;
|
||||
|
||||
}
|
||||
|
||||
internal void Draw(Event e){
|
||||
|
||||
displaySpectrum = EditorGUILayout.Foldout(displaySpectrum, label);
|
||||
|
||||
if(displaySpectrum){
|
||||
|
||||
EditorGUI.indentLevel++;
|
||||
DrawSpectrum(e);
|
||||
|
||||
displayPoints = EditorGUILayout.Foldout(displayPoints, "Points");
|
||||
|
||||
if(displayPoints){
|
||||
|
||||
EditorGUI.indentLevel++;
|
||||
DrawPoints();
|
||||
EditorGUI.indentLevel--;
|
||||
|
||||
}
|
||||
|
||||
EditorGUI.indentLevel--;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal void LoadFoldoutState(){
|
||||
|
||||
displaySpectrum = EditorPrefs.GetBool(label + "Spectrum", true);
|
||||
displayPoints = EditorPrefs.GetBool(label + "Points", false);
|
||||
|
||||
}
|
||||
|
||||
internal void SaveFoldoutState(){
|
||||
|
||||
EditorPrefs.SetBool(label + "Spectrum", displaySpectrum);
|
||||
EditorPrefs.SetBool(label + "Points", displayPoints);
|
||||
|
||||
}
|
||||
|
||||
private void DrawSpectrum(Event e){
|
||||
|
||||
float height = 10 * EditorGUIUtility.singleLineHeight;
|
||||
Rect r = EditorGUILayout.GetControlRect(true, height);
|
||||
|
||||
r.width -= rightMargin;
|
||||
DrawDataTicks(r);
|
||||
r = AudioCurveRendering.BeginCurveFrame(r);
|
||||
|
||||
AudioCurveRendering.DrawFilledCurve(r, EvaluateCurve, AudioCurveRendering.kAudioOrange);
|
||||
|
||||
DrawFrequencyTicks(r);
|
||||
|
||||
HandleEvent(r, e);
|
||||
if(IsFocus) DrawSelected(r);
|
||||
|
||||
AudioCurveRendering.EndCurveFrame();
|
||||
|
||||
}
|
||||
|
||||
private void DrawPoints(){
|
||||
|
||||
var points = spectrum.points;
|
||||
int lines = points.Count > 0 ? points.Count + 2 : 1;
|
||||
float height = EditorGUIUtility.singleLineHeight * lines;
|
||||
Rect r1 = EditorGUILayout.GetControlRect(true, height);
|
||||
r1.width -= rightMargin;
|
||||
r1.height = EditorGUIUtility.singleLineHeight;
|
||||
|
||||
{
|
||||
|
||||
int oldCount = points.Count;
|
||||
int newCount = EditorGUI.DelayedIntField(r1, "Size", oldCount);
|
||||
r1.y += r1.height;
|
||||
|
||||
if(newCount < points.Count){
|
||||
|
||||
points.RemoveRange(newCount, oldCount - newCount);
|
||||
Undo.SetCurrentGroupName("Points Removed");
|
||||
GUI.changed = true;
|
||||
|
||||
} else if(newCount > oldCount){
|
||||
|
||||
if(newCount > points.Capacity)
|
||||
points.Capacity = newCount;
|
||||
|
||||
for(int i = oldCount; i < newCount; i++)
|
||||
points.Add(new Point(125 * (1 << i)));
|
||||
|
||||
Undo.SetCurrentGroupName("Points Added");
|
||||
GUI.changed = true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(points.Count > 0){
|
||||
|
||||
Rect r2 = new Rect(r1.xMax + 9, r1.y + r1.height * 1.125f, 24, r1.height * .75f);
|
||||
|
||||
r1.width /= 2;
|
||||
EditorGUI.LabelField(r1, "Frequency");
|
||||
r1.x += r1.width;
|
||||
EditorGUI.LabelField(r1, "Data");
|
||||
r1.x -= r1.width;
|
||||
r1.y += r1.height;
|
||||
|
||||
for(int i = 0; i < points.Count; i++){
|
||||
|
||||
points[i].frequency = EditorGUI.FloatField(r1, points[i].frequency);
|
||||
points[i].frequency = Mathf.Clamp(points[i].frequency, 0f, cutoff);
|
||||
r1.x += r1.width;
|
||||
points[i].data = EditorGUI.FloatField(r1, points[i].data);
|
||||
points[i].data = Mathf.Clamp01(points[i].data);
|
||||
r1.x -= r1.width;
|
||||
r1.y += r1.height;
|
||||
|
||||
if(GUI.Button(r2, "–")){
|
||||
|
||||
RemovePointAt(i);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
r2.y += r1.height;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void DrawDataTicks(Rect r){
|
||||
|
||||
const int ticks = 10;
|
||||
Rect label = new Rect(r.xMax + 9, r.y - r.height / (2 * ticks), 24, r.height / ticks);
|
||||
Rect tick = new Rect(r.xMax + 2, r.y - 1, 4.5f, 2);
|
||||
|
||||
for(int i = 0; i <= ticks; i++){
|
||||
|
||||
float value = MapData(1 - (float)i / ticks, false);
|
||||
|
||||
EditorGUI.DrawRect(tick, textStyle.normal.textColor);
|
||||
GUI.Label(label, value.ToString("0.000"), textStyle);
|
||||
tick.y += label.height;
|
||||
label.y += label.height;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void DrawFrequencyTicks(Rect r){
|
||||
|
||||
Rect tick = new Rect(r.x, r.y, 1, r.height);
|
||||
Rect label = new Rect(r.x, r.yMax - 1.5f * EditorGUIUtility.singleLineHeight, 32, EditorGUIUtility.singleLineHeight);
|
||||
|
||||
for(int i = 1; i < 30; i++){
|
||||
|
||||
float frequency;
|
||||
|
||||
if(MapFrequencyTick(i, out frequency)){
|
||||
|
||||
tick.x = MapFrequency(frequency) * r.width;
|
||||
tick.height = label.y - r.y;
|
||||
tick.width = 2;
|
||||
EditorGUI.DrawRect(tick, textStyle.normal.textColor);
|
||||
|
||||
tick.y = label.yMax;
|
||||
tick.height = r.yMax - label.yMax;
|
||||
EditorGUI.DrawRect(tick, textStyle.normal.textColor);
|
||||
|
||||
label.x = tick.x - 2;
|
||||
GUI.Label(label, FrequencyToString(frequency), textStyle);
|
||||
|
||||
tick.y = r.y;
|
||||
tick.height = r.height;
|
||||
tick.width = 1;
|
||||
|
||||
} else{
|
||||
|
||||
tick.x = MapFrequency(frequency) * r.width;
|
||||
EditorGUI.DrawRect(tick, textStyle.normal.textColor);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void DrawSelected(Rect r){
|
||||
|
||||
if(spectrum.points.Count > spectrum.selection){
|
||||
|
||||
const float radius = 12;
|
||||
Vector2 position = MapPointPosition(r, spectrum.points[spectrum.selection]);
|
||||
Vector2 size = new Vector2(radius, radius);
|
||||
r = new Rect(position - size / 2, size);
|
||||
|
||||
#if UNITY_5
|
||||
GUI.DrawTexture(r, texture, ScaleMode.StretchToFill, false, 0);
|
||||
GUI.DrawTexture(r, texture, ScaleMode.StretchToFill, false, 0);
|
||||
#else
|
||||
GUI.DrawTexture(r, texture, ScaleMode.StretchToFill, false, 0, Color.white, 0, radius);
|
||||
GUI.DrawTexture(r, texture, ScaleMode.StretchToFill, false, 0, Color.black, 2, radius);
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleEvent(Rect r, Event e){
|
||||
|
||||
Vector2 position = e.mousePosition;
|
||||
|
||||
switch(e.type){
|
||||
|
||||
case EventType.MouseDown:
|
||||
|
||||
if(r.Contains(position)){
|
||||
|
||||
if(e.clickCount == 2){
|
||||
|
||||
spectrum.selection = spectrum.points.Count;
|
||||
spectrum.points.Add(MapMouseEvent(r, position));
|
||||
Undo.SetCurrentGroupName("Point Added");
|
||||
GUI.changed = true;
|
||||
|
||||
} else{
|
||||
|
||||
int selection = spectrum.selection;
|
||||
float minDistance = float.MaxValue;
|
||||
|
||||
for(int i = 0; i < spectrum.points.Count; i++){
|
||||
|
||||
float distance = Vector2.Distance(MapPointPosition(r, spectrum.points[i]), position);
|
||||
|
||||
if(distance < minDistance){
|
||||
|
||||
selection = i;
|
||||
minDistance = distance;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(selection != spectrum.selection){
|
||||
|
||||
spectrum.selection = selection;
|
||||
Undo.SetCurrentGroupName("Point Selected");
|
||||
GUI.changed = true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
focus = spectrum.GetHashCode();
|
||||
dragInitiated = true;
|
||||
|
||||
} else{
|
||||
|
||||
isDragging = false;
|
||||
focus = 0;
|
||||
|
||||
}
|
||||
|
||||
e.Use();
|
||||
|
||||
break;
|
||||
|
||||
case EventType.MouseDrag:
|
||||
|
||||
if(dragInitiated){
|
||||
|
||||
dragInitiated = false;
|
||||
isDragging = true;
|
||||
|
||||
}
|
||||
|
||||
if(isDragging && spectrum.selection < spectrum.points.Count){
|
||||
|
||||
spectrum.points[spectrum.selection] = MapMouseEvent(r, position);
|
||||
e.Use();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case EventType.Ignore:
|
||||
case EventType.MouseUp:
|
||||
|
||||
dragInitiated = false;
|
||||
|
||||
if(isDragging){
|
||||
|
||||
isDragging = false;
|
||||
Undo.SetCurrentGroupName("Point Moved");
|
||||
GUI.changed = true;
|
||||
e.Use();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case EventType.KeyDown:
|
||||
|
||||
switch(e.keyCode){
|
||||
|
||||
case KeyCode.Delete:
|
||||
case KeyCode.Backspace:
|
||||
|
||||
if(spectrum.selection < spectrum.points.Count){
|
||||
|
||||
RemovePointAt(spectrum.selection);
|
||||
e.Use();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void RemovePointAt(int index){
|
||||
|
||||
spectrum.points.RemoveAt(index);
|
||||
|
||||
if(spectrum.selection == index)
|
||||
spectrum.selection = spectrum.points.Count;
|
||||
|
||||
Undo.SetCurrentGroupName("Point Removed");
|
||||
GUI.changed = true;
|
||||
|
||||
}
|
||||
|
||||
private float EvaluateCurve(float f){
|
||||
|
||||
return 2 * MapData(spectrum[MapFrequency(f, false)]) - 1;
|
||||
|
||||
}
|
||||
|
||||
private Vector2 MapPointPosition(Rect r, Point point){
|
||||
|
||||
return new Vector2{
|
||||
|
||||
x = r.x + r.width * MapFrequency(point.frequency),
|
||||
y = r.y + r.height * (1 - MapData(point.data))
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
private Point MapMouseEvent(Rect r, Vector2 v){
|
||||
|
||||
return new Point{
|
||||
|
||||
frequency = v.x < r.xMin ? 0 : v.x > r.xMax ? cutoff : MapFrequency((v.x - r.x) / r.width, false),
|
||||
data = v.y < r.yMin ? 1 : v.y > r.yMax ? 0 : MapData(1 - (v.y - r.y) / r.height, false)
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
private float MapData(float f, bool forward = true){
|
||||
|
||||
switch(scale){
|
||||
|
||||
case AxisScale.Log:
|
||||
return forward ? f < 1e-3f ? 0 : 1 + Mathf.Log10(f) / 3 : Mathf.Pow(10, -3 * (1 - f));
|
||||
|
||||
case AxisScale.Sqr:
|
||||
return forward ? Mathf.Sqrt(f) : f * f;
|
||||
|
||||
default:
|
||||
case AxisScale.Lin:
|
||||
return f;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static bool MapFrequencyTick(int i, out float frequency){
|
||||
|
||||
int power = i / 9 + 1;
|
||||
int multiplier = i % 9 + 1;
|
||||
|
||||
frequency = multiplier * Mathf.Pow(10, power);
|
||||
|
||||
return multiplier == 1;
|
||||
|
||||
}
|
||||
|
||||
public static float MapFrequency(float f, bool forward = true){
|
||||
|
||||
return forward ? f < 10 ? 0 : Mathf.Log(f / 10, cutoff / 10) : 10 * Mathf.Pow(cutoff / 10, f);
|
||||
|
||||
}
|
||||
|
||||
private static string FrequencyToString(float frequency){
|
||||
|
||||
if(frequency < 1000)
|
||||
return string.Format("{0:F0} Hz", frequency);
|
||||
else
|
||||
return string.Format("{0:F0} kHz", frequency * .001f);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private const float rightMargin = 36;
|
||||
|
||||
private SpectrumDrawer absorption, scattering, transmission;
|
||||
|
||||
private void OnEnable(){
|
||||
|
||||
GetSpectra(out absorption, out scattering, out transmission);
|
||||
|
||||
absorption.LoadFoldoutState();
|
||||
scattering.LoadFoldoutState();
|
||||
transmission.LoadFoldoutState();
|
||||
|
||||
}
|
||||
|
||||
private void OnDisable(){
|
||||
|
||||
absorption.SaveFoldoutState();
|
||||
scattering.SaveFoldoutState();
|
||||
transmission.SaveFoldoutState();
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI(){
|
||||
|
||||
ONSPPropagationMaterial material = target as ONSPPropagationMaterial;
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
Rect r = EditorGUILayout.GetControlRect();
|
||||
r.width -= rightMargin;
|
||||
|
||||
ONSPPropagationMaterial.Preset newPreset =
|
||||
(ONSPPropagationMaterial.Preset)EditorGUI.EnumPopup(r, "Preset", material.preset);
|
||||
|
||||
Event e = Event.current;
|
||||
EventType type = e.type;
|
||||
absorption.Draw(e);
|
||||
scattering.Draw(e);
|
||||
transmission.Draw(e);
|
||||
|
||||
if(EditorGUI.EndChangeCheck()){
|
||||
|
||||
string groupName = Undo.GetCurrentGroupName();
|
||||
|
||||
Undo.RegisterCompleteObjectUndo(material, groupName);
|
||||
|
||||
if(groupName == "Point Added")
|
||||
Undo.CollapseUndoOperations(Undo.GetCurrentGroup() - 1);
|
||||
|
||||
if(material.preset != newPreset)
|
||||
material.preset = newPreset;
|
||||
else
|
||||
material.preset = ONSPPropagationMaterial.Preset.Custom;
|
||||
|
||||
if(Application.isPlaying)
|
||||
material.UploadMaterial();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void GetSpectra(out SpectrumDrawer absorption,
|
||||
out SpectrumDrawer scattering,
|
||||
out SpectrumDrawer transmission){
|
||||
|
||||
ONSPPropagationMaterial material = target as ONSPPropagationMaterial;
|
||||
|
||||
absorption = new SpectrumDrawer("Absorption", material.absorption, AxisScale.Sqr);
|
||||
scattering = new SpectrumDrawer("Scattering", material.scattering, AxisScale.Lin);
|
||||
transmission = new SpectrumDrawer("Transmission", material.transmission, AxisScale.Sqr);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 232b6822c5f13ad449ffdb9cc4e6ba64
|
||||
timeCreated: 1526949143
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
* Filename : ONSPPropagationSerializationManager.cs
|
||||
* Content : Functionality for serializing Oculus Audio geometry
|
||||
***********************************************************************************/
|
||||
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build;
|
||||
using UnityEngine;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine.SceneManagement;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public enum PlayModeState
|
||||
{
|
||||
Stopped,
|
||||
Playing,
|
||||
Paused
|
||||
}
|
||||
|
||||
class ONSPPropagationSerializationManager
|
||||
{
|
||||
static ONSPPropagationSerializationManager()
|
||||
{
|
||||
EditorSceneManager.sceneSaving += OnSceneSaving;
|
||||
}
|
||||
public int callbackOrder { get { return 0; } }
|
||||
public void OnPreprocessBuild(BuildTarget target, string path)
|
||||
{
|
||||
Debug.Log("ONSPPropagationSerializationManager.OnPreprocessBuild for target " + target + " at path " + path);
|
||||
}
|
||||
|
||||
[MenuItem("Oculus/Spatializer/Build audio geometry for current scene")]
|
||||
public static void BuildAudioGeometryForCurrentScene()
|
||||
{
|
||||
BuildAudioGeometryForScene(EditorSceneManager.GetActiveScene());
|
||||
}
|
||||
|
||||
[MenuItem("Oculus/Spatializer/Rebuild audio geometry all scenes")]
|
||||
public static void RebuildAudioGeometryForAllScenes()
|
||||
{
|
||||
Debug.Log("Rebuilding geometry for all scenes");
|
||||
|
||||
System.IO.Directory.Delete(ONSPPropagationGeometry.GeometryAssetPath, true);
|
||||
|
||||
for (int i = 0; i < EditorSceneManager.sceneCount; ++i)
|
||||
{
|
||||
BuildAudioGeometryForScene(EditorSceneManager.GetSceneAt(i));
|
||||
}
|
||||
}
|
||||
|
||||
public static void OnSceneSaving(Scene scene, string path)
|
||||
{
|
||||
BuildAudioGeometryForScene(scene);
|
||||
}
|
||||
|
||||
private static void BuildAudioGeometryForScene(Scene scene)
|
||||
{
|
||||
Debug.Log("Building audio geometry for scene " + scene.name);
|
||||
|
||||
List<GameObject> rootObjects = new List<GameObject>();
|
||||
scene.GetRootGameObjects(rootObjects);
|
||||
|
||||
HashSet<string> fileNames = new HashSet<string>();
|
||||
foreach (GameObject go in rootObjects)
|
||||
{
|
||||
var geometryComponents = go.GetComponentsInChildren<ONSPPropagationGeometry>();
|
||||
foreach (ONSPPropagationGeometry geo in geometryComponents)
|
||||
{
|
||||
if (geo.fileEnabled)
|
||||
{
|
||||
if (!geo.WriteFile())
|
||||
{
|
||||
Debug.LogError("Failed writing geometry for " + geo.gameObject.name);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!fileNames.Add(geo.filePathRelative))
|
||||
{
|
||||
Debug.LogWarning("Duplicate file name detected: " + geo.filePathRelative);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log("Successfully built " + fileNames.Count + " geometry objects");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3760abfc2459983428e22b8adf2e7198
|
||||
timeCreated: 1543542380
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
149
Assets/Oculus/Spatializer/editor/ONSPReflectionCustomGUI.cs
Normal file
149
Assets/Oculus/Spatializer/editor/ONSPReflectionCustomGUI.cs
Normal file
@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the Oculus SDK License Agreement (the "License");
|
||||
* you may not use the Oculus SDK except in compliance with the License,
|
||||
* which is provided at the time of installation or download, or which
|
||||
* otherwise accompanies this software in either electronic or hard copy form.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://developer.oculus.com/licenses/oculussdk/
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, the Oculus SDK
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
* Filename : ONSPReflectionCustomGUI.cs
|
||||
* Content : GUI for Oculus Spatializer mixer effect
|
||||
***********************************************************************************/
|
||||
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class OculusSpatializerReflectionCustomGUI : IAudioEffectPluginGUI
|
||||
{
|
||||
public override string Name
|
||||
{
|
||||
get { return "OculusSpatializerReflection"; }
|
||||
}
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get { return "Reflection parameters for Oculus Spatializer"; }
|
||||
}
|
||||
|
||||
public override string Vendor
|
||||
{
|
||||
get { return "Oculus"; }
|
||||
}
|
||||
|
||||
public override bool OnGUI(IAudioEffectPlugin plugin)
|
||||
{
|
||||
float fval = 0.0f;
|
||||
bool bval = false;
|
||||
|
||||
Separator();
|
||||
Label("Voice limit (1 - 1024)");
|
||||
ONSPSettings.Instance.voiceLimit = EditorGUILayout.IntField(" ", ONSPSettings.Instance.voiceLimit);
|
||||
if (GUI.changed)
|
||||
{
|
||||
GUI.changed = false;
|
||||
EditorUtility.SetDirty(ONSPSettings.Instance);
|
||||
}
|
||||
|
||||
Separator();
|
||||
Label ("GLOBAL SCALE (0.00001 - 10000.0)");
|
||||
plugin.GetFloatParameter("GScale", out fval);
|
||||
plugin.SetFloatParameter("GScale", EditorGUILayout.FloatField(" ", Mathf.Clamp (fval, 0.00001f, 10000.0f)));
|
||||
|
||||
Separator();
|
||||
|
||||
Label ("REFLECTION ENGINE");
|
||||
Label("");
|
||||
// Treat these floats as bools in the inspector
|
||||
plugin.GetFloatParameter("E.Rflt On", out fval);
|
||||
bval = (fval == 0.0f) ? false : true;
|
||||
bval = EditorGUILayout.Toggle("Enable Early Reflections", bval);
|
||||
plugin.SetFloatParameter("E.Rflt On", (bval == false) ? 0.0f : 1.0f);
|
||||
|
||||
plugin.GetFloatParameter("E.Rflt Rev On", out fval);
|
||||
bval = (fval == 0.0f) ? false : true;
|
||||
bval = EditorGUILayout.Toggle("Enable Reverberation", bval);
|
||||
plugin.SetFloatParameter("E.Rflt Rev On", (bval == false) ? 0.0f : 1.0f);
|
||||
|
||||
Separator();
|
||||
Label("ROOM DIMENSIONS (meters)");
|
||||
Label("");
|
||||
plugin.GetFloatParameter("Room X", out fval);
|
||||
plugin.SetFloatParameter("Room X", EditorGUILayout.Slider("Width", fval, 1.0f, 200.0f));
|
||||
plugin.GetFloatParameter("Room Y", out fval);
|
||||
plugin.SetFloatParameter("Room Y", EditorGUILayout.Slider("Height", fval, 1.0f, 200.0f));
|
||||
plugin.GetFloatParameter("Room Z", out fval);
|
||||
plugin.SetFloatParameter("Room Z", EditorGUILayout.Slider("Length", fval, 1.0f, 200.0f));
|
||||
|
||||
Separator();
|
||||
Label("WALL REFLECTION COEFFICIENTS (0.0 - 0.97)");
|
||||
Label("");
|
||||
|
||||
plugin.GetFloatParameter("Left", out fval);
|
||||
plugin.SetFloatParameter("Left", EditorGUILayout.Slider("Left", fval, 0.0f, 0.97f));
|
||||
plugin.GetFloatParameter("Right", out fval);
|
||||
plugin.SetFloatParameter("Right", EditorGUILayout.Slider("Right", fval, 0.0f, 0.97f));
|
||||
plugin.GetFloatParameter("Up", out fval);
|
||||
plugin.SetFloatParameter("Up", EditorGUILayout.Slider("Up", fval, 0.0f, 0.97f));
|
||||
plugin.GetFloatParameter("Down", out fval);
|
||||
plugin.SetFloatParameter("Down", EditorGUILayout.Slider("Down", fval, 0.0f, 0.97f));
|
||||
plugin.GetFloatParameter("Behind", out fval);
|
||||
plugin.SetFloatParameter("Behind", EditorGUILayout.Slider("Back", fval, 0.0f, 0.97f));
|
||||
plugin.GetFloatParameter("Front", out fval);
|
||||
plugin.SetFloatParameter("Front", EditorGUILayout.Slider("Front", fval, 0.0f, 0.97f));
|
||||
|
||||
Separator();
|
||||
Label("SHARED REVERB ATTENUATION RANGE (1.0 - 10000.0 meters)");
|
||||
Label("");
|
||||
plugin.GetFloatParameter("Shared Rev Min", out fval);
|
||||
plugin.SetFloatParameter("Shared Rev Min", EditorGUILayout.Slider("Minimum", fval, 1.0f, 10000.0f));
|
||||
plugin.GetFloatParameter("Shared Rev Max", out fval);
|
||||
plugin.SetFloatParameter("Shared Rev Max", EditorGUILayout.Slider("Maximum", fval, 1.0f, 10000.0f));
|
||||
|
||||
Separator();
|
||||
Label("SHARED REVERB WET MIX (-60.0 - 20.0 dB)");
|
||||
Label("");
|
||||
plugin.GetFloatParameter("Shared Rev Wet", out fval);
|
||||
plugin.SetFloatParameter("Shared Rev Wet", EditorGUILayout.Slider(" ", fval, -60.0f, 20.0f));
|
||||
|
||||
Separator();
|
||||
Label("PROPAGATION QUALITY LEVEL (0.0 - 200.0%)");
|
||||
Label("");
|
||||
plugin.GetFloatParameter("Prop Quality", out fval);
|
||||
plugin.SetFloatParameter("Prop Quality", EditorGUILayout.Slider(" ", fval, 0.0f, 200.0f));
|
||||
|
||||
Separator();
|
||||
|
||||
// We will override the controls with our own, so return false
|
||||
return false;
|
||||
}
|
||||
|
||||
// Separator
|
||||
void Separator()
|
||||
{
|
||||
GUI.color = new Color(1, 1, 1, 0.25f);
|
||||
GUILayout.Box("", "HorizontalSlider", GUILayout.Height(16));
|
||||
GUI.color = Color.white;
|
||||
}
|
||||
|
||||
// Label
|
||||
void Label(string label)
|
||||
{
|
||||
EditorGUILayout.LabelField (label);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db551baa938b4714490ee011b5541447
|
||||
timeCreated: 1444752157
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "Oculus.Spatializer.Editor",
|
||||
"references": [
|
||||
"Oculus.Spatializer"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.xr.management",
|
||||
"expression": "",
|
||||
"define": "USING_XR_MANAGEMENT"
|
||||
},
|
||||
{
|
||||
"name": "com.unity.xr.oculus",
|
||||
"expression": "",
|
||||
"define": "USING_XR_SDK_OCULUS"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c45576b5244bbf4ebf491eae8b06528
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/scenes.meta
Normal file
9
Assets/Oculus/Spatializer/scenes.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 01192ee1c2d9d204ea8a4172eef60cd0
|
||||
folderAsset: yes
|
||||
timeCreated: 1424053913
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/RedBallGreenBall.unity
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/RedBallGreenBall.unity
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 305999d68a83b7d438df1bb704b6bc06
|
||||
timeCreated: 1442947197
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/scenes/Standard Assets.meta
Normal file
9
Assets/Oculus/Spatializer/scenes/Standard Assets.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8231a80b351751f4ab1a5258c53a67a4
|
||||
folderAsset: yes
|
||||
timeCreated: 1440803521
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54216e9ed42974e30967824b7f0b2806
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/3rd Person Controller.prefab
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/3rd Person Controller.prefab
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2314ce3a3eecf4816bad3c9eca4de2e1
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/First Person Controller.prefab
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/First Person Controller.prefab
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d4133d5d30b644bd87802a347eaccbe
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e0b0a994d8934541a387e092630b5db
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c81df2918c80c054ca3d436e62090893
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Constructor.FBX
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Constructor.FBX
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,289 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 449b48f7eb5d87a4baaa5fb73f875a59
|
||||
ModelImporter:
|
||||
serializedVersion: 16
|
||||
fileIDToRecycleName:
|
||||
100000: Bip001 R Finger1
|
||||
100002: Bip001 R Finger21
|
||||
100004: Bip001 R Finger11
|
||||
100006: Bip001 R Finger02
|
||||
100010: Bip001 R Finger12
|
||||
100012: Bip001 R Finger41
|
||||
100014: Bip001 R Finger4
|
||||
100018: Bip001 R Finger32
|
||||
100020: Bip001 R Finger31
|
||||
100022: Bip001 R Finger3
|
||||
100026: hip_adjustment_bone_right
|
||||
100028: Bip001 R Finger42
|
||||
100032: hip_adjustment_bone_left
|
||||
100034: Bip001 R Finger2
|
||||
100036: Bip001 R Finger22
|
||||
100040: Bip001 R UpperArm
|
||||
100042: Bip001 R Forearm
|
||||
100044: Bip001 R Finger0
|
||||
100046: Bip001 R Finger01
|
||||
100052: //RootNode
|
||||
100054: Bip001 R Clavicle
|
||||
100058: Bip001 L Finger3
|
||||
100060: Bip001 L Finger31
|
||||
100062: Bip001 L Finger32
|
||||
100066: Bip001 L Finger4
|
||||
100068: Bip001 L Finger41
|
||||
100070: Bip001 L Finger42
|
||||
100074: Bip001 L Finger22
|
||||
100076: Bip001 L Finger02
|
||||
100080: Bip001 L Finger1
|
||||
100082: Bip001 L Finger11
|
||||
100084: Bip001 L Finger12
|
||||
100088: Bip001 L Finger2
|
||||
100090: Bip001 L Finger21
|
||||
100092: Bip001 L Finger0
|
||||
100094: Bip001 L Finger01
|
||||
100096: Bip001 L Forearm
|
||||
100098: Bip001 L UpperArm
|
||||
100100: Bip001 L Clavicle
|
||||
100102: construction_worker
|
||||
100104: Bip001 R Toe0
|
||||
100106: Bip001 R Foot
|
||||
100108: Bip001 R Calf
|
||||
100110: Bip001 R Thigh
|
||||
100112: Bip001 L Toe0
|
||||
100114: Bip001 L Foot
|
||||
100116: Bip001 L Calf
|
||||
100118: Bip001 L Thigh
|
||||
100120: helmet_bone
|
||||
100124: Bip001 Head
|
||||
100126: wrench
|
||||
100128: Bip001 R Hand
|
||||
100130: Bip001 L Hand
|
||||
100132: Bip001 Neck
|
||||
100134: Bip001 Spine1
|
||||
100136: Bip001 Spine
|
||||
100138: Bip001 Pelvis
|
||||
100140: Bip001
|
||||
400000: Bip001 R Finger1
|
||||
400002: Bip001 R Finger21
|
||||
400004: Bip001 R Finger11
|
||||
400006: Bip001 R Finger02
|
||||
400010: Bip001 R Finger12
|
||||
400012: Bip001 R Finger41
|
||||
400014: Bip001 R Finger4
|
||||
400018: Bip001 R Finger32
|
||||
400020: Bip001 R Finger31
|
||||
400022: Bip001 R Finger3
|
||||
400026: hip_adjustment_bone_right
|
||||
400028: Bip001 R Finger42
|
||||
400032: hip_adjustment_bone_left
|
||||
400034: Bip001 R Finger2
|
||||
400036: Bip001 R Finger22
|
||||
400040: Bip001 R UpperArm
|
||||
400042: Bip001 R Forearm
|
||||
400044: Bip001 R Finger0
|
||||
400046: Bip001 R Finger01
|
||||
400052: //RootNode
|
||||
400054: Bip001 R Clavicle
|
||||
400058: Bip001 L Finger3
|
||||
400060: Bip001 L Finger31
|
||||
400062: Bip001 L Finger32
|
||||
400066: Bip001 L Finger4
|
||||
400068: Bip001 L Finger41
|
||||
400070: Bip001 L Finger42
|
||||
400074: Bip001 L Finger22
|
||||
400076: Bip001 L Finger02
|
||||
400080: Bip001 L Finger1
|
||||
400082: Bip001 L Finger11
|
||||
400084: Bip001 L Finger12
|
||||
400088: Bip001 L Finger2
|
||||
400090: Bip001 L Finger21
|
||||
400092: Bip001 L Finger0
|
||||
400094: Bip001 L Finger01
|
||||
400096: Bip001 L Forearm
|
||||
400098: Bip001 L UpperArm
|
||||
400100: Bip001 L Clavicle
|
||||
400102: construction_worker
|
||||
400104: Bip001 R Toe0
|
||||
400106: Bip001 R Foot
|
||||
400108: Bip001 R Calf
|
||||
400110: Bip001 R Thigh
|
||||
400112: Bip001 L Toe0
|
||||
400114: Bip001 L Foot
|
||||
400116: Bip001 L Calf
|
||||
400118: Bip001 L Thigh
|
||||
400120: helmet_bone
|
||||
400124: Bip001 Head
|
||||
400126: wrench
|
||||
400128: Bip001 R Hand
|
||||
400130: Bip001 L Hand
|
||||
400132: Bip001 Neck
|
||||
400134: Bip001 Spine1
|
||||
400136: Bip001 Spine
|
||||
400138: Bip001 Pelvis
|
||||
400140: Bip001
|
||||
2300000: wrench
|
||||
3300000: wrench
|
||||
4300000: construction_worker
|
||||
4300002: wrench
|
||||
7400012: idle
|
||||
7400014: run
|
||||
7400016: walk
|
||||
7400018: jump_pose
|
||||
11100000: //RootNode
|
||||
13700000: Bip001 Pelvis
|
||||
materials:
|
||||
importMaterials: 1
|
||||
materialName: 3
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 3
|
||||
bakeSimulation: 0
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
animationCompression: 0
|
||||
animationRotationError: .5
|
||||
animationPositionError: .5
|
||||
animationScaleError: .5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations:
|
||||
- serializedVersion: 16
|
||||
name: idle
|
||||
takeName:
|
||||
firstFrame: 2
|
||||
lastFrame: 62
|
||||
wrapMode: 2
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask: []
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
- serializedVersion: 16
|
||||
name: run
|
||||
takeName:
|
||||
firstFrame: 65
|
||||
lastFrame: 81
|
||||
wrapMode: 2
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask: []
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
- serializedVersion: 16
|
||||
name: walk
|
||||
takeName:
|
||||
firstFrame: 84
|
||||
lastFrame: 116
|
||||
wrapMode: 2
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask: []
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
- serializedVersion: 16
|
||||
name: jump_pose
|
||||
takeName:
|
||||
firstFrame: 118
|
||||
lastFrame: 123
|
||||
wrapMode: 0
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask: []
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: .00999999978
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
splitTangentsAcrossUV: 1
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 1
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: .5
|
||||
foreArmTwist: .5
|
||||
upperLegTwist: .5
|
||||
legTwist: .5
|
||||
armStretch: .0500000007
|
||||
legStretch: .0500000007
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e53c8c3dcc4ff59438bc9e86cb45c3f6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,46 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: constructor_done
|
||||
m_Shader: {fileID: 4, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: []
|
||||
m_CustomRenderQueue: -1
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 97b050d43ac7c4d2b9f6cbb587650761, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 531c14f8d5cdc4e5baa83ee6e16f783a, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
data:
|
||||
first:
|
||||
name: _Shininess
|
||||
second: .078125
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
data:
|
||||
first:
|
||||
name: _SpecColor
|
||||
second: {r: .5, g: .5, b: .5, a: 1}
|
||||
--- !u!1002 &2100001
|
||||
EditorExtensionImpl:
|
||||
serializedVersion: 6
|
||||
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca49380a71a2bb64c830d06bd421b9d1
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b365e6042890d4b1987423ed6bb8a08c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Textures/constructor_diffuse.png
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Textures/constructor_diffuse.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,47 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97b050d43ac7c4d2b9f6cbb587650761
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f781c091d1c8647c380d5230adfaee54
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,63 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
/// MouseLook rotates the transform based on the mouse delta.
|
||||
/// Minimum and Maximum values can be used to constrain the possible rotation
|
||||
|
||||
/// To make an FPS style character:
|
||||
/// - Create a capsule.
|
||||
/// - Add the MouseLook script to the capsule.
|
||||
/// -> Set the mouse look to use LookX. (You want to only turn character but not tilt it)
|
||||
/// - Add FPSInputController script to the capsule
|
||||
/// -> A CharacterMotor and a CharacterController component will be automatically added.
|
||||
|
||||
/// - Create a camera. Make the camera a child of the capsule. Reset it's transform.
|
||||
/// - Add a MouseLook script to the camera.
|
||||
/// -> Set the mouse look to use LookY. (You want the camera to tilt up and down like a head. The character already turns.)
|
||||
[AddComponentMenu("Camera-Control/Mouse Look")]
|
||||
public class MouseLook : MonoBehaviour {
|
||||
|
||||
public enum RotationAxes { MouseXAndY = 0, MouseX = 1, MouseY = 2 }
|
||||
public RotationAxes axes = RotationAxes.MouseXAndY;
|
||||
public float sensitivityX = 15F;
|
||||
public float sensitivityY = 15F;
|
||||
|
||||
public float minimumX = -360F;
|
||||
public float maximumX = 360F;
|
||||
|
||||
public float minimumY = -60F;
|
||||
public float maximumY = 60F;
|
||||
|
||||
float rotationY = 0F;
|
||||
|
||||
void Update ()
|
||||
{
|
||||
if (axes == RotationAxes.MouseXAndY)
|
||||
{
|
||||
float rotationX = transform.localEulerAngles.y + Input.GetAxis("Mouse X") * sensitivityX;
|
||||
|
||||
rotationY += Input.GetAxis("Mouse Y") * sensitivityY;
|
||||
rotationY = Mathf.Clamp (rotationY, minimumY, maximumY);
|
||||
|
||||
transform.localEulerAngles = new Vector3(-rotationY, rotationX, 0);
|
||||
}
|
||||
else if (axes == RotationAxes.MouseX)
|
||||
{
|
||||
transform.Rotate(0, Input.GetAxis("Mouse X") * sensitivityX, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
rotationY += Input.GetAxis("Mouse Y") * sensitivityY;
|
||||
rotationY = Mathf.Clamp (rotationY, minimumY, maximumY);
|
||||
|
||||
transform.localEulerAngles = new Vector3(-rotationY, transform.localEulerAngles.y, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void Start ()
|
||||
{
|
||||
// Make the rigid body not change rotation
|
||||
if (GetComponent<Rigidbody>())
|
||||
GetComponent<Rigidbody>().freezeRotation = true;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68ec2fe99d1108b9d0006a298d76c639
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/YellowBall.unity
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/YellowBall.unity
(Stored with Git LFS)
Normal file
Binary file not shown.
8
Assets/Oculus/Spatializer/scenes/YellowBall.unity.meta
Normal file
8
Assets/Oculus/Spatializer/scenes/YellowBall.unity.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c8a4434d7a298684fae176a7751d45a7
|
||||
timeCreated: 1493326122
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/scenes/materials.meta
Normal file
9
Assets/Oculus/Spatializer/scenes/materials.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 043c69ee822544cd18609a101bac4b55
|
||||
folderAsset: yes
|
||||
timeCreated: 1424053971
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
128
Assets/Oculus/Spatializer/scenes/materials/AmbisonicObject1.mat
Normal file
128
Assets/Oculus/Spatializer/scenes/materials/AmbisonicObject1.mat
Normal file
@ -0,0 +1,128 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: AmbisonicObject1
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _ALPHABLEND_ON _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 10
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 2
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 5
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 0
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0.90344834, g: 1, b: 0, a: 0.78431374}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 584662273d60a0f47bd7fecbb570e66e
|
||||
timeCreated: 1479162313
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
138
Assets/Oculus/Spatializer/scenes/materials/Ground.mat
Normal file
138
Assets/Oculus/Spatializer/scenes/materials/Ground.mat
Normal file
@ -0,0 +1,138 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Ground
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
data:
|
||||
first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Cutoff
|
||||
second: .5
|
||||
data:
|
||||
first:
|
||||
name: _Parallax
|
||||
second: .0199999996
|
||||
data:
|
||||
first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _Glossiness
|
||||
second: .416000009
|
||||
data:
|
||||
first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Metallic
|
||||
second: .317999989
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: .0288062226, g: .132352948, b: .00291955308, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e121bf11a9143914dbafa9e733415f2a
|
||||
timeCreated: 1440788967
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,128 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: SpatializedObject1
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _ALPHABLEND_ON _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 10
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 2
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 5
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 0
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0, g: 0.75735295, b: 0.13057812, a: 0.78431374}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6498d4298a35c5c44894b5f194468896
|
||||
timeCreated: 1440787665
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,128 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: SpatializedObject2
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _ALPHABLEND_ON _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 10
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 2
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 5
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 0
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 0, b: 0, a: 0.78431374}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f54ef0e328359c14b9005f8a48cbd66b
|
||||
timeCreated: 1441987536
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/scenes/mixers.meta
Normal file
9
Assets/Oculus/Spatializer/scenes/mixers.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a7a0ebb37fd844daca2d9ca3b56db8ee
|
||||
folderAsset: yes
|
||||
timeCreated: 1424053917
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
374
Assets/Oculus/Spatializer/scenes/mixers/SpatializerMixer.mixer
Normal file
374
Assets/Oculus/Spatializer/scenes/mixers/SpatializerMixer.mixer
Normal file
@ -0,0 +1,374 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!241 &24100000
|
||||
AudioMixerController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: SpatializerMixer
|
||||
m_OutputGroup: {fileID: 0}
|
||||
m_MasterGroup: {fileID: 24300001}
|
||||
m_Snapshots:
|
||||
- {fileID: 24500003}
|
||||
- {fileID: 245000012928175524}
|
||||
m_StartSnapshot: {fileID: 24500003}
|
||||
m_SuspendThreshold: -80
|
||||
m_EnableSuspend: 1
|
||||
m_UpdateMode: 0
|
||||
m_ExposedParameters: []
|
||||
m_AudioMixerGroupViews:
|
||||
- guids:
|
||||
- 725e77d6ee2433b4388bc90340f64b61
|
||||
name: View
|
||||
m_CurrentViewIndex: 0
|
||||
m_TargetSnapshot: {fileID: 24500003}
|
||||
--- !u!243 &24300001
|
||||
AudioMixerGroupController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Master
|
||||
m_AudioMixer: {fileID: 24100000}
|
||||
m_GroupID: 725e77d6ee2433b4388bc90340f64b61
|
||||
m_Children: []
|
||||
m_Volume: 0658889d5c88bf940b82d78b8d39562e
|
||||
m_Pitch: 0d4bed6fb113d6f4089b817171a98447
|
||||
m_Send: 00000000000000000000000000000000
|
||||
m_Effects:
|
||||
- {fileID: 24400002}
|
||||
- {fileID: 24482754}
|
||||
m_UserColorIndex: 0
|
||||
m_Mute: 0
|
||||
m_Solo: 0
|
||||
m_BypassEffects: 0
|
||||
--- !u!244 &24400002
|
||||
AudioMixerEffectController:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_EffectID: 42ec3f1ef4a750c4386011c7d2e2a267
|
||||
m_EffectName: Attenuation
|
||||
m_MixLevel: 82be81869b5ac364d99ce3b2ff1803b2
|
||||
m_Parameters: []
|
||||
m_SendTarget: {fileID: 0}
|
||||
m_EnableWetMix: 0
|
||||
m_Bypass: 0
|
||||
--- !u!244 &24482754
|
||||
AudioMixerEffectController:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_EffectID: 1d0f44df94bc52146b502b66296662ae
|
||||
m_EffectName: OculusSpatializerReflection
|
||||
m_MixLevel: a5b6bd72526f2e44ab339b0cad35a895
|
||||
m_Parameters:
|
||||
- m_ParameterName: E.Rflt On
|
||||
m_GUID: c37752d75bf132d47a7c3a93049722dc
|
||||
- m_ParameterName: E.Rflt Rev On
|
||||
m_GUID: f4fa4509dbcb99d46a3b47fb214a8e04
|
||||
- m_ParameterName: Room X
|
||||
m_GUID: 79190f1e429424246b6ff46577611745
|
||||
- m_ParameterName: Room Y
|
||||
m_GUID: 5cbf6ddbb7026dc45abe06cc43322e1c
|
||||
- m_ParameterName: Room Z
|
||||
m_GUID: 9760f1cc98e9dd54d9700864efe2f90a
|
||||
- m_ParameterName: Left
|
||||
m_GUID: c8aaa722d4ec4154bba4febdb24cb6a9
|
||||
- m_ParameterName: Right
|
||||
m_GUID: a7822f794e8835b44b5d97b299e90829
|
||||
- m_ParameterName: Up
|
||||
m_GUID: aff67efc612d61b469184c39ea2c6339
|
||||
- m_ParameterName: Down
|
||||
m_GUID: eedb6e2560b96954f80a6216a070957a
|
||||
- m_ParameterName: Behind
|
||||
m_GUID: f00e9382c178ba74091552a02191a248
|
||||
- m_ParameterName: Front
|
||||
m_GUID: aca764e9e8594ad4e82b73de0b803e6c
|
||||
- m_ParameterName: GScale
|
||||
m_GUID: 0a3224836f36e1a40a4ede80f5080595
|
||||
- m_ParameterName: Shared Rev Max
|
||||
m_GUID: d3e2b68513d653740a78c0c9c694e7c7
|
||||
- m_ParameterName: Shared Rev Min
|
||||
m_GUID: f55c0bb461c06f4419674ef5c9fa9953
|
||||
- m_ParameterName: Shared Rev Wet
|
||||
m_GUID: 89b024e93aacf7348a18a5bef31f8119
|
||||
m_SendTarget: {fileID: 0}
|
||||
m_EnableWetMix: 0
|
||||
m_Bypass: 0
|
||||
--- !u!245 &24500003
|
||||
AudioMixerSnapshotController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Snapshot Init
|
||||
m_AudioMixer: {fileID: 24100000}
|
||||
m_SnapshotID: a069d6b9a45325b43b6121c1de0b82fa
|
||||
m_FloatValues:
|
||||
9d315510bbbe3234f81f9ab55034eb95: 0.025578512
|
||||
58c9ed10d34cdd24f96279ad753b5c44: 0
|
||||
49ea3420a4d17de47999009a7def04ef: 138
|
||||
649ec8308d11398408f8b4edb4a345a0: 106
|
||||
cca26b403b997104bad4d1d8f7dca261: 140
|
||||
db11616008472904e881c76426b068d3: 140
|
||||
fcdca8708d2305f4593057c665f57be1: 0.438
|
||||
67b81af0af5f7a642ae9a80222f7abdf: 0.01
|
||||
48c4bbf0ea921c74c9fa6d520bee6afd: 0
|
||||
4b21d1410309db948974e02993ffec79: 0.97
|
||||
6392c38197012994ca13ff3d1d09933e: 0.155
|
||||
2bff1f9125a0ac04aa2de5826f284cd1: 0.538
|
||||
762f1bc1189ebbb4d826c6561132b46c: 0.38
|
||||
bd705ee11343600419ecb19a2ba1b040: 0.36
|
||||
eb9b8ff14fcb5f9488c715e2970b3b22: 0
|
||||
f7aab8027052a8e4bbbbfa3e10f77076: 1
|
||||
54a32c12472920747aadc169fc459833: 0.353
|
||||
c8aaa722d4ec4154bba4febdb24cb6a9: 0.5
|
||||
5873537254a301f4ea13ed21b0eff333: 0.512
|
||||
f00e9382c178ba74091552a02191a248: 0.5
|
||||
58edbc339fee35e4396568ee4b4453de: 0.92
|
||||
ccd919438ea41b84a8839e71f708afbb: 0.336
|
||||
0a3224836f36e1a40a4ede80f5080595: 1
|
||||
d65515935f752c649a20a13490f2f9e0: 0
|
||||
03939eb341cc86440a3b7f811113cd27: 0.385
|
||||
2cf715c32cf694e4d977b3798f5f8bb2: 90
|
||||
d2fdf2145b59fee4595a326c28abd184: 0
|
||||
de1b983492eda6c47b6ef47105b52dda: 0.97
|
||||
2e7f0254e7d38fd4eb3152ed5ccbaf19: 120
|
||||
820d8864a3100854b99c649ce38e7f1c: 1
|
||||
017e1c84d5ff649438cf7217f015a04f: 100
|
||||
f55c0bb461c06f4419674ef5c9fa9953: 1
|
||||
229fbec47d0de58408d0541ea2fa4c0e: 1.17
|
||||
c04dfb256afb48d499bb4540ed5265bb: 0.696
|
||||
eedb6e2560b96954f80a6216a070957a: 0.4
|
||||
c6d3fa55e85ddbe489d20e1e07efba6f: 0.97
|
||||
d046de7513d8e0b4fa166ea7382ecdaf: 0.511
|
||||
d3e2b68513d653740a78c0c9c694e7c7: 100
|
||||
5f0898855add70243aa14b3ea2677074: 1
|
||||
01578495ccbabed42984621c044e5d72: 0.97
|
||||
77d987a5a23fe9f40bc2a0ef32d60de5: 122
|
||||
bd33a706336bb6742960b31b56d6d312: 0
|
||||
70fb34464dced4d4fa0fcbc0a9bbcb03: 104
|
||||
fd57dbc6c9ab56441b50cb4ec452b383: 0.5
|
||||
0b9824d66b0abf64f9c881b46383bcc5: 157
|
||||
f5d601f6a1282e848b1945fd6c7c37a6: 0.512
|
||||
e25db507e301b004f861dc06d09175f4: 130
|
||||
1a8948470036df943be2b94d699cf4e9: 95
|
||||
285e7a478d90a1f4ea39bf4e24e02ebf: 3.2656894
|
||||
afbfe0879e482b64b9dd4ceeeed82492: 0.33
|
||||
ae6a7db7773ab66468e20795efab2e3e: 43
|
||||
c37752d75bf132d47a7c3a93049722dc: 1
|
||||
74df97f7555fd2241a41f845aa8c4d21: 0.353
|
||||
d26a4918d633cb54fbd7a5b40efe1639: 0.045
|
||||
bf51ba384a3c1f646a631feb6aed6c54: 114
|
||||
0f0fba6804dba4c4cb19fd30e1223afb: 2.87
|
||||
f4fa4509dbcb99d46a3b47fb214a8e04: 1
|
||||
56c841194b2fe3040b48cf98706d6e73: 0
|
||||
7413dd197ffb07340850468b31fcf1e0: 0.79
|
||||
36b1ac29e76462c4586c397a65308888: 0.5
|
||||
0417fc59ebc9a8546aeb76cabfc63779: 144
|
||||
d06ca37942b78cc4bb681d13d04fd13f: 0
|
||||
b8c78c79da9dc7647b11bfb614405d3a: 119
|
||||
a7822f794e8835b44b5d97b299e90829: 0.5
|
||||
528077a94b0c9414ebb8e893ec848cb5: 3.55
|
||||
77747ac9fbec3bd4ea88da457cdb9929: 0.388
|
||||
bac2bbc985be64f40b41721b00cd60b6: 1
|
||||
89b024e93aacf7348a18a5bef31f8119: 0
|
||||
aca764e9e8594ad4e82b73de0b803e6c: 0.5
|
||||
ea845bf95b8ca3643b1e02f7eb395c20: 124
|
||||
15ef323a36019924ca28f74bdd24e24c: 0
|
||||
686ebe5a2690c5e479c8116b11041079: 0
|
||||
4b58a99a50aafe74793b5dd2bedb0a96: 0.064
|
||||
81eebcba61cc4d94bbc3e7c351b3cf37: 0
|
||||
333585ca979bacf4eba5c4fee2741c4b: 0.273
|
||||
cad86ecad0994a1468302748ea994d5c: 111
|
||||
ddb13ffa06835ba45a05d6ccf101ba05: 139
|
||||
bb163b3baa1705545a7c704ec4ac0c7b: 0
|
||||
7c75d04b0f5050a48925a908ea48051c: 0.441
|
||||
db3eaa4b3a4d9364eb3994f66a47b51a: 0
|
||||
1c5e237b02d4533429539a0a6df19853: 0
|
||||
d887dc8b995a9174aab8c8b0de3b0733: 0.97
|
||||
fe36acab8a96d0046bafeb9e18a753df: 0.073
|
||||
34546ccb2e240cd48bcca671564120ce: 0
|
||||
5cbf6ddbb7026dc45abe06cc43322e1c: 3
|
||||
cc132edbccace48469977b60edca52a5: 0.447
|
||||
4cff19eb609afd84992763e1020b8181: 1
|
||||
a7077ffb091b65b4dbcb5026128b2c5e: -25
|
||||
c6cc7e2c3e902d94abdabdddc5a41800: 1
|
||||
2883db3c75b4127489b7549dabc871af: 0.67
|
||||
8998a24c4360c93478ec02f063d9b337: 0
|
||||
1033165c48652b34db906f50dde24a50: 0.571
|
||||
4a67b18c35650444b90dc3f572846173: 200
|
||||
917c2e9cef00f3442b1165a1fda7d72a: 0.55
|
||||
9760f1cc98e9dd54d9700864efe2f90a: 5
|
||||
d779d8cc83e43cc4592a9ba5ce40cb9e: 0.415
|
||||
447f4ecc9e3c96c4582c34dfc66436ae: 0
|
||||
6dc37decaec0c0f468ba6c1fb4f95ebf: 50
|
||||
aff67efc612d61b469184c39ea2c6339: 0.2
|
||||
5168eefc6d05f3d4d802a585308e8b67: 0.588
|
||||
7812eb7d1a7bba747868c3abff847dac: 0.538
|
||||
983c698dea217524c994e7b88f25df7d: 1
|
||||
ea47e49d533c4a149a56cf186a4119eb: 110
|
||||
0658889d5c88bf940b82d78b8d39562e: 0
|
||||
285a82bdfd80bae41b75462603f13baf: 0
|
||||
72def6bd2a38a944ead357650153b6b3: 0.441
|
||||
da2a1bdd1018dc54ebb2bf2349fbd8c8: 0.07
|
||||
e431e5ed060aa204c9ba5678db126270: 0.388
|
||||
3edd2aed8cd157048a7717f3d32caba1: 0.97
|
||||
79190f1e429424246b6ff46577611745: 8
|
||||
9cf1f33e7b3d84e40a784d007dfb6bbc: 0.72
|
||||
6c1fab5e5d70dbf47a590880e58bedf2: 0.52
|
||||
72e6fc6e91bd9c6438d9497c5c20f087: 97
|
||||
3f673d6ec3ebc7040aaabfb340a480ba: 2.0025296
|
||||
06e1389e10711584e98e63bcabbba3a4: 0.418
|
||||
cad173aee6b7e8c45ac30f9cc5e32b2c: 0
|
||||
b3b0eede46f5b304ba700843076db719: 0.209
|
||||
141e6fde7f4d66a4d9ce1878b64dc199: -28
|
||||
b1ed842f163fcae4989e68a530e081fd: 0.47
|
||||
1b16bf2faec4ce249a80ce7b9f1346bd: 0.406
|
||||
96bb113f992376e479fa8b09b724413d: 0.696
|
||||
29b9835ff985b2e4c97d9e4ee57e84b1: 0.415
|
||||
7ccabb5f18fe7824da14df39f37a68ec: 72
|
||||
0d4bed6fb113d6f4089b817171a98447: 1
|
||||
d90c93cfc45013545b3760e70f40dd9c: 0.65
|
||||
m_TransitionOverrides: {}
|
||||
--- !u!245 &245000012928175524
|
||||
AudioMixerSnapshotController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Snapshot Interior
|
||||
m_AudioMixer: {fileID: 24100000}
|
||||
m_SnapshotID: 06ac7339e485edb4182863286808e1fd
|
||||
m_FloatValues:
|
||||
9d315510bbbe3234f81f9ab55034eb95: 0.025578512
|
||||
58c9ed10d34cdd24f96279ad753b5c44: 0
|
||||
49ea3420a4d17de47999009a7def04ef: 138
|
||||
649ec8308d11398408f8b4edb4a345a0: 106
|
||||
cca26b403b997104bad4d1d8f7dca261: 140
|
||||
db11616008472904e881c76426b068d3: 140
|
||||
fcdca8708d2305f4593057c665f57be1: 0.438
|
||||
67b81af0af5f7a642ae9a80222f7abdf: 0.01
|
||||
48c4bbf0ea921c74c9fa6d520bee6afd: 0
|
||||
4b21d1410309db948974e02993ffec79: 0.97
|
||||
6392c38197012994ca13ff3d1d09933e: 0.155
|
||||
2bff1f9125a0ac04aa2de5826f284cd1: 0.538
|
||||
762f1bc1189ebbb4d826c6561132b46c: 0.38
|
||||
bd705ee11343600419ecb19a2ba1b040: 0.36
|
||||
eb9b8ff14fcb5f9488c715e2970b3b22: 0
|
||||
f7aab8027052a8e4bbbbfa3e10f77076: 1
|
||||
54a32c12472920747aadc169fc459833: 0.353
|
||||
c8aaa722d4ec4154bba4febdb24cb6a9: 0.857
|
||||
5873537254a301f4ea13ed21b0eff333: 0.512
|
||||
f00e9382c178ba74091552a02191a248: 0.768
|
||||
58edbc339fee35e4396568ee4b4453de: 0.92
|
||||
ccd919438ea41b84a8839e71f708afbb: 0.336
|
||||
0a3224836f36e1a40a4ede80f5080595: 1
|
||||
d65515935f752c649a20a13490f2f9e0: 0
|
||||
03939eb341cc86440a3b7f811113cd27: 0.385
|
||||
2cf715c32cf694e4d977b3798f5f8bb2: 90
|
||||
d2fdf2145b59fee4595a326c28abd184: 0
|
||||
de1b983492eda6c47b6ef47105b52dda: 0.97
|
||||
2e7f0254e7d38fd4eb3152ed5ccbaf19: 120
|
||||
820d8864a3100854b99c649ce38e7f1c: 1
|
||||
017e1c84d5ff649438cf7217f015a04f: 100
|
||||
f55c0bb461c06f4419674ef5c9fa9953: 1
|
||||
229fbec47d0de58408d0541ea2fa4c0e: 1.17
|
||||
c04dfb256afb48d499bb4540ed5265bb: 0.696
|
||||
eedb6e2560b96954f80a6216a070957a: 0.908
|
||||
c6d3fa55e85ddbe489d20e1e07efba6f: 0.97
|
||||
d046de7513d8e0b4fa166ea7382ecdaf: 0.511
|
||||
d3e2b68513d653740a78c0c9c694e7c7: 1
|
||||
5f0898855add70243aa14b3ea2677074: 1
|
||||
01578495ccbabed42984621c044e5d72: 0.97
|
||||
77d987a5a23fe9f40bc2a0ef32d60de5: 122
|
||||
bd33a706336bb6742960b31b56d6d312: 0
|
||||
70fb34464dced4d4fa0fcbc0a9bbcb03: 104
|
||||
fd57dbc6c9ab56441b50cb4ec452b383: 0.5
|
||||
0b9824d66b0abf64f9c881b46383bcc5: 157
|
||||
f5d601f6a1282e848b1945fd6c7c37a6: 0.512
|
||||
e25db507e301b004f861dc06d09175f4: 130
|
||||
1a8948470036df943be2b94d699cf4e9: 95
|
||||
285e7a478d90a1f4ea39bf4e24e02ebf: 3.2656894
|
||||
afbfe0879e482b64b9dd4ceeeed82492: 0.33
|
||||
ae6a7db7773ab66468e20795efab2e3e: 43
|
||||
c37752d75bf132d47a7c3a93049722dc: 1
|
||||
74df97f7555fd2241a41f845aa8c4d21: 0.353
|
||||
d26a4918d633cb54fbd7a5b40efe1639: 0.045
|
||||
bf51ba384a3c1f646a631feb6aed6c54: 114
|
||||
0f0fba6804dba4c4cb19fd30e1223afb: 2.87
|
||||
f4fa4509dbcb99d46a3b47fb214a8e04: 0
|
||||
56c841194b2fe3040b48cf98706d6e73: 0
|
||||
7413dd197ffb07340850468b31fcf1e0: 0.79
|
||||
36b1ac29e76462c4586c397a65308888: 0.5
|
||||
0417fc59ebc9a8546aeb76cabfc63779: 144
|
||||
d06ca37942b78cc4bb681d13d04fd13f: 0
|
||||
b8c78c79da9dc7647b11bfb614405d3a: 119
|
||||
a7822f794e8835b44b5d97b299e90829: 0.682
|
||||
528077a94b0c9414ebb8e893ec848cb5: 3.55
|
||||
77747ac9fbec3bd4ea88da457cdb9929: 0.388
|
||||
bac2bbc985be64f40b41721b00cd60b6: 1
|
||||
aca764e9e8594ad4e82b73de0b803e6c: 0.718
|
||||
ea845bf95b8ca3643b1e02f7eb395c20: 124
|
||||
15ef323a36019924ca28f74bdd24e24c: 0
|
||||
686ebe5a2690c5e479c8116b11041079: 0
|
||||
4b58a99a50aafe74793b5dd2bedb0a96: 0.064
|
||||
81eebcba61cc4d94bbc3e7c351b3cf37: 0
|
||||
333585ca979bacf4eba5c4fee2741c4b: 0.273
|
||||
cad86ecad0994a1468302748ea994d5c: 111
|
||||
ddb13ffa06835ba45a05d6ccf101ba05: 139
|
||||
bb163b3baa1705545a7c704ec4ac0c7b: 0
|
||||
7c75d04b0f5050a48925a908ea48051c: 0.441
|
||||
db3eaa4b3a4d9364eb3994f66a47b51a: 0
|
||||
1c5e237b02d4533429539a0a6df19853: 0
|
||||
d887dc8b995a9174aab8c8b0de3b0733: 0.97
|
||||
fe36acab8a96d0046bafeb9e18a753df: 0.073
|
||||
34546ccb2e240cd48bcca671564120ce: 0
|
||||
5cbf6ddbb7026dc45abe06cc43322e1c: 68
|
||||
cc132edbccace48469977b60edca52a5: 0.447
|
||||
4cff19eb609afd84992763e1020b8181: 1
|
||||
a7077ffb091b65b4dbcb5026128b2c5e: -25
|
||||
c6cc7e2c3e902d94abdabdddc5a41800: 1
|
||||
2883db3c75b4127489b7549dabc871af: 0.67
|
||||
8998a24c4360c93478ec02f063d9b337: 0
|
||||
1033165c48652b34db906f50dde24a50: 0.571
|
||||
4a67b18c35650444b90dc3f572846173: 200
|
||||
917c2e9cef00f3442b1165a1fda7d72a: 0.55
|
||||
9760f1cc98e9dd54d9700864efe2f90a: 70
|
||||
d779d8cc83e43cc4592a9ba5ce40cb9e: 0.415
|
||||
447f4ecc9e3c96c4582c34dfc66436ae: 0
|
||||
6dc37decaec0c0f468ba6c1fb4f95ebf: 50
|
||||
aff67efc612d61b469184c39ea2c6339: 0.762
|
||||
5168eefc6d05f3d4d802a585308e8b67: 0.588
|
||||
7812eb7d1a7bba747868c3abff847dac: 0.538
|
||||
983c698dea217524c994e7b88f25df7d: 1
|
||||
ea47e49d533c4a149a56cf186a4119eb: 110
|
||||
0658889d5c88bf940b82d78b8d39562e: 0
|
||||
285a82bdfd80bae41b75462603f13baf: 0
|
||||
72def6bd2a38a944ead357650153b6b3: 0.441
|
||||
da2a1bdd1018dc54ebb2bf2349fbd8c8: 0.07
|
||||
e431e5ed060aa204c9ba5678db126270: 0.388
|
||||
3edd2aed8cd157048a7717f3d32caba1: 0.97
|
||||
79190f1e429424246b6ff46577611745: 1
|
||||
9cf1f33e7b3d84e40a784d007dfb6bbc: 0.72
|
||||
6c1fab5e5d70dbf47a590880e58bedf2: 0.52
|
||||
72e6fc6e91bd9c6438d9497c5c20f087: 97
|
||||
3f673d6ec3ebc7040aaabfb340a480ba: 2.0025296
|
||||
06e1389e10711584e98e63bcabbba3a4: 0.418
|
||||
cad173aee6b7e8c45ac30f9cc5e32b2c: 0
|
||||
b3b0eede46f5b304ba700843076db719: 0.209
|
||||
141e6fde7f4d66a4d9ce1878b64dc199: -28
|
||||
b1ed842f163fcae4989e68a530e081fd: 0.47
|
||||
1b16bf2faec4ce249a80ce7b9f1346bd: 0.406
|
||||
96bb113f992376e479fa8b09b724413d: 0.696
|
||||
29b9835ff985b2e4c97d9e4ee57e84b1: 0.415
|
||||
7ccabb5f18fe7824da14df39f37a68ec: 72
|
||||
0d4bed6fb113d6f4089b817171a98447: 1
|
||||
d90c93cfc45013545b3760e70f40dd9c: 0.65
|
||||
m_TransitionOverrides: {}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1dd706bb85d8aef4e83a6229dbd62c36
|
||||
timeCreated: 1440786022
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Spatializer/scenes/sounds.meta
Normal file
9
Assets/Oculus/Spatializer/scenes/sounds.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b5d8866648b1d45d2bc312b463c14345
|
||||
folderAsset: yes
|
||||
timeCreated: 1424053923
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/360 Workstation Ambisonic Panning AmbiX.wav
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/360 Workstation Ambisonic Panning AmbiX.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1340d7fb0cd1bfb4caa3b3270cb2ea5f
|
||||
timeCreated: 1479409279
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 1
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/car.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/car.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
21
Assets/Oculus/Spatializer/scenes/sounds/car.ogg.meta
Normal file
21
Assets/Oculus/Spatializer/scenes/sounds/car.ogg.meta
Normal file
@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 354c37cd61ec24bbcbbc7921d0a71bc1
|
||||
timeCreated: 1424280968
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 0
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/hammer.wav
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/hammer.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
22
Assets/Oculus/Spatializer/scenes/sounds/hammer.wav.meta
Normal file
22
Assets/Oculus/Spatializer/scenes/sounds/hammer.wav.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a4baf251c1814716b9458d036384a76
|
||||
timeCreated: 1434610210
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/horse.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/horse.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
21
Assets/Oculus/Spatializer/scenes/sounds/horse.ogg.meta
Normal file
21
Assets/Oculus/Spatializer/scenes/sounds/horse.ogg.meta
Normal file
@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 494bd1721199a40c5a79fa3011793556
|
||||
timeCreated: 1424281508
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 0
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/loop.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/loop.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
21
Assets/Oculus/Spatializer/scenes/sounds/loop.ogg.meta
Normal file
21
Assets/Oculus/Spatializer/scenes/sounds/loop.ogg.meta
Normal file
@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37c9e69911022452a9ebd4ee732ab036
|
||||
timeCreated: 1424661047
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/noise.wav
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/noise.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
22
Assets/Oculus/Spatializer/scenes/sounds/noise.wav.meta
Normal file
22
Assets/Oculus/Spatializer/scenes/sounds/noise.wav.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 460d9a446cc128e4787c47d09d4af2bc
|
||||
timeCreated: 1479495149
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/scraping.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/scraping.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
22
Assets/Oculus/Spatializer/scenes/sounds/scraping.ogg.meta
Normal file
22
Assets/Oculus/Spatializer/scenes/sounds/scraping.ogg.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 236da4b84bba246d283010b1b2dcf28a
|
||||
timeCreated: 1434739439
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/sine.wav
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/sine.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
22
Assets/Oculus/Spatializer/scenes/sounds/sine.wav.meta
Normal file
22
Assets/Oculus/Spatializer/scenes/sounds/sine.wav.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 197b6f9ffe1223343aa4672db3771875
|
||||
timeCreated: 1443655172
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/speech.wav
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/speech.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
21
Assets/Oculus/Spatializer/scenes/sounds/speech.wav.meta
Normal file
21
Assets/Oculus/Spatializer/scenes/sounds/speech.wav.meta
Normal file
@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cfa96c21e4f54c20824bd26cd46c10f
|
||||
timeCreated: 1424054227
|
||||
licenseType: Store
|
||||
AudioImporter:
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 0
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/uss.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/uss.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
16
Assets/Oculus/Spatializer/scenes/sounds/uss.ogg.meta
Normal file
16
Assets/Oculus/Spatializer/scenes/sounds/uss.ogg.meta
Normal file
@ -0,0 +1,16 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f91d65267a08748519645f34d4358e48
|
||||
AudioImporter:
|
||||
serializedVersion: 5
|
||||
format: -1
|
||||
loadType: 1
|
||||
quality: 1
|
||||
sampleRate: 0
|
||||
forceToMono: 0
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
overrideSampleRate: 0
|
||||
optimizeSampleRate: 0
|
||||
3D: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
BIN
Assets/Oculus/Spatializer/scenes/sounds/vocal1.ogg
(Stored with Git LFS)
Normal file
BIN
Assets/Oculus/Spatializer/scenes/sounds/vocal1.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user