Skip to content

Commit a783948

Browse files
committed
dial fine tune not both hands linked anymore, alpha fix for multimix, Tutorials no autostart
1 parent 41819e9 commit a783948

File tree

9 files changed

+24
-17
lines changed

9 files changed

+24
-17
lines changed

Assets/Materials/diagramSymbols/multipleSplitterNode.mat

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Material:
8484
- _BlendOp: 0
8585
- _BumpScale: 1
8686
- _Cull: 2
87-
- _Cutoff: 0.495
87+
- _Cutoff: 0.476
8888
- _DetailNormalMapScale: 1
8989
- _DstBlend: 10
9090
- _EmissionGain: 0

Assets/Scripts/CoreClasses/beatTracker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class beatTracker : ScriptableObject {
4242
public delegate void ResetEvent();
4343
public ResetEvent resetEvent;
4444

45-
int[] beatVals = new int[] { 1, 2, 4, 8, 12, 16, 24, 32, 64 }; //1,2,4,8,16,32,64
45+
int[] beatVals = new int[] { 1, 2, 4, 8, 12, 16, 24, 32, 64 };
4646
int curBeat = 0;
4747
float[] timeValues = new float[] { };
4848
float lastTime = 0;

Assets/Scripts/CoreClasses/manipulator.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
public class manipulator : MonoBehaviour
4444
{
45-
int controllerIndex = -1;
45+
int controllerIndex = -1; // 0 => left, 1 => right
4646
public GameObject activeTip;
4747
public Transform tipL, tipR;
4848
public Transform triggerTrans;
@@ -113,6 +113,10 @@ public void SetDeviceIndex(int index)
113113
}
114114
}
115115

116+
public bool isLeftController() {
117+
return controllerIndex == 0 ? true : false;
118+
}
119+
116120
bool grabbing;
117121
public bool emptyGrab;
118122

Assets/Scripts/Sequencer/sequencerCVDeviceInterface.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private void OnAudioFilterRead(float[] buffer, int channels)
335335
int selectedStep = 0;
336336
void UpdateStepSelect()
337337
{
338-
// bugfix for randomly skipped / missed steps.
338+
// bugfix for randomly skipped / missed steps in sequencer.
339339
// this routine would fire even if the step selector handle was not touched or grabbed.
340340
// this could be due to an multithread issue between main and audio thread, which is still unsolved.
341341
if (stepSelect.curState != manipObject.manipState.grabbed) return;

Assets/Scripts/Tutorials/tutorialsDeviceInterface.cs

+7-6
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ void Start()
8585
tutorials[i].setVideo(tutorialRecords[i].videoString);
8686
}
8787

88-
triggerOpenTutorial(tutorials[0]);
88+
89+
triggerOpenTutorial(tutorials[0], true);
8990

9091
}
9192
Vector3 scaleVector = new Vector3(0f, 1f, 1f);
@@ -152,13 +153,13 @@ public override void hit(bool on, int ID = -1)
152153

153154
}
154155

155-
public void triggerOpenTutorial(tutorialPanel tut)
156+
public void triggerOpenTutorial(tutorialPanel tut, bool startPaused = false)
156157
{
157158
playButton.keyHit(false);
158-
StartCoroutine(openTutorial(tut));
159+
StartCoroutine(openTutorial(tut, startPaused));
159160
}
160161

161-
IEnumerator openTutorial(tutorialPanel tut)
162+
IEnumerator openTutorial(tutorialPanel tut, bool startPaused = false)
162163
{
163164

164165
selectedTutorial = tut;
@@ -179,11 +180,11 @@ IEnumerator openTutorial(tutorialPanel tut)
179180
{
180181
yield return new WaitForSeconds(.1f);
181182
}
182-
183+
videoPlayer.skipOnDrop = false;
183184
videoPlayer.renderMode = VideoRenderMode.MaterialOverride;
184185
videoPlayer.targetMaterialRenderer = videoPlayer.GetComponentInChildren<Renderer>();
185186
videoPlayer.targetMaterialProperty = "_MainTex";
186-
forcePlay();
187+
if(!startPaused) forcePlay();
187188
}
188189

189190
public void playPauseVideo()

Assets/Scripts/UI/dial/dial.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,14 @@ public override void grabUpdate(Transform t)
216216
// only raw input worked properly
217217
//if ((t.parent.parent.name == "ControllerLeft" && OVRInput.Get(OVRInput.RawAxis1D.LHandTrigger) > 0.1f)
218218
//|| (t.parent.parent.name == "ControllerRight" && OVRInput.Get(OVRInput.RawAxis1D.RHandTrigger) > 0.1f)) {
219-
if (OVRInput.Get(OVRInput.RawAxis1D.LHandTrigger) > 0.1f || OVRInput.Get(OVRInput.RawAxis1D.RHandTrigger) > 0.1f) {
219+
if ( ( OVRInput.Get(OVRInput.RawAxis1D.LHandTrigger) > 0.1f && manipulatorObjScript.isLeftController() )
220+
|| ( OVRInput.Get(OVRInput.RawAxis1D.RHandTrigger) > 0.1f && !manipulatorObjScript.isLeftController()) ) {
220221
curRot += (controllerRot - lastControllerRot) / fineMult;
221222
} else {
222223
curRot += controllerRot - lastControllerRot;
223224
}
224225

226+
225227
lastControllerRot = controllerRot;
226228

227229
curRot = Mathf.Clamp(curRot, -150f, 150f);

Assets/Text/Materials/MenuMat.mat

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ Material:
8181
- _Color: {r: 1, g: 1, b: 1, a: 1}
8282
- _DiffuseColor: {r: 1, g: 1, b: 1, a: 1}
8383
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
84-
- _TintColor: {r: 0.27, g: 0.5219999, b: 0.9, a: 1}
84+
- _TintColor: {r: 0.9, g: 0.27, b: 0.27, a: 1}
8585
m_BuildTextureStacks: []

Assets/Textures/Decals/arrow-90CW.png.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProjectSettings/ProjectSettings.asset

+4-4
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ PlayerSettings:
774774
allowUnsafeCode: 0
775775
useDeterministicCompilation: 1
776776
enableRoslynAnalyzers: 1
777-
selectedPlatform: 0
777+
selectedPlatform: 2
778778
additionalIl2CppArgs:
779779
scriptingRuntimeVersion: 1
780780
gcIncremental: 1
@@ -807,6 +807,7 @@ PlayerSettings:
807807
metroSplashScreenUseBackgroundColor: 1
808808
platformCapabilities:
809809
WindowsStoreApps:
810+
EnterpriseAuthentication: False
810811
VideosLibrary: False
811812
HumanInterfaceDevice: False
812813
Location: False
@@ -817,7 +818,6 @@ PlayerSettings:
817818
LowLevelDevices: False
818819
PrivateNetworkClientServer: False
819820
InternetClientServer: False
820-
Proximity: False
821821
Objects3D: False
822822
RemoteSystem: False
823823
BlockedChatMessages: False
@@ -839,10 +839,10 @@ PlayerSettings:
839839
PointOfService: False
840840
RecordedCallsFolder: False
841841
Contacts: False
842-
InternetClient: False
842+
Proximity: False
843843
CodeGeneration: False
844844
BackgroundMediaPlayback: False
845-
EnterpriseAuthentication: False
845+
InternetClient: False
846846
metroTargetDeviceFamilies:
847847
Desktop: False
848848
Holographic: False

0 commit comments

Comments
 (0)