Easiest 4 points

This commit is contained in:
Alexander Munch-Hansen 2019-03-06 16:40:24 +01:00
parent 2836163354
commit 7cfd70c1da
12 changed files with 2664 additions and 1091 deletions

View File

@ -112,6 +112,113 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1001 &252507174
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1447995930}
m_Modifications:
- target: {fileID: 100002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_Name
value: flying_skull
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalPosition.z
value: 0.117
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.w
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 270
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalRotation.y
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 180
objectReference: {fileID: 0}
- target: {fileID: 13700000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 14807607ebe624b14bbc779bf8b2e67a, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b07d7c0ed92004731951cc02dfe544a4, type: 3}
--- !u!4 &802242655 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 400002, guid: b07d7c0ed92004731951cc02dfe544a4,
type: 3}
m_PrefabInstance: {fileID: 252507174}
m_PrefabAsset: {fileID: 0}
--- !u!1 &813611124
GameObject:
m_ObjectHideFlags: 0
@ -226,7 +333,7 @@ MonoBehaviour:
m_Script: {fileID: -1826476478, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
m_Name:
m_EditorClassIdentifier:
mWorldCenterMode: 0
mWorldCenterMode: 2
mWorldCenter: {fileID: 0}
--- !u!81 &1447995928
AudioListener:
@ -288,7 +395,8 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Children:
- {fileID: 802242655}
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

View File

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">
<Tracking>
<ImageTarget name="YZ" size="0.150000 0.150000" />
<ImageTarget name="QRS" size="0.150000 0.150000" />
<ImageTarget name="IJK" size="0.150000 0.150000" />
<ImageTarget name="ABC" size="0.150000 0.150000" />
<ImageTarget name="finger_drawing_template" size="0.297000 0.210052" />
<ImageTarget name="h" size="0.035000 0.050831" />
<ImageTarget name="f" size="0.035000 0.046583" />

View File

@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class change_everything : MonoBehaviour
{
private TextMesh colorQuad;
private GameObject color;
private GameObject brightness;
private Renderer rend;
// Start is called before the first frame update
void Start()
{
color = GameObject.Find("color");
brightness = GameObject.Find("brightness");
rend = gameObject.GetComponent<Renderer>();
}
// Update is called once per frame
void Update()
{
var color_rot = color.transform.rotation.eulerAngles.y / 360f;
var bright_rot = brightness.transform.rotation.eulerAngles.y / 360f;
rend.material.color = Color.HSVToRGB(color_rot, 1, bright_rot);
}
}

77
AR-3/Assets/color_mat.mat Normal file
View File

@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: color_mat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

File diff suppressed because it is too large Load Diff

View File

@ -14,13 +14,28 @@ public class make_text : MonoBehaviour, ITrackableEventHandler
newStatus == ImageTargetBehaviour.Status.DETECTED ||
newStatus == ImageTargetBehaviour.Status.EXTENDED_TRACKED)
{
if (gameObject.name == "del")
var rotation = gameObject.transform.rotation.eulerAngles.y;
print($"The rotation: {rotation}");
print($"rotation / 45: {rotation / 45}");
var letter = gameObject.name[(int)(rotation / 45)].ToString();
print($"The letter: {letter}");
if (letter == "1")
{
textQuad.text = textQuad.text.Remove(textQuad.text.Length - 1);
}
else if (letter == "0")
{
textQuad.text += " ";
} else if (letter == "9")
{
textQuad.text += "<3";
}
else
{
textQuad.text += gameObject.name;
textQuad.text += letter;
}
}
}
@ -39,8 +54,9 @@ public class make_text : MonoBehaviour, ITrackableEventHandler
// Update is called once per frame
void Update()
{
{
var rotation = gameObject.transform.rotation.eulerAngles.y;
print($"The rotation: {rotation}");
print($"rotation / 45: {rotation / 45}");
}
}

File diff suppressed because it is too large Load Diff