more stuff
56
AR-1/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
{
|
||||||
|
"files.exclude":
|
||||||
|
{
|
||||||
|
"**/.DS_Store":true,
|
||||||
|
"**/.git":true,
|
||||||
|
"**/.gitignore":true,
|
||||||
|
"**/.gitmodules":true,
|
||||||
|
"**/*.booproj":true,
|
||||||
|
"**/*.pidb":true,
|
||||||
|
"**/*.suo":true,
|
||||||
|
"**/*.user":true,
|
||||||
|
"**/*.userprefs":true,
|
||||||
|
"**/*.unityproj":true,
|
||||||
|
"**/*.dll":true,
|
||||||
|
"**/*.exe":true,
|
||||||
|
"**/*.pdf":true,
|
||||||
|
"**/*.mid":true,
|
||||||
|
"**/*.midi":true,
|
||||||
|
"**/*.wav":true,
|
||||||
|
"**/*.gif":true,
|
||||||
|
"**/*.ico":true,
|
||||||
|
"**/*.jpg":true,
|
||||||
|
"**/*.jpeg":true,
|
||||||
|
"**/*.png":true,
|
||||||
|
"**/*.psd":true,
|
||||||
|
"**/*.tga":true,
|
||||||
|
"**/*.tif":true,
|
||||||
|
"**/*.tiff":true,
|
||||||
|
"**/*.3ds":true,
|
||||||
|
"**/*.3DS":true,
|
||||||
|
"**/*.fbx":true,
|
||||||
|
"**/*.FBX":true,
|
||||||
|
"**/*.lxo":true,
|
||||||
|
"**/*.LXO":true,
|
||||||
|
"**/*.ma":true,
|
||||||
|
"**/*.MA":true,
|
||||||
|
"**/*.obj":true,
|
||||||
|
"**/*.OBJ":true,
|
||||||
|
"**/*.asset":true,
|
||||||
|
"**/*.cubemap":true,
|
||||||
|
"**/*.flare":true,
|
||||||
|
"**/*.mat":true,
|
||||||
|
"**/*.meta":true,
|
||||||
|
"**/*.prefab":true,
|
||||||
|
"**/*.unity":true,
|
||||||
|
"build/":true,
|
||||||
|
"Build/":true,
|
||||||
|
"Library/":true,
|
||||||
|
"library/":true,
|
||||||
|
"obj/":true,
|
||||||
|
"Obj/":true,
|
||||||
|
"ProjectSettings/":true,
|
||||||
|
"temp/":true,
|
||||||
|
"Temp/":true
|
||||||
|
}
|
||||||
|
}
|
32
AR-1/Assets/AlignmentScript.cs
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class AlignmentScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
var shuttle = GameObject.Find("ShuttleTarget").transform;
|
||||||
|
var landing = GameObject.Find("LandingTarget").transform;
|
||||||
|
var quad = GameObject.Find("AlignmentQuad");
|
||||||
|
|
||||||
|
print($"Up {shuttle.up}, forward {shuttle.forward}");
|
||||||
|
var upDot = Vector3.Dot(shuttle.up, landing.up);
|
||||||
|
var forwardDot = Vector3.Dot(shuttle.forward, landing.forward);
|
||||||
|
|
||||||
|
print($"upDot: {upDot}, forwardDot: {forwardDot}");
|
||||||
|
|
||||||
|
var ratio = (upDot + forwardDot) / 2;
|
||||||
|
var color = new Color((1 - ratio)*2, ratio, 0);
|
||||||
|
print(color);
|
||||||
|
quad.GetComponent<Renderer>().material.color = color;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
36
AR-1/Assets/CollideScript.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class CollideScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
var earth = GameObject.Find("Earth").transform;
|
||||||
|
var meteor = transform;
|
||||||
|
|
||||||
|
//print($"The earth location: {earth.position}");
|
||||||
|
//print($"The meteor location: {meteor.position}");
|
||||||
|
|
||||||
|
var distance = Vector3.Distance(earth.position, meteor.position);
|
||||||
|
if (distance < (earth.lossyScale + meteor.lossyScale).magnitude/4) {
|
||||||
|
print("EXPLOSION!");
|
||||||
|
var vector = earth.position - meteor.position;
|
||||||
|
var relCollisionPoint = vector.normalized * meteor.lossyScale.magnitude/2;
|
||||||
|
var absCollisionPoint = meteor.position + relCollisionPoint;
|
||||||
|
|
||||||
|
var explosion = GameObject.Find("Explosion").transform;
|
||||||
|
explosion.position = absCollisionPoint;
|
||||||
|
explosion.GetComponent<ParticleSystem>().Play();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 6.7 KiB |
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<VuforiaUnityInfo version="7.0">
|
||||||
|
<TargetSet version="5.0" toolVersion="2.7.4">
|
||||||
|
<CylinderTarget name="RocketBooster" version="3.0" targetId="484c0e9f4f1d4eec9649858e94bc7fe7" sideLength="0.114980" topDiameter="0.067390" bottomDiameter="0.067390" sideImage="RocketBooster.Body_scaled.jpg" topImage="RocketBooster.Top_scaled.jpg"/>
|
||||||
|
</TargetSet>
|
||||||
|
</VuforiaUnityInfo>
|
BIN
AR-1/Assets/Editor/Vuforia/ForPrint/CylinderTarget/cylinder_booster_USLetter.pdf
Executable file
BIN
AR-1/Assets/Editor/Vuforia/ForPrint/ImageTargets/target_images_USLetter.pdf
Executable file
BIN
AR-1/Assets/Editor/Vuforia/ForPrint/MultiTarget/mars_box_USLetter.pdf
Executable file
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 63 KiB |
75
AR-1/Assets/GPSScript.cs
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class GPSScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
private Transform earth;
|
||||||
|
private Transform nose;
|
||||||
|
private Transform shuttle;
|
||||||
|
private Transform positionTest;
|
||||||
|
private Matrix4x4 earthLocalToWorldInverse;
|
||||||
|
private string printString;
|
||||||
|
private Vector3 posOnEarth = new Vector3();
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
earth = GameObject.Find("EarthTarget").transform;
|
||||||
|
nose = GameObject.Find("NoseQuad").transform;
|
||||||
|
shuttle = GameObject.Find("ShuttleTarget").transform;
|
||||||
|
positionTest = GameObject.Find("PositionTest").transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
printString = "";
|
||||||
|
/*
|
||||||
|
Possible solution. Under the assumption we hold the
|
||||||
|
camera steadily, the earth stuff be done in the
|
||||||
|
Start() function.
|
||||||
|
This should be correct, according to slides.
|
||||||
|
*/
|
||||||
|
var shuttleLocalToWorld = shuttle.localToWorldMatrix;
|
||||||
|
var earthWorldToLocal = Matrix4x4.Inverse(Matrix4x4.TRS(earth.position, earth.rotation, Vector3.one));
|
||||||
|
|
||||||
|
var transMatrix = earthWorldToLocal * shuttleLocalToWorld;
|
||||||
|
posOnEarth = transMatrix.MultiplyPoint3x4(nose.localPosition);
|
||||||
|
printString += posOnEarth.ToString("F4") + "\n";
|
||||||
|
compareToNose(posOnEarth);
|
||||||
|
}
|
||||||
|
|
||||||
|
void compareToNose(Vector3 nosePosition) {
|
||||||
|
print($"LossyScale: {earth.lossyScale}");
|
||||||
|
//var radius = new Vector2(earth.lossyScale.x, earth.lossyScale.z).magnitude / 2;
|
||||||
|
var radius = earth.lossyScale.magnitude / 4;
|
||||||
|
//var radius = (new Vector2(earth.lossyScale.x, earth.lossyScale.z)).magnitude;
|
||||||
|
|
||||||
|
print($"Radius: {radius}");
|
||||||
|
|
||||||
|
var d = new Vector2(nosePosition.x, nosePosition.z).magnitude;
|
||||||
|
|
||||||
|
print($"D: {d}");
|
||||||
|
|
||||||
|
if (d <= radius && nosePosition.y <= 4) {
|
||||||
|
print("Within");
|
||||||
|
|
||||||
|
if (nosePosition.z >= 0) {
|
||||||
|
printString += "North";
|
||||||
|
} else {
|
||||||
|
printString += "South";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
printString += "Outside";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnGUI()
|
||||||
|
{
|
||||||
|
GUI.color = Color.white;
|
||||||
|
GUI.Box(new Rect(10, 30, 200, 40), printString);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
117
AR-1/Assets/RayScript.cs
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class RayScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
Transform topCannon;
|
||||||
|
Transform firstPoint;
|
||||||
|
Transform secondPoint;
|
||||||
|
bool part1 = false;
|
||||||
|
bool part2 = false;
|
||||||
|
bool part3 = true;
|
||||||
|
Material material;
|
||||||
|
|
||||||
|
bool fire = false;
|
||||||
|
private Ray ray;
|
||||||
|
|
||||||
|
Vector3 leftCannon = new Vector3((float)0.077, 0, (float)0.450);
|
||||||
|
Vector3 rightCannon = new Vector3((float)-0.077, 0, (float)0.450);
|
||||||
|
Vector3 topCannonPoint = new Vector3(0, (float)0.25, (float)-0.09);
|
||||||
|
|
||||||
|
Transform explosion;
|
||||||
|
Transform target;
|
||||||
|
|
||||||
|
Matrix4x4 falconTrans;
|
||||||
|
Vector3 partThreeRay;
|
||||||
|
Quaternion cannonRotation;
|
||||||
|
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
topCannon = GameObject.Find("TopCannon").transform;
|
||||||
|
explosion = GameObject.Find("Explosion").transform;
|
||||||
|
target = GameObject.Find("FighterTarget").transform;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update() {
|
||||||
|
falconTrans = transform.localToWorldMatrix;
|
||||||
|
partThreeRay = falconTrans.MultiplyPoint3x4(topCannonPoint);
|
||||||
|
cannonRotation = Quaternion.Euler(0, 30, 0);
|
||||||
|
|
||||||
|
bool hit = false;
|
||||||
|
|
||||||
|
if (Input.GetKeyDown("space")) {
|
||||||
|
print("Firing ray");
|
||||||
|
fire = true;
|
||||||
|
|
||||||
|
if (part1) {
|
||||||
|
hit = Physics.Raycast(transform.position, transform.TransformDirection(Vector3.forward), Mathf.Infinity);
|
||||||
|
} else if (part2) {
|
||||||
|
var trans = transform.localToWorldMatrix;
|
||||||
|
var transLeft = trans.MultiplyPoint3x4(leftCannon);
|
||||||
|
var transRight = trans.MultiplyPoint3x4(rightCannon);
|
||||||
|
hit = (Physics.Raycast(transLeft, transform.TransformDirection(Vector3.forward), Mathf.Infinity) ||
|
||||||
|
Physics.Raycast(transRight, transform.TransformDirection(Vector3.forward), Mathf.Infinity));
|
||||||
|
} else if (part3) {
|
||||||
|
hit = Physics.Raycast(partThreeRay, transform.TransformDirection(cannonRotation * Vector3.forward), Mathf.Infinity);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if (Input.GetKeyUp("space")) {
|
||||||
|
fire = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hit) {
|
||||||
|
explosion.position = target.position;
|
||||||
|
explosion.GetComponent<ParticleSystem>().Play();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnRenderObject()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!fire) return;
|
||||||
|
if (material == null)
|
||||||
|
material = new Material(Shader.Find("Hidden/Internal-Colored"));
|
||||||
|
material.SetPass(0);
|
||||||
|
|
||||||
|
if (part1) {
|
||||||
|
|
||||||
|
GL.Begin(GL.LINES);
|
||||||
|
GL.Color(Color.red);
|
||||||
|
GL.Vertex(transform.position);
|
||||||
|
GL.Vertex(transform.position + (transform.TransformDirection(Vector3.forward)));
|
||||||
|
GL.End();
|
||||||
|
} else if (part2) {
|
||||||
|
var trans = transform.localToWorldMatrix;
|
||||||
|
var transLeft = trans.MultiplyPoint3x4(leftCannon);
|
||||||
|
var transRight = trans.MultiplyPoint3x4(rightCannon);
|
||||||
|
|
||||||
|
|
||||||
|
GL.Begin(GL.LINES);
|
||||||
|
GL.Color(Color.red);
|
||||||
|
GL.Vertex(transLeft);
|
||||||
|
GL.Vertex(transLeft + (transform.TransformDirection(Vector3.forward)));
|
||||||
|
|
||||||
|
GL.Begin(GL.LINES);
|
||||||
|
GL.Color(Color.red);
|
||||||
|
GL.Vertex(transRight);
|
||||||
|
GL.Vertex(transRight + (transform.TransformDirection(Vector3.forward)));
|
||||||
|
GL.End();
|
||||||
|
} else if (part3) {
|
||||||
|
topCannon.localPosition = topCannonPoint;
|
||||||
|
|
||||||
|
GL.Begin(GL.LINES);
|
||||||
|
GL.Color(Color.red);
|
||||||
|
GL.Vertex(partThreeRay);
|
||||||
|
GL.Vertex((partThreeRay + transform.TransformDirection(cannonRotation * Vector3.forward)));
|
||||||
|
GL.End();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
77
AR-1/Assets/Resources/Materials/earth-texture.mat
Normal 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: earth-texture
|
||||||
|
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: 2800000, guid: de433602e60754359bb52d43735cc6d2, type: 3}
|
||||||
|
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
|
||||||
|
- _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}
|
77
AR-1/Assets/Resources/Materials/meteor-texture.mat
Normal 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: meteor-texture
|
||||||
|
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: 2800000, guid: 0c8093b2f9d79477b9ce1bae4e767bd1, type: 3}
|
||||||
|
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}
|
77
AR-1/Assets/Resources/Materials/moon-texture.mat
Normal 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: moon-texture
|
||||||
|
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: 2800000, guid: 9afbfa7d8db71447b884fb195d82dcf3, type: 3}
|
||||||
|
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}
|
77
AR-1/Assets/Resources/Materials/sun-texture.mat
Normal 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: sun-texture
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _EMISSION
|
||||||
|
m_LightmapFlags: 2
|
||||||
|
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: 2800000, guid: ba0f8db1e18fb4129a61b8884f9e4192, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: ba0f8db1e18fb4129a61b8884f9e4192, type: 3}
|
||||||
|
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.5849056, g: 0.5849056, b: 0.5849056, a: 1}
|
70
AR-1/Assets/Resources/VuforiaConfiguration.asset
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -2067402452, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name: VuforiaConfiguration
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
vuforia:
|
||||||
|
vuforiaLicenseKey: Aa21/k7/////AAABmQwOF4BkUEKqvvdpdACm3+lG2JiMVySaSGhz523Eh7pWp+vZZpNodhD3YGU5301Yz2yq0uswG/l36iTj2nwSaCtnS1bGy+QKXYd/1Xp1wgKrW1GQQM6rvxmBAKn2NN7MVPW9m/LI5PXUMtJPzKqpZKk4thrUeRc38NfOpDVVd6g00szThrU8MuHX+F24JZ0hdpJJlkCM/zPC9TC6CYMHuuEiSbbv0PnQrp7Kab1n/cmvC0/VhxW2qEnEAIu0U1OhjLTEFoCFmjYKNS6InIHrcD4VW9c+wDroC4nKoBhgCdeYc9+sMsCx7d5m4taGJao/xhbHudeZgrmvsRBaDRh5OPkLn6LvfkuufmNYvQxD2XCG
|
||||||
|
ufoLicenseKey: QVgrdW51ei8vLy8vQUFBQUtJTUxxQXkwc0U3RmxRZVJpTFRhbnBxYngvNGJlMjJ2cCtWcXlDZjN0VnhNVmpHVTF6eXZhbXF4dXRKdDJ4SFl5K0x3N3ozb2hiWUkzMGdNMTFKNkZRUE0xTE5qQU1maTJaNE5relkxZlBLL1JNaGtYZG1tbkZoUHFQMTh3T2I1N0FMYWlSWGZ5bERSNFBJMGZpbHZHVEUvcHJxYWlkaHNVeG5ROUJPdjRIemNYYkQ5MU5FcHFuVkdKdEh1SUZZT3B0cnlFL29NNCtjR3EvakVIa3UxTTFMRk9nOWYva1lodW80a1FQa29ZeVVCOTVONEhpTHVHUEJxOE1HYUpZcXk1RmxPaWFydEJBSHd2OTFYYnZnaHJuaGF2QS9hZ2NHNWRZbXhCR3JCcm9OVEFYRkR2QzRsdU1ucVJnVGFFUCtIMG1NSjhZSlI5cHpla1lsU1Jtd0pqQ2VySWZXNlE3UWlYTXk4TXhlOTBicUc=
|
||||||
|
delayedInitialization: 0
|
||||||
|
cameraDeviceModeSetting: -1
|
||||||
|
maxSimultaneousImageTargets: 20
|
||||||
|
maxSimultaneousObjectTargets: 20
|
||||||
|
useDelayedLoadingObjectTargets: 0
|
||||||
|
cameraDirection: 0
|
||||||
|
mirrorVideoBackground: 0
|
||||||
|
version: 8.0.10
|
||||||
|
eulaAcceptedVersions: '{"Values":["0.0","8.0"]}'
|
||||||
|
digitalEyewear:
|
||||||
|
cameraOffset: 0.06
|
||||||
|
distortionRenderingLayer: 31
|
||||||
|
eyewearType: 0
|
||||||
|
stereoFramework: 0
|
||||||
|
seeThroughConfiguration: 0
|
||||||
|
viewerName:
|
||||||
|
viewerManufacturer:
|
||||||
|
useCustomViewer: 0
|
||||||
|
customViewer:
|
||||||
|
Version: 0
|
||||||
|
Name:
|
||||||
|
Manufacturer:
|
||||||
|
ButtonType: 0
|
||||||
|
ScreenToLensDistance: 0
|
||||||
|
InterLensDistance: 0
|
||||||
|
TrayAlignment: 0
|
||||||
|
LensCenterToTrayDistance: 0
|
||||||
|
DistortionCoefficients: {x: 0, y: 0}
|
||||||
|
FieldOfView: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
ContainsMagnet: 0
|
||||||
|
videoBackground:
|
||||||
|
clippingMode: 0
|
||||||
|
numDivisions: 2
|
||||||
|
videoBackgroundShader: {fileID: 4800000, guid: f40623b353e2f1943b1b3ba42975db7a,
|
||||||
|
type: 3}
|
||||||
|
matteShader: {fileID: 4800000, guid: 66d0d78a3000021448b598bb54a3bfdf, type: 3}
|
||||||
|
videoBackgroundEnabled: 1
|
||||||
|
deviceTracker:
|
||||||
|
autoInitTracker: 0
|
||||||
|
autoStartTracker: 0
|
||||||
|
trackingMode: 1
|
||||||
|
posePrediction: 0
|
||||||
|
modelCorrectionMode: 0
|
||||||
|
modelTransformEnabled: 0
|
||||||
|
modelTransform: {x: 0, y: 0.1, z: -0.1}
|
||||||
|
smartTerrain:
|
||||||
|
autoInitTracker: 0
|
||||||
|
autoStartTracker: 0
|
||||||
|
webcam:
|
||||||
|
deviceNameSetInEditor: 'USB Camera #2'
|
||||||
|
flipHorizontally: 0
|
||||||
|
turnOffWebCam: 0
|
||||||
|
renderTextureLayer: 30
|
BIN
AR-1/Assets/Resources/earth-texture.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
AR-1/Assets/Resources/meteor-texture.jpg
Normal file
After Width: | Height: | Size: 639 KiB |
BIN
AR-1/Assets/Resources/moon-texture.jpg
Normal file
After Width: | Height: | Size: 142 KiB |
BIN
AR-1/Assets/Resources/sun-texture.jpg
Normal file
After Width: | Height: | Size: 364 KiB |
18
AR-1/Assets/Rotate.cs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Rotate : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
transform.Rotate(0,1,0);
|
||||||
|
}
|
||||||
|
}
|
954
AR-1/Assets/Scenes/SampleScene.unity
Normal file
|
@ -0,0 +1,954 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!29 &1
|
||||||
|
OcclusionCullingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_OcclusionBakeSettings:
|
||||||
|
smallestOccluder: 5
|
||||||
|
smallestHole: 0.25
|
||||||
|
backfaceThreshold: 100
|
||||||
|
m_SceneGUID: 00000000000000000000000000000000
|
||||||
|
m_OcclusionCullingData: {fileID: 0}
|
||||||
|
--- !u!104 &2
|
||||||
|
RenderSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 9
|
||||||
|
m_Fog: 0
|
||||||
|
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
|
m_FogMode: 3
|
||||||
|
m_FogDensity: 0.01
|
||||||
|
m_LinearFogStart: 0
|
||||||
|
m_LinearFogEnd: 300
|
||||||
|
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||||
|
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||||
|
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||||
|
m_AmbientIntensity: 1
|
||||||
|
m_AmbientMode: 0
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_HaloStrength: 0.5
|
||||||
|
m_FlareStrength: 1
|
||||||
|
m_FlareFadeSpeed: 3
|
||||||
|
m_HaloTexture: {fileID: 0}
|
||||||
|
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_DefaultReflectionMode: 0
|
||||||
|
m_DefaultReflectionResolution: 128
|
||||||
|
m_ReflectionBounces: 1
|
||||||
|
m_ReflectionIntensity: 1
|
||||||
|
m_CustomReflection: {fileID: 0}
|
||||||
|
m_Sun: {fileID: 0}
|
||||||
|
m_IndirectSpecularColor: {r: 0.3731193, g: 0.38073996, b: 0.3587269, a: 1}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 11
|
||||||
|
m_GIWorkflowMode: 0
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 10
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 10
|
||||||
|
m_AtlasSize: 512
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_TextureCompression: 1
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_ReflectionCompression: 2
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_BakeBackend: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 256
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringMode: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ShowResolutionOverlay: 1
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_UseShadowmask: 1
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
agentTypeID: 0
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.4
|
||||||
|
ledgeDropHeight: 0
|
||||||
|
maxJumpAcrossDistance: 0
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
accuratePlacement: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &212646161
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 212646167}
|
||||||
|
- component: {fileID: 212646166}
|
||||||
|
- component: {fileID: 212646165}
|
||||||
|
- component: {fileID: 212646164}
|
||||||
|
- component: {fileID: 212646163}
|
||||||
|
- component: {fileID: 212646162}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: LandingTarget
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!33 &212646162
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Mesh: {fileID: 1302420206}
|
||||||
|
--- !u!23 &212646163
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 663181358}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!114 &212646164
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1770992566, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &212646165
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5a917f0af64a6423093132dab321c15f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &212646166
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1631628248, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName: landingsbane
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 1
|
||||||
|
mDataSetPath: Vuforia/AR-1.xml
|
||||||
|
mAspectRatio: 2.7434866
|
||||||
|
mImageTargetType: 0
|
||||||
|
mWidth: 0.100329995
|
||||||
|
mHeight: 0.275254
|
||||||
|
--- !u!4 &212646167
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.0173, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.275254, y: 0.275254, z: 0.275254}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!21 &663181358
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 'landingsbaneMaterial
|
||||||
|
|
||||||
|
-1910'
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f212cd602fc4449eb1013671ccca7b76, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.82089555, g: 0.82089555, b: 0.82089555, a: 1}
|
||||||
|
--- !u!1 &860498374
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 860498380}
|
||||||
|
- component: {fileID: 860498379}
|
||||||
|
- component: {fileID: 860498378}
|
||||||
|
- component: {fileID: 860498377}
|
||||||
|
- component: {fileID: 860498376}
|
||||||
|
- component: {fileID: 860498375}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: ShuttleTarget
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!33 &860498375
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Mesh: {fileID: 2053726402}
|
||||||
|
--- !u!23 &860498376
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 1649016937}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!114 &860498377
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1770992566, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &860498378
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5a917f0af64a6423093132dab321c15f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &860498379
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1631628248, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName: farge
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 1
|
||||||
|
mDataSetPath: Vuforia/AR-1.xml
|
||||||
|
mAspectRatio: 1.7317066
|
||||||
|
mImageTargetType: 0
|
||||||
|
mWidth: 0.06147
|
||||||
|
mHeight: 0.106448
|
||||||
|
--- !u!4 &860498380
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -0.1019, y: 0, z: 0.0082}
|
||||||
|
m_LocalScale: {x: 0.106448, y: 0.106448, z: 0.106448}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 1593208835}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &979980161
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 979980166}
|
||||||
|
- component: {fileID: 979980165}
|
||||||
|
- component: {fileID: 979980164}
|
||||||
|
- component: {fileID: 979980163}
|
||||||
|
- component: {fileID: 979980162}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: ARCamera
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &979980162
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: c47f92041efbb4b429a4eafca855ebe3, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &979980163
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1826476478, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mWorldCenterMode: 2
|
||||||
|
mWorldCenter: {fileID: 0}
|
||||||
|
--- !u!81 &979980164
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &979980165
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 2
|
||||||
|
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_NormalizedViewPortRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
near clip plane: 0.05
|
||||||
|
far clip plane: 2000
|
||||||
|
field of view: 60
|
||||||
|
orthographic: 0
|
||||||
|
orthographic size: 5
|
||||||
|
m_Depth: 1
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingPath: -1
|
||||||
|
m_TargetTexture: {fileID: 0}
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_TargetEye: 3
|
||||||
|
m_HDR: 0
|
||||||
|
m_AllowMSAA: 1
|
||||||
|
m_AllowDynamicResolution: 0
|
||||||
|
m_ForceIntoRT: 0
|
||||||
|
m_OcclusionCulling: 1
|
||||||
|
m_StereoConvergence: 10
|
||||||
|
m_StereoSeparation: 0.022
|
||||||
|
--- !u!4 &979980166
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.298, y: -0.716, z: -1.615}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!43 &1302420206
|
||||||
|
Mesh:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ImageTargetMesh-1906
|
||||||
|
serializedVersion: 9
|
||||||
|
m_SubMeshes:
|
||||||
|
- serializedVersion: 2
|
||||||
|
firstByte: 0
|
||||||
|
indexCount: 6
|
||||||
|
topology: 0
|
||||||
|
baseVertex: 0
|
||||||
|
firstVertex: 0
|
||||||
|
vertexCount: 4
|
||||||
|
localAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.18224984, y: 0, z: 0.5}
|
||||||
|
m_Shapes:
|
||||||
|
vertices: []
|
||||||
|
shapes: []
|
||||||
|
channels: []
|
||||||
|
fullWeights: []
|
||||||
|
m_BindPose: []
|
||||||
|
m_BoneNameHashes:
|
||||||
|
m_RootBoneNameHash: 0
|
||||||
|
m_MeshCompression: 0
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_KeepVertices: 1
|
||||||
|
m_KeepIndices: 1
|
||||||
|
m_IndexFormat: 0
|
||||||
|
m_IndexBuffer: 000001000200020001000300
|
||||||
|
m_VertexData:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_VertexCount: 4
|
||||||
|
m_Channels:
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 12
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 24
|
||||||
|
format: 0
|
||||||
|
dimension: 2
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
m_DataSize: 128
|
||||||
|
_typelessdata: b49f3abe00000000000000bf000000000000803f000000000000000000000000b49f3abe000000000000003f000000000000803f00000000000000000000803fb49f3a3e00000000000000bf000000000000803f000000000000803f00000000b49f3a3e000000000000003f000000000000803f000000000000803f0000803f
|
||||||
|
m_CompressedMesh:
|
||||||
|
m_Vertices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UV:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Normals:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Tangents:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Weights:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_NormalSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_TangentSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_FloatColors:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_BoneIndices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Triangles:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UVInfo: 0
|
||||||
|
m_LocalAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_MeshUsageFlags: 0
|
||||||
|
m_BakedConvexCollisionMesh:
|
||||||
|
m_BakedTriangleCollisionMesh:
|
||||||
|
m_MeshMetrics[0]: 1
|
||||||
|
m_MeshMetrics[1]: 1
|
||||||
|
m_MeshOptimized: 0
|
||||||
|
m_StreamData:
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
||||||
|
--- !u!1 &1593208834
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1593208835}
|
||||||
|
- component: {fileID: 1593208839}
|
||||||
|
- component: {fileID: 1593208838}
|
||||||
|
- component: {fileID: 1593208837}
|
||||||
|
- component: {fileID: 1593208836}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: AlignmentQuad
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1593208835
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: -0.01, y: -0, z: 0.24}
|
||||||
|
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 860498380}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
|
||||||
|
--- !u!114 &1593208836
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dfb36cee13f0f431f93747fac4a79f1c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!64 &1593208837
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 14
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &1593208838
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 30b97d537113d0441889f1559f555128, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &1593208839
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!21 &1649016937
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 'fargeMaterial
|
||||||
|
|
||||||
|
-2694'
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 2aecda9d179f4d9fb4f506a74cf4b7f1, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.82089555, g: 0.82089555, b: 0.82089555, a: 1}
|
||||||
|
--- !u!43 &2053726402
|
||||||
|
Mesh:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ImageTargetMesh-2690
|
||||||
|
serializedVersion: 9
|
||||||
|
m_SubMeshes:
|
||||||
|
- serializedVersion: 2
|
||||||
|
firstByte: 0
|
||||||
|
indexCount: 6
|
||||||
|
topology: 0
|
||||||
|
baseVertex: 0
|
||||||
|
firstVertex: 0
|
||||||
|
vertexCount: 4
|
||||||
|
localAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_Shapes:
|
||||||
|
vertices: []
|
||||||
|
shapes: []
|
||||||
|
channels: []
|
||||||
|
fullWeights: []
|
||||||
|
m_BindPose: []
|
||||||
|
m_BoneNameHashes:
|
||||||
|
m_RootBoneNameHash: 0
|
||||||
|
m_MeshCompression: 0
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_KeepVertices: 1
|
||||||
|
m_KeepIndices: 1
|
||||||
|
m_IndexFormat: 0
|
||||||
|
m_IndexBuffer: 000001000200020001000300
|
||||||
|
m_VertexData:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_VertexCount: 4
|
||||||
|
m_Channels:
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 12
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 24
|
||||||
|
format: 0
|
||||||
|
dimension: 2
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
m_DataSize: 128
|
||||||
|
_typelessdata: bfd493be00000000000000bf000000000000803f000000000000000000000000bfd493be000000000000003f000000000000803f00000000000000000000803fbfd4933e00000000000000bf000000000000803f000000000000803f00000000bfd4933e000000000000003f000000000000803f000000000000803f0000803f
|
||||||
|
m_CompressedMesh:
|
||||||
|
m_Vertices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UV:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Normals:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Tangents:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Weights:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_NormalSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_TangentSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_FloatColors:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_BoneIndices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Triangles:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UVInfo: 0
|
||||||
|
m_LocalAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_MeshUsageFlags: 0
|
||||||
|
m_BakedConvexCollisionMesh:
|
||||||
|
m_BakedTriangleCollisionMesh:
|
||||||
|
m_MeshMetrics[0]: 1
|
||||||
|
m_MeshMetrics[1]: 1
|
||||||
|
m_MeshOptimized: 0
|
||||||
|
m_StreamData:
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
BIN
AR-1/Assets/StreamingAssets/Vuforia/AR-1.dat
Normal file
12
AR-1/Assets/StreamingAssets/Vuforia/AR-1.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?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="other-figther" size="0.032510 0.046539" />
|
||||||
|
<ImageTarget name="other-figther-test" size="0.032510 0.046539" />
|
||||||
|
<ImageTarget name="farge" size="0.061470 0.106448" />
|
||||||
|
<ImageTarget name="h-fighter" size="0.035810 0.047465" />
|
||||||
|
<ImageTarget name="falcon" size="0.078180 0.106057" />
|
||||||
|
<ImageTarget name="landingsbane" size="0.100330 0.275254" />
|
||||||
|
<ImageTarget name="earth" size="0.200150 0.200317" />
|
||||||
|
</Tracking>
|
||||||
|
</QCARConfig>
|
BIN
AR-1/Assets/StreamingAssets/Vuforia/VuforiaMars_Images.dat
Executable file
24
AR-1/Assets/StreamingAssets/Vuforia/VuforiaMars_Images.xml
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<QCARConfig>
|
||||||
|
<Tracking>
|
||||||
|
<CylinderTarget name="RocketBooster" sideLength="0.114980"/>
|
||||||
|
<ImageTarget name="Astronaut" size="0.069850 0.120650"/>
|
||||||
|
<ImageTarget name="Drone" size="0.069850 0.120650"/>
|
||||||
|
<ImageTarget name="Fissure" size="0.069850 0.120650"/>
|
||||||
|
<ImageTarget name="Oxygen" size="0.069850 0.120650"/>
|
||||||
|
<ImageTarget name="MarsBox.Top" size="0.076200 0.038100"/>
|
||||||
|
<ImageTarget name="MarsBox.Bottom" size="0.076200 0.038100"/>
|
||||||
|
<ImageTarget name="MarsBox.Back" size="0.076200 0.101600"/>
|
||||||
|
<ImageTarget name="MarsBox.Front" size="0.076200 0.101600"/>
|
||||||
|
<ImageTarget name="MarsBox.Right" size="0.038100 0.101600"/>
|
||||||
|
<ImageTarget name="MarsBox.Left" size="0.038100 0.101600"/>
|
||||||
|
<MultiTarget name="MarsBox">
|
||||||
|
<Part name="MarsBox.Left" translation="-0.038100000470876694 0 0" rotation="AD: 0 1 0 -90"/>
|
||||||
|
<Part name="MarsBox.Right" translation="0.038100000470876694 0 0" rotation="AD: 0 1 0 90"/>
|
||||||
|
<Part name="MarsBox.Front" translation="0 0 0.019050000235438347" rotation="AD: 1 0 0 0"/>
|
||||||
|
<Part name="MarsBox.Back" translation="0 0 -0.019050000235438347" rotation="AD: 0 1 0 180"/>
|
||||||
|
<Part name="MarsBox.Top" translation="0 0.05079999938607216 0" rotation="AD: 1 0 0 -90"/>
|
||||||
|
<Part name="MarsBox.Bottom" translation="0 -0.05079999938607216 0" rotation="AD: 1 0 0 90"/>
|
||||||
|
</MultiTarget>
|
||||||
|
</Tracking>
|
||||||
|
</QCARConfig>
|
BIN
AR-1/Assets/Vuforia/Databases/Emulator/VuforiaEmulator.dat
Executable file
6
AR-1/Assets/Vuforia/Databases/Emulator/VuforiaEmulator.xml
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<?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="emulator_ground_plane" size="0.200000 0.200000" />
|
||||||
|
</Tracking>
|
||||||
|
</QCARConfig>
|
BIN
AR-1/Assets/Vuforia/Databases/ForPrint/Emulator/Emulator Ground Plane.pdf
Executable file
82
AR-1/Assets/Vuforia/Editor/Scripts/OpenSourceInitializer.cs
Executable file
|
@ -0,0 +1,82 @@
|
||||||
|
/*===============================================================================
|
||||||
|
Copyright (c) 2017-2018 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
countries.
|
||||||
|
===============================================================================*/
|
||||||
|
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
using Vuforia;
|
||||||
|
using Vuforia.EditorClasses;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Creates connection between open source files and the Vuforia library.
|
||||||
|
/// Do not modify.
|
||||||
|
/// </summary>
|
||||||
|
[InitializeOnLoad]
|
||||||
|
public static class OpenSourceInitializer
|
||||||
|
{
|
||||||
|
static OpenSourceInitializer()
|
||||||
|
{
|
||||||
|
GameObjectFactory.SetDefaultBehaviourTypeConfiguration(new DefaultBehaviourAttacher());
|
||||||
|
ReplacePlaceHolders();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ReplacePlaceHolders()
|
||||||
|
{
|
||||||
|
var trackablePlaceholders = Object.FindObjectsOfType<DefaultTrackableBehaviourPlaceholder>().ToList();
|
||||||
|
var initErrorsPlaceholders = Object.FindObjectsOfType<DefaultInitializationErrorHandlerPlaceHolder>().ToList();
|
||||||
|
var modelRecoEventPlaceholders = Object.FindObjectsOfType<DefaultModelRecoEventHandlerPlaceHolder>().ToList();
|
||||||
|
|
||||||
|
trackablePlaceholders.ForEach(ReplaceTrackablePlaceHolder);
|
||||||
|
initErrorsPlaceholders.ForEach(ReplaceInitErrorPlaceHolder);
|
||||||
|
modelRecoEventPlaceholders.ForEach(ReplaceModelRecoEventPlaceHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ReplaceTrackablePlaceHolder(DefaultTrackableBehaviourPlaceholder placeHolder)
|
||||||
|
{
|
||||||
|
var go = placeHolder.gameObject;
|
||||||
|
go.AddComponent<DefaultTrackableEventHandler>();
|
||||||
|
|
||||||
|
Object.DestroyImmediate(placeHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ReplaceInitErrorPlaceHolder(DefaultInitializationErrorHandlerPlaceHolder placeHolder)
|
||||||
|
{
|
||||||
|
var go = placeHolder.gameObject;
|
||||||
|
go.AddComponent<DefaultInitializationErrorHandler>();
|
||||||
|
|
||||||
|
Object.DestroyImmediate(placeHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ReplaceModelRecoEventPlaceHolder(DefaultModelRecoEventHandlerPlaceHolder placeHolder)
|
||||||
|
{
|
||||||
|
var go = placeHolder.gameObject;
|
||||||
|
go.AddComponent<DefaultModelRecoEventHandler>();
|
||||||
|
|
||||||
|
Object.DestroyImmediate(placeHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
class DefaultBehaviourAttacher : IDefaultBehaviourAttacher
|
||||||
|
{
|
||||||
|
public void AddDefaultTrackableBehaviour(GameObject go)
|
||||||
|
{
|
||||||
|
go.AddComponent<DefaultTrackableEventHandler>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddDefaultInitializationErrorHandler(GameObject go)
|
||||||
|
{
|
||||||
|
go.AddComponent<DefaultInitializationErrorHandler>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddDefaultModelRecoEventHandler(GameObject modelReco, ModelTargetBehaviour modelTargetTemplate)
|
||||||
|
{
|
||||||
|
var mreh = modelReco.AddComponent<DefaultModelRecoEventHandler>();
|
||||||
|
mreh.ShowBoundingBox = true;
|
||||||
|
mreh.ModelTargetTemplate = modelTargetTemplate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
12
AR-1/Assets/Vuforia/Editor/Scripts/VuforiaEditorScripts.asmdef
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"name": "VuforiaEditorScripts",
|
||||||
|
"references": [
|
||||||
|
"VuforiaScripts"
|
||||||
|
],
|
||||||
|
"optionalUnityReferences": [],
|
||||||
|
"includePlatforms": [
|
||||||
|
"Editor"
|
||||||
|
],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false
|
||||||
|
}
|
BIN
AR-1/Assets/Vuforia/Fonts/SourceSansPro.ttf
Executable file
29
AR-1/Assets/Vuforia/Materials/CloudRecoTarget.mat
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
%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: CloudRecoTarget
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_TexEnvs:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _MainTex
|
||||||
|
second:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f6153ed43853e4449924f1322300f084, type: 1}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: {}
|
||||||
|
m_Colors:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: .820895553, g: .820895553, b: .820895553, a: 1}
|
||||||
|
--- !u!1002 &2100001
|
||||||
|
EditorExtensionImpl:
|
||||||
|
serializedVersion: 6
|
27
AR-1/Assets/Vuforia/Materials/ColoredLines.mat
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
%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: ColoredLines
|
||||||
|
m_Shader: {fileID: 4800000, guid: c3430c603e3a4f54c86671122d3dfa1c, type: 3}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
31
AR-1/Assets/Vuforia/Materials/DefaultTarget.mat
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
%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: DefaultTarget
|
||||||
|
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 04aaf54a00ef25f4686ea15440632070, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.9607843, g: 0.10606851, b: 0.050980415, a: 1}
|
||||||
|
--- !u!1002 &2100001
|
||||||
|
EditorExtensionImpl:
|
||||||
|
serializedVersion: 6
|
29
AR-1/Assets/Vuforia/Materials/DepthMask.mat
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
%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: DepthMask
|
||||||
|
m_Shader: {fileID: 4800000, guid: 1ce7eb78425fb1540838bc9d5d95857a, type: 1}
|
||||||
|
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}
|
||||||
|
m_Floats: {}
|
||||||
|
m_Colors:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
--- !u!1002 &2100001
|
||||||
|
EditorExtensionImpl:
|
||||||
|
serializedVersion: 6
|
76
AR-1/Assets/Vuforia/Materials/GroundPlaneIndicator.mat
Executable file
|
@ -0,0 +1,76 @@
|
||||||
|
%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: GroundPlaneIndicator
|
||||||
|
m_Shader: {fileID: 10750, 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: 2800000, guid: 1e424f48fda62483aa0c9eec616e0cc8, type: 3}
|
||||||
|
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}
|
76
AR-1/Assets/Vuforia/Materials/GroundPlaneReference.mat
Executable file
|
@ -0,0 +1,76 @@
|
||||||
|
%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: GroundPlaneReference
|
||||||
|
m_Shader: {fileID: 10750, 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: 2800000, guid: 5f131b079790d4251836bc73b812b53d, type: 3}
|
||||||
|
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}
|
127
AR-1/Assets/Vuforia/Materials/GuideView2D.mat
Executable file
|
@ -0,0 +1,127 @@
|
||||||
|
%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: GuideView2D
|
||||||
|
m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _EMISSION
|
||||||
|
m_LightmapFlags: 1
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
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: 2800000, guid: ba30a21e2e8687a4da3e856e83e1f318, type: 3}
|
||||||
|
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: 0
|
||||||
|
- 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: 0
|
||||||
|
- 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: 1
|
||||||
|
- first:
|
||||||
|
name: _UVSec
|
||||||
|
second: 0
|
||||||
|
- first:
|
||||||
|
name: _ZWrite
|
||||||
|
second: 1
|
||||||
|
m_Colors:
|
||||||
|
- first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- first:
|
||||||
|
name: _EmissionColor
|
||||||
|
second: {r: 0, g: 0, b: 0, a: 1}
|
77
AR-1/Assets/Vuforia/Materials/MidAirIndicator.mat
Executable file
|
@ -0,0 +1,77 @@
|
||||||
|
%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: MidAirIndicator
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 1
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
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: 5, y: 5}
|
||||||
|
m_Offset: {x: 1, y: 1}
|
||||||
|
- _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: 5
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.244
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0.402
|
||||||
|
- _Mode: 3
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.44852942, g: 1, b: 0.58924955, a: 0.509}
|
||||||
|
- _EmissionColor: {r: 0, g: 0.307, b: 0, a: 1}
|
76
AR-1/Assets/Vuforia/Materials/MidAirReference.mat
Executable file
|
@ -0,0 +1,76 @@
|
||||||
|
%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: MidAirReference
|
||||||
|
m_Shader: {fileID: 10750, 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: 2800000, guid: e21dffdcc7917472c9827aa5e2387fe8, type: 3}
|
||||||
|
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}
|
146
AR-1/Assets/Vuforia/Materials/OutlineOpaque.mat
Executable file
|
@ -0,0 +1,146 @@
|
||||||
|
%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: OutlineOpaque
|
||||||
|
m_Shader: {fileID: 4800000, guid: a81568144a775094bb6b92c7df9fcebe, type: 3}
|
||||||
|
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: 0.5
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _SilhouetteSize
|
||||||
|
second: 0.001
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Parallax
|
||||||
|
second: 0.02
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _ZWrite
|
||||||
|
second: 1
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Glossiness
|
||||||
|
second: 0.5
|
||||||
|
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: 0
|
||||||
|
m_Colors:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _EmissionColor
|
||||||
|
second: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _SilhouetteColor
|
||||||
|
second: {r: 1, g: 1, b: 1, a: 1}
|
77
AR-1/Assets/Vuforia/Materials/StandardCutout.mat
Executable file
|
@ -0,0 +1,77 @@
|
||||||
|
%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: StandardCutout
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _ALPHATEST_ON _GLOSSYREFLECTIONS_OFF _SPECULARHIGHLIGHTS_OFF
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 2450
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: TransparentCutout
|
||||||
|
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: 2800000, guid: 04aaf54a00ef25f4686ea15440632070, type: 3}
|
||||||
|
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: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 1
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 0
|
||||||
|
- _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}
|
29
AR-1/Assets/Vuforia/Materials/UserDefinedTarget.mat
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
%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: UserDefinedTarget
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_TexEnvs:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _MainTex
|
||||||
|
second:
|
||||||
|
m_Texture: {fileID: 2800000, guid: fb22b98929f50754ab255ba14de4fa55, type: 1}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: {}
|
||||||
|
m_Colors:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: .820895553, g: .820895553, b: .820895553, a: 1}
|
||||||
|
--- !u!1002 &2100001
|
||||||
|
EditorExtensionImpl:
|
||||||
|
serializedVersion: 6
|
29
AR-1/Assets/Vuforia/Materials/VirtualButtonPreviewMaterial.mat
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
%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: VirtualButtonPreviewMaterial
|
||||||
|
m_Shader: {fileID: 30, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_TexEnvs:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _MainTex
|
||||||
|
second:
|
||||||
|
m_Texture: {fileID: 2800000, guid: dd8287d41aafb4b4bacd7e0ebf634a0c, type: 1}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: {}
|
||||||
|
m_Colors:
|
||||||
|
data:
|
||||||
|
first:
|
||||||
|
name: _Color
|
||||||
|
second: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
--- !u!1002 &2100001
|
||||||
|
EditorExtensionImpl:
|
||||||
|
serializedVersion: 6
|
132
AR-1/Assets/Vuforia/Prefabs/DefaultMidAirIndicator.prefab
Executable file
|
@ -0,0 +1,132 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1001 &100100000
|
||||||
|
Prefab:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications: []
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_ParentPrefab: {fileID: 0}
|
||||||
|
m_RootGameObject: {fileID: 1527064403990174}
|
||||||
|
m_IsPrefabParent: 1
|
||||||
|
--- !u!1 &1090284564211470
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4934622886676448}
|
||||||
|
- component: {fileID: 33015447771773944}
|
||||||
|
- component: {fileID: 23772884771653742}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DefaultIndicator
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!1 &1527064403990174
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4078639606549544}
|
||||||
|
- component: {fileID: 114408687042456420}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DefaultMidAirIndicator
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4078639606549544
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1527064403990174}
|
||||||
|
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:
|
||||||
|
- {fileID: 4934622886676448}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!4 &4934622886676448
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1090284564211470}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4078639606549544}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!23 &23772884771653742
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1090284564211470}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_RenderingLayerMask: 4294967295
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 658ef14483bb4437baeced0fce0ae78a, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &33015447771773944
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1090284564211470}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!114 &114408687042456420
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1527064403990174}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 697333272, guid: 1e108ae5f2133934f948edded555f03e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName:
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 0
|
||||||
|
mSelectedStageType: 1
|
||||||
|
mPlaneReference: {fileID: 0}
|
||||||
|
mMidAirReference: {fileID: 0}
|
132
AR-1/Assets/Vuforia/Prefabs/DefaultPlaneIndicator.prefab
Executable file
|
@ -0,0 +1,132 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1001 &100100000
|
||||||
|
Prefab:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications: []
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_ParentPrefab: {fileID: 0}
|
||||||
|
m_RootGameObject: {fileID: 1353731089078378}
|
||||||
|
m_IsPrefabParent: 1
|
||||||
|
--- !u!1 &1353731089078378
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4169582747025834}
|
||||||
|
- component: {fileID: 114015790878076588}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DefaultPlaneIndicator
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!1 &1497045824638220
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4435016822728788}
|
||||||
|
- component: {fileID: 33032586182132574}
|
||||||
|
- component: {fileID: 23827494792507640}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DefaultIndicator
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4169582747025834
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1353731089078378}
|
||||||
|
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:
|
||||||
|
- {fileID: 4435016822728788}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!4 &4435016822728788
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1497045824638220}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.01, y: 0.01, z: 0.01}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4169582747025834}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!23 &23827494792507640
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1497045824638220}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_RenderingLayerMask: 4294967295
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 1d214ea2059394d59a1960df0cad1c62, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &33032586182132574
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1497045824638220}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!114 &114015790878076588
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1353731089078378}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 697333272, guid: 1e108ae5f2133934f948edded555f03e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName:
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 0
|
||||||
|
mSelectedStageType: 0
|
||||||
|
mPlaneReference: {fileID: 0}
|
||||||
|
mMidAirReference: {fileID: 0}
|
84
AR-1/Assets/Vuforia/Prefabs/GroundPlaneReference.prefab
Executable file
|
@ -0,0 +1,84 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1001 &100100000
|
||||||
|
Prefab:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications: []
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_ParentPrefab: {fileID: 0}
|
||||||
|
m_RootGameObject: {fileID: 1608780458543526}
|
||||||
|
m_IsPrefabParent: 1
|
||||||
|
--- !u!1 &1608780458543526
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4565330424619512}
|
||||||
|
- component: {fileID: 33835086709508886}
|
||||||
|
- component: {fileID: 23459327584305420}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GroundPlaneReference
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4565330424619512
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1608780458543526}
|
||||||
|
m_LocalRotation: {x: -0, y: 1, z: -0, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
||||||
|
--- !u!23 &23459327584305420
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1608780458543526}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: b0fca12d4e61246cfa5f9a6d26e48004, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &33835086709508886
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1608780458543526}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
257
AR-1/Assets/Vuforia/Prefabs/MidAirReference.prefab
Executable file
|
@ -0,0 +1,257 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1001 &100100000
|
||||||
|
Prefab:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications: []
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_ParentPrefab: {fileID: 0}
|
||||||
|
m_RootGameObject: {fileID: 1511351876327156}
|
||||||
|
m_IsPrefabParent: 1
|
||||||
|
--- !u!1 &1118734573373628
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4075272498997266}
|
||||||
|
- component: {fileID: 33973252287340408}
|
||||||
|
- component: {fileID: 23951334618560284}
|
||||||
|
m_Layer: 1
|
||||||
|
m_Name: Axis Y
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!1 &1511351876327156
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4162583349984790}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: MidAirReference
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!1 &1607993709770316
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4649787849942518}
|
||||||
|
- component: {fileID: 33195873017971236}
|
||||||
|
- component: {fileID: 23861220342175434}
|
||||||
|
m_Layer: 1
|
||||||
|
m_Name: Axis X
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!1 &1713045703263896
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4226315069016302}
|
||||||
|
- component: {fileID: 33192504329257828}
|
||||||
|
- component: {fileID: 23241293001196086}
|
||||||
|
m_Layer: 1
|
||||||
|
m_Name: Axis Z
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4075272498997266
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1118734573373628}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 10, y: 10, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4162583349984790}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!4 &4162583349984790
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1511351876327156}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 4075272498997266}
|
||||||
|
- {fileID: 4226315069016302}
|
||||||
|
- {fileID: 4649787849942518}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!4 &4226315069016302
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1713045703263896}
|
||||||
|
m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 10, y: 10, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4162583349984790}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
|
||||||
|
--- !u!4 &4649787849942518
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1607993709770316}
|
||||||
|
m_LocalRotation: {x: 0.5, y: 0.5, z: -0.5, w: 0.5}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 10, y: 10, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4162583349984790}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 90, y: 90, z: 0}
|
||||||
|
--- !u!23 &23241293001196086
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1713045703263896}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 2e9b38b0a13ba442b98571aeeb6f3849, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!23 &23861220342175434
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1607993709770316}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 2e9b38b0a13ba442b98571aeeb6f3849, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!23 &23951334618560284
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1118734573373628}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 2e9b38b0a13ba442b98571aeeb6f3849, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &33192504329257828
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1713045703263896}
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!33 &33195873017971236
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1607993709770316}
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!33 &33973252287340408
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1118734573373628}
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
94
AR-1/Assets/Vuforia/Scripts/BoundingBoxRenderer.cs
Executable file
|
@ -0,0 +1,94 @@
|
||||||
|
/*==============================================================================
|
||||||
|
Copyright (c) 2018 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
|
||||||
|
Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
countries.
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using Vuforia;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A component that renders a bounding box using lines.
|
||||||
|
/// </summary>
|
||||||
|
public class BoundingBoxRenderer : MonoBehaviour
|
||||||
|
{
|
||||||
|
#region PRIVATE_MEMBERS
|
||||||
|
|
||||||
|
private Material mLineMaterial = null;
|
||||||
|
|
||||||
|
#endregion // PRIVATE_MEMBERS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void OnRenderObject()
|
||||||
|
{
|
||||||
|
GL.PushMatrix();
|
||||||
|
GL.MultMatrix(transform.localToWorldMatrix);
|
||||||
|
|
||||||
|
if (mLineMaterial == null)
|
||||||
|
{
|
||||||
|
// We "borrow" the default material from a primitive.
|
||||||
|
// This ensures that, even on mobile platforms,
|
||||||
|
// we always get a valid material at runtime,
|
||||||
|
// as on mobile Unity can strip away unused shaders at build-time.
|
||||||
|
var tempObj = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
|
var cubeRenderer = tempObj.GetComponent<MeshRenderer>();
|
||||||
|
|
||||||
|
mLineMaterial = new Material(cubeRenderer.material);
|
||||||
|
mLineMaterial.color = Color.white;
|
||||||
|
|
||||||
|
Destroy(tempObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
mLineMaterial.SetPass(0);
|
||||||
|
mLineMaterial.color = Color.white;
|
||||||
|
|
||||||
|
GL.Begin(GL.LINES);
|
||||||
|
|
||||||
|
// Bottom XZ quad
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, -0.5f);
|
||||||
|
GL.Vertex3( 0.5f, -0.5f, -0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(0.5f, -0.5f, -0.5f);
|
||||||
|
GL.Vertex3(0.5f, -0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3( 0.5f, -0.5f, 0.5f);
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, 0.5f);
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, -0.5f);
|
||||||
|
|
||||||
|
// Top XZ quad
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, -0.5f);
|
||||||
|
GL.Vertex3(0.5f, 0.5f, -0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(0.5f, 0.5f, -0.5f);
|
||||||
|
GL.Vertex3(0.5f, 0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(0.5f, 0.5f, 0.5f);
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, 0.5f);
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, -0.5f);
|
||||||
|
|
||||||
|
// Side lines
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, -0.5f);
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, -0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(0.5f, -0.5f, -0.5f);
|
||||||
|
GL.Vertex3(0.5f, 0.5f, -0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(0.5f, -0.5f, 0.5f);
|
||||||
|
GL.Vertex3(0.5f, 0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.Vertex3(-0.5f, -0.5f, 0.5f);
|
||||||
|
GL.Vertex3(-0.5f, 0.5f, 0.5f);
|
||||||
|
|
||||||
|
GL.End();
|
||||||
|
|
||||||
|
GL.PopMatrix();
|
||||||
|
}
|
||||||
|
}
|
240
AR-1/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs
Executable file
|
@ -0,0 +1,240 @@
|
||||||
|
/*==============================================================================
|
||||||
|
Copyright (c) 2017 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Copyright (c) 2010-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
All Rights Reserved.
|
||||||
|
Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using Vuforia;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A custom handler that registers for Vuforia initialization errors
|
||||||
|
///
|
||||||
|
/// Changes made to this file could be overwritten when upgrading the Vuforia version.
|
||||||
|
/// When implementing custom error handler behavior, consider inheriting from this class instead.
|
||||||
|
/// </summary>
|
||||||
|
public class DefaultInitializationErrorHandler : VuforiaMonoBehaviour
|
||||||
|
{
|
||||||
|
#region Vuforia_lifecycle_events
|
||||||
|
|
||||||
|
public void OnVuforiaInitializationError(VuforiaUnity.InitError initError)
|
||||||
|
{
|
||||||
|
if (initError != VuforiaUnity.InitError.INIT_SUCCESS)
|
||||||
|
{
|
||||||
|
SetErrorCode(initError);
|
||||||
|
SetErrorOccurred(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // Vuforia_lifecycle_events
|
||||||
|
|
||||||
|
#region PRIVATE_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
string mErrorText = "";
|
||||||
|
bool mErrorOccurred;
|
||||||
|
|
||||||
|
const string headerLabel = "Vuforia Engine Initialization Error";
|
||||||
|
|
||||||
|
GUIStyle bodyStyle;
|
||||||
|
GUIStyle headerStyle;
|
||||||
|
GUIStyle footerStyle;
|
||||||
|
|
||||||
|
Texture2D bodyTexture;
|
||||||
|
Texture2D headerTexture;
|
||||||
|
Texture2D footerTexture;
|
||||||
|
|
||||||
|
#endregion // PRIVATE_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
#region UNTIY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
// Check for an initialization error on start.
|
||||||
|
VuforiaRuntime.Instance.RegisterVuforiaInitErrorCallback(OnVuforiaInitializationError);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
SetupGUIStyles();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnGUI()
|
||||||
|
{
|
||||||
|
// On error, create a full screen window.
|
||||||
|
if (mErrorOccurred)
|
||||||
|
GUI.Window(0, new Rect(0, 0, Screen.width, Screen.height), DrawWindowContent, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When this game object is destroyed, it unregisters itself as event handler
|
||||||
|
/// </summary>
|
||||||
|
void OnDestroy()
|
||||||
|
{
|
||||||
|
VuforiaRuntime.Instance.UnregisterVuforiaInitErrorCallback(OnVuforiaInitializationError);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // UNTIY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
#region PRIVATE_METHODS
|
||||||
|
|
||||||
|
void DrawWindowContent(int id)
|
||||||
|
{
|
||||||
|
var headerRect = new Rect(0, 0, Screen.width, Screen.height / 8);
|
||||||
|
var bodyRect = new Rect(0, Screen.height / 8, Screen.width, Screen.height / 8 * 6);
|
||||||
|
var footerRect = new Rect(0, Screen.height - Screen.height / 8, Screen.width, Screen.height / 8);
|
||||||
|
|
||||||
|
GUI.Label(headerRect, headerLabel, headerStyle);
|
||||||
|
GUI.Label(bodyRect, mErrorText, bodyStyle);
|
||||||
|
|
||||||
|
if (GUI.Button(footerRect, "Close", footerStyle))
|
||||||
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
UnityEditor.EditorApplication.isPlaying = false;
|
||||||
|
#else
|
||||||
|
Application.Quit();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetErrorCode(VuforiaUnity.InitError errorCode)
|
||||||
|
{
|
||||||
|
switch (errorCode)
|
||||||
|
{
|
||||||
|
case VuforiaUnity.InitError.INIT_EXTERNAL_DEVICE_NOT_DETECTED:
|
||||||
|
mErrorText =
|
||||||
|
"Failed to initialize the Vuforia Engine because this " +
|
||||||
|
"device is not docked with required external hardware.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_MISSING_KEY:
|
||||||
|
mErrorText =
|
||||||
|
"Vuforia Engine App key is missing. Please get a valid key " +
|
||||||
|
"by logging into your account at developer.vuforia.com " +
|
||||||
|
"and creating a new project.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_INVALID_KEY:
|
||||||
|
mErrorText =
|
||||||
|
"Vuforia Engine App key is invalid. " +
|
||||||
|
"Please get a valid key by logging into your account at " +
|
||||||
|
"developer.vuforia.com and creating a new project. \n\n" +
|
||||||
|
getKeyInfo();
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT:
|
||||||
|
mErrorText = "Unable to contact server. Please try again later.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT:
|
||||||
|
mErrorText = "No network available. Please make sure you are connected to the Internet.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_CANCELED_KEY:
|
||||||
|
mErrorText =
|
||||||
|
"This App license key has been cancelled and may no longer be used. " +
|
||||||
|
"Please get a new license key. \n\n" +
|
||||||
|
getKeyInfo();
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH:
|
||||||
|
mErrorText =
|
||||||
|
"Vuforia Engine App key is not valid for this product. Please get a valid key " +
|
||||||
|
"by logging into your account at developer.vuforia.com and choosing the " +
|
||||||
|
"right product type during project creation. \n\n" +
|
||||||
|
getKeyInfo() + " \n\n" +
|
||||||
|
"Note that Universal Windows Platform (UWP) apps require " +
|
||||||
|
"a license key created on or after August 9th, 2016.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_NO_CAMERA_ACCESS:
|
||||||
|
mErrorText =
|
||||||
|
"User denied Camera access to this app.\n" +
|
||||||
|
"To restore, enable Camera access in Settings:\n" +
|
||||||
|
"Settings > Privacy > Camera > " + Application.productName + "\n" +
|
||||||
|
"Also verify that the Camera is enabled in:\n" +
|
||||||
|
"Settings > General > Restrictions.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_DEVICE_NOT_SUPPORTED:
|
||||||
|
mErrorText = "Failed to initialize Vuforia Engine because this device is not supported.";
|
||||||
|
break;
|
||||||
|
case VuforiaUnity.InitError.INIT_ERROR:
|
||||||
|
mErrorText = "Failed to initialize Vuforia Engine.";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepend the error code in red
|
||||||
|
mErrorText = "<color=red>" + errorCode.ToString().Replace("_", " ") + "</color>\n\n" + mErrorText;
|
||||||
|
|
||||||
|
// Remove rich text tags for console logging
|
||||||
|
var errorTextConsole = mErrorText.Replace("<color=red>", "").Replace("</color>", "");
|
||||||
|
|
||||||
|
Debug.LogError("Vuforia Engine initialization failed: " + errorCode + "\n\n" + errorTextConsole);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetErrorOccurred(bool errorOccurred)
|
||||||
|
{
|
||||||
|
mErrorOccurred = errorOccurred;
|
||||||
|
}
|
||||||
|
|
||||||
|
string getKeyInfo()
|
||||||
|
{
|
||||||
|
string key = VuforiaConfiguration.Instance.Vuforia.LicenseKey;
|
||||||
|
string keyInfo;
|
||||||
|
if (key.Length > 10)
|
||||||
|
keyInfo =
|
||||||
|
"Your current key is <color=red>" + key.Length + "</color> characters in length. " +
|
||||||
|
"It begins with <color=red>" + key.Substring(0, 5) + "</color> " +
|
||||||
|
"and ends with <color=red>" + key.Substring(key.Length - 5, 5) + "</color>.";
|
||||||
|
else
|
||||||
|
keyInfo =
|
||||||
|
"Your current key is <color=red>" + key.Length + "</color> characters in length. \n" +
|
||||||
|
"The key is: <color=red>" + key + "</color>.";
|
||||||
|
return keyInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetupGUIStyles()
|
||||||
|
{
|
||||||
|
// Called from Start() to determine physical size of device for text sizing
|
||||||
|
var shortSidePixels = Screen.width < Screen.height ? Screen.width : Screen.height;
|
||||||
|
var shortSideInches = shortSidePixels / Screen.dpi;
|
||||||
|
var physicalSizeMultiplier = shortSideInches > 4.0f ? 2 : 1;
|
||||||
|
|
||||||
|
// Create 1x1 pixel background textures for body, header, and footer
|
||||||
|
bodyTexture = CreateSinglePixelTexture(Color.white);
|
||||||
|
headerTexture = CreateSinglePixelTexture(new Color(
|
||||||
|
Mathf.InverseLerp(0, 255, 220),
|
||||||
|
Mathf.InverseLerp(0, 255, 220),
|
||||||
|
Mathf.InverseLerp(0, 255, 220))); // RGB(220)
|
||||||
|
footerTexture = CreateSinglePixelTexture(new Color(
|
||||||
|
Mathf.InverseLerp(0, 255, 35),
|
||||||
|
Mathf.InverseLerp(0, 255, 178),
|
||||||
|
Mathf.InverseLerp(0, 255, 0))); // RGB(35,178,0)
|
||||||
|
|
||||||
|
// Create body style and set values
|
||||||
|
bodyStyle = new GUIStyle();
|
||||||
|
bodyStyle.normal.background = bodyTexture;
|
||||||
|
bodyStyle.font = Resources.GetBuiltinResource<Font>("Arial.ttf");
|
||||||
|
bodyStyle.fontSize = (int) (18 * physicalSizeMultiplier * Screen.dpi / 160);
|
||||||
|
bodyStyle.normal.textColor = Color.black;
|
||||||
|
bodyStyle.wordWrap = true;
|
||||||
|
bodyStyle.alignment = TextAnchor.MiddleCenter;
|
||||||
|
bodyStyle.padding = new RectOffset(40, 40, 0, 0);
|
||||||
|
|
||||||
|
// Duplicate body style and change necessary values
|
||||||
|
headerStyle = new GUIStyle(bodyStyle);
|
||||||
|
headerStyle.normal.background = headerTexture;
|
||||||
|
headerStyle.fontSize = (int) (24 * physicalSizeMultiplier * Screen.dpi / 160);
|
||||||
|
|
||||||
|
// Duplicate body style and change necessary values
|
||||||
|
footerStyle = new GUIStyle(bodyStyle);
|
||||||
|
footerStyle.normal.background = footerTexture;
|
||||||
|
footerStyle.normal.textColor = Color.white;
|
||||||
|
footerStyle.fontSize = (int) (28 * physicalSizeMultiplier * Screen.dpi / 160);
|
||||||
|
}
|
||||||
|
|
||||||
|
Texture2D CreateSinglePixelTexture(Color color)
|
||||||
|
{
|
||||||
|
// Called by SetupGUIStyles() to create 1x1 texture
|
||||||
|
var texture = new Texture2D(1, 1, TextureFormat.ARGB32, false);
|
||||||
|
texture.SetPixel(0, 0, color);
|
||||||
|
texture.Apply();
|
||||||
|
return texture;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // PRIVATE_METHODS
|
||||||
|
}
|
385
AR-1/Assets/Vuforia/Scripts/DefaultModelRecoEventHandler.cs
Executable file
|
@ -0,0 +1,385 @@
|
||||||
|
/*==============================================================================
|
||||||
|
Copyright (c) 2017-2018 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
|
||||||
|
Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
countries.
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEngine;
|
||||||
|
using Vuforia;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A default implementation of Model Reco Event Handler.
|
||||||
|
/// It registers itself at the ModelRecoBehaviour and is notified of new search results.
|
||||||
|
/// </summary>
|
||||||
|
public class DefaultModelRecoEventHandler : MonoBehaviour, IObjectRecoEventHandler
|
||||||
|
{
|
||||||
|
#region PRIVATE_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
private ModelTargetBehaviour mLastRecoModelTarget;
|
||||||
|
private bool mSearching;
|
||||||
|
private float mLastStatusCheckTime;
|
||||||
|
|
||||||
|
#endregion // PRIVATE_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
|
||||||
|
#region PROTECTED_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
// ModelRecoBehaviour reference to avoid lookups
|
||||||
|
protected ModelRecoBehaviour mModelRecoBehaviour;
|
||||||
|
|
||||||
|
// Target Finder reference to avoid lookups
|
||||||
|
protected TargetFinder mTargetFinder;
|
||||||
|
|
||||||
|
#endregion // PROTECTED_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
|
||||||
|
#region PUBLIC_VARIABLES
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Model Target used as template when a Model is recognized.
|
||||||
|
/// </summary>
|
||||||
|
[Tooltip("The Model Target used as Template when a model is recognized.")]
|
||||||
|
public ModelTargetBehaviour ModelTargetTemplate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the model should be augmented with a bounding box.
|
||||||
|
/// Only applicable to Template model targets.
|
||||||
|
/// </summary>
|
||||||
|
[Tooltip("Whether the model should be augmented with a bounding box.")]
|
||||||
|
public bool ShowBoundingBox;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Can be set in the Unity inspector to display error messages in UI.
|
||||||
|
/// </summary>
|
||||||
|
[Tooltip("UI Text label to display model reco errors.")]
|
||||||
|
public UnityEngine.UI.Text ModelRecoErrorText;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Can be set in the Unity inspector to tell Vuforia whether it should:
|
||||||
|
/// - stop searching for new models, once a first model was found,
|
||||||
|
/// or:
|
||||||
|
/// - continue searching for new models, even after a first model was found.
|
||||||
|
/// </summary>
|
||||||
|
[Tooltip("Whether Vuforia should stop searching for other models, after the first model was found.")]
|
||||||
|
public bool StopSearchWhenModelFound = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Can be set in the Unity inspector to tell Vuforia whether it should:
|
||||||
|
/// - stop searching for new models, while a target is being tracked and is in view,
|
||||||
|
/// or:
|
||||||
|
/// - continue searching for new models, even if a target is currently being tracked.
|
||||||
|
/// </summary>
|
||||||
|
[Tooltip("Whether Vuforia should stop searching for other models, while current model is tracked and visible.")]
|
||||||
|
public bool StopSearchWhileTracking = true;//true by default, as this is the recommended behaviour
|
||||||
|
|
||||||
|
#endregion // PUBLIC_VARIABLES
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region UNITY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// register for events at the ModelRecoBehaviour
|
||||||
|
/// </summary>
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
// register this event handler at the model reco behaviour
|
||||||
|
var modelRecoBehaviour = GetComponent<ModelRecoBehaviour>();
|
||||||
|
if (modelRecoBehaviour)
|
||||||
|
{
|
||||||
|
modelRecoBehaviour.RegisterEventHandler(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
// remember modelRecoBehaviour for later
|
||||||
|
mModelRecoBehaviour = modelRecoBehaviour;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (!VuforiaARController.Instance.HasStarted)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (mTargetFinder == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
|
// Check periodically if model target is tracked and in view
|
||||||
|
// The test is not necessary when the search is stopped after first model was found
|
||||||
|
float elapsed = Time.realtimeSinceStartup - mLastStatusCheckTime;
|
||||||
|
if (!StopSearchWhenModelFound && StopSearchWhileTracking && elapsed > 0.5f)
|
||||||
|
{
|
||||||
|
mLastStatusCheckTime = Time.realtimeSinceStartup;
|
||||||
|
|
||||||
|
if (mSearching)
|
||||||
|
{
|
||||||
|
if (IsModelTrackedInView(mLastRecoModelTarget))
|
||||||
|
{
|
||||||
|
// Switch Model Reco OFF when model is being tracked/in-view
|
||||||
|
mModelRecoBehaviour.ModelRecoEnabled = false;
|
||||||
|
mSearching = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!IsModelTrackedInView(mLastRecoModelTarget))
|
||||||
|
{
|
||||||
|
// Switch Mode Reco ON when no model is tracked/in-view
|
||||||
|
mModelRecoBehaviour.ModelRecoEnabled = true;
|
||||||
|
mSearching = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void OnDestroy()
|
||||||
|
{
|
||||||
|
if (mModelRecoBehaviour != null)
|
||||||
|
{
|
||||||
|
mModelRecoBehaviour.UnregisterEventHandler(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
mModelRecoBehaviour = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // UNITY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region IModelRecoEventHandler_IMPLEMENTATION
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// called when TargetFinder has been initialized successfully
|
||||||
|
/// </summary>
|
||||||
|
public void OnInitialized(TargetFinder targetFinder)
|
||||||
|
{
|
||||||
|
Debug.Log("ModelReco initialized.");
|
||||||
|
|
||||||
|
// Keep a reference to the Target Finder
|
||||||
|
mTargetFinder = targetFinder;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// visualize initialization errors
|
||||||
|
/// </summary>
|
||||||
|
public void OnInitError(TargetFinder.InitState initError)
|
||||||
|
{
|
||||||
|
// Reset target finder reference
|
||||||
|
mTargetFinder = null;
|
||||||
|
|
||||||
|
Debug.LogError("Model Reco init error: " + initError.ToString());
|
||||||
|
ShowErrorMessageInUI(initError.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// visualize update errors
|
||||||
|
/// </summary>
|
||||||
|
public void OnUpdateError(TargetFinder.UpdateState updateError)
|
||||||
|
{
|
||||||
|
Debug.LogError("Model Reco update error: " + updateError.ToString());
|
||||||
|
ShowErrorMessageInUI(updateError.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// when we start scanning, clear all trackables
|
||||||
|
/// </summary>
|
||||||
|
public void OnStateChanged(bool searching)
|
||||||
|
{
|
||||||
|
Debug.Log("ModelReco: state changed: " + (searching ? "searching" : "not searching"));
|
||||||
|
|
||||||
|
mSearching = searching;
|
||||||
|
|
||||||
|
if (searching)
|
||||||
|
{
|
||||||
|
// clear all known trackables
|
||||||
|
if (mTargetFinder != null)
|
||||||
|
mTargetFinder.ClearTrackables(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Handles new search results.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="searchResult"></param>
|
||||||
|
public virtual void OnNewSearchResult(TargetFinder.TargetSearchResult searchResult)
|
||||||
|
{
|
||||||
|
Debug.Log("ModelReco: new search result available: " + searchResult.TargetName);
|
||||||
|
|
||||||
|
// Find or create the referenced model target
|
||||||
|
GameObject modelTargetGameObj = null;
|
||||||
|
bool builtFromTemplate = false;
|
||||||
|
var existingModelTarget = FindExistingModelTarget((TargetFinder.ModelRecoSearchResult)searchResult);
|
||||||
|
if (existingModelTarget)
|
||||||
|
{
|
||||||
|
modelTargetGameObj = existingModelTarget.gameObject;
|
||||||
|
builtFromTemplate = false;
|
||||||
|
}
|
||||||
|
else if (ModelTargetTemplate)
|
||||||
|
{
|
||||||
|
modelTargetGameObj = Instantiate(ModelTargetTemplate.gameObject);
|
||||||
|
builtFromTemplate = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!modelTargetGameObj)
|
||||||
|
{
|
||||||
|
Debug.LogError("Could not create a Model Target.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable the new search result as a Model Target
|
||||||
|
ModelTargetBehaviour mtb = mTargetFinder.EnableTracking(
|
||||||
|
searchResult, modelTargetGameObj) as ModelTargetBehaviour;
|
||||||
|
|
||||||
|
if (mtb)
|
||||||
|
{
|
||||||
|
mLastRecoModelTarget = mtb;
|
||||||
|
|
||||||
|
// If the model target was created from a template,
|
||||||
|
// we augment it with a bounding box game object
|
||||||
|
if (builtFromTemplate && ShowBoundingBox)
|
||||||
|
{
|
||||||
|
var modelBoundingBox = mtb.ModelTarget.GetBoundingBox();
|
||||||
|
var bboxGameObj = CreateBoundingBox(mtb.ModelTarget.Name, modelBoundingBox);
|
||||||
|
|
||||||
|
// Parent the bounding box under the model target.
|
||||||
|
bboxGameObj.transform.SetParent(modelTargetGameObj.transform, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StopSearchWhenModelFound)
|
||||||
|
{
|
||||||
|
// Stop the target finder
|
||||||
|
mModelRecoBehaviour.ModelRecoEnabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // IModelRecoEventHandler_IMPLEMENTATION
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region PRIVATE_METHODS
|
||||||
|
|
||||||
|
private ModelTargetBehaviour FindExistingModelTarget(TargetFinder.ModelRecoSearchResult searchResult)
|
||||||
|
{
|
||||||
|
var modelTargetsInScene = Resources.FindObjectsOfTypeAll<ModelTargetBehaviour>().ToList().Where(mt => mt.ModelTargetType == ModelTargetType.PREDEFINED).ToArray();
|
||||||
|
|
||||||
|
if (modelTargetsInScene == null || modelTargetsInScene.Length == 0)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
string targetName = searchResult.TargetName;
|
||||||
|
//string targetUniqueId = searchResult.UniqueTargetId;
|
||||||
|
|
||||||
|
foreach (var mt in modelTargetsInScene)
|
||||||
|
{
|
||||||
|
if (mt.TrackableName == targetName)
|
||||||
|
{
|
||||||
|
mt.gameObject.SetActive(true);
|
||||||
|
return mt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private GameObject CreateBoundingBox(string modelTargetName, OrientedBoundingBox3D bbox)
|
||||||
|
{
|
||||||
|
var bboxGameObj = new GameObject(modelTargetName + "_BoundingBox");
|
||||||
|
bboxGameObj.transform.localPosition = bbox.Center;
|
||||||
|
bboxGameObj.transform.localRotation = Quaternion.identity;
|
||||||
|
bboxGameObj.transform.localScale = 2 * bbox.HalfExtents;
|
||||||
|
bboxGameObj.AddComponent<BoundingBoxRenderer>();
|
||||||
|
return bboxGameObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ShowErrorMessageInUI(string text)
|
||||||
|
{
|
||||||
|
if (ModelRecoErrorText)
|
||||||
|
ModelRecoErrorText.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Bounds GetModelTargetWorldBounds(ModelTargetBehaviour mtb)
|
||||||
|
{
|
||||||
|
var bbox = mtb.ModelTarget.GetBoundingBox();
|
||||||
|
var localCenter = bbox.Center;
|
||||||
|
var localExtents = bbox.HalfExtents;
|
||||||
|
|
||||||
|
// transform local center to World space
|
||||||
|
var worldCenter = mtb.transform.TransformPoint(localCenter);
|
||||||
|
|
||||||
|
// transform the local extents to World space
|
||||||
|
var axisX = mtb.transform.TransformVector(localExtents.x, 0, 0);
|
||||||
|
var axisY = mtb.transform.TransformVector(0, localExtents.y, 0);
|
||||||
|
var axisZ = mtb.transform.TransformVector(0, 0, localExtents.z);
|
||||||
|
|
||||||
|
Vector3 worldExtents = Vector3.zero;
|
||||||
|
worldExtents.x = Mathf.Abs(axisX.x) + Mathf.Abs(axisY.x) + Mathf.Abs(axisZ.x);
|
||||||
|
worldExtents.y = Mathf.Abs(axisX.y) + Mathf.Abs(axisY.y) + Mathf.Abs(axisZ.y);
|
||||||
|
worldExtents.z = Mathf.Abs(axisX.z) + Mathf.Abs(axisY.z) + Mathf.Abs(axisZ.z);
|
||||||
|
|
||||||
|
return new Bounds { center = worldCenter, extents = worldExtents };
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool IsModelTrackedInView(ModelTargetBehaviour modelTarget)
|
||||||
|
{
|
||||||
|
if (!modelTarget)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (modelTarget.CurrentStatus == TrackableBehaviour.Status.NO_POSE)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
var cam = DigitalEyewearARController.Instance.PrimaryCamera;
|
||||||
|
if (!cam)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Compute the center of the model in World coordinates
|
||||||
|
Bounds modelBounds = GetModelTargetWorldBounds(modelTarget);
|
||||||
|
|
||||||
|
var frustumPlanes = GeometryUtility.CalculateFrustumPlanes(cam);
|
||||||
|
return GeometryUtility.TestPlanesAABB(frustumPlanes, modelBounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion PRIVATE_METHODS
|
||||||
|
|
||||||
|
|
||||||
|
#region PUBLIC_METHODS
|
||||||
|
|
||||||
|
public TargetFinder GetTargetFinder()
|
||||||
|
{
|
||||||
|
return mTargetFinder;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void ResetModelReco(bool destroyGameObjects)
|
||||||
|
{
|
||||||
|
var objectTracker = TrackerManager.Instance.GetTracker<ObjectTracker>();
|
||||||
|
|
||||||
|
if (objectTracker != null)
|
||||||
|
{
|
||||||
|
objectTracker.Stop();
|
||||||
|
|
||||||
|
if (mTargetFinder != null)
|
||||||
|
{
|
||||||
|
mTargetFinder.ClearTrackables(destroyGameObjects);
|
||||||
|
mTargetFinder.Stop();
|
||||||
|
mTargetFinder.StartRecognition();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogError("Could not reset TargetFinder");
|
||||||
|
}
|
||||||
|
|
||||||
|
objectTracker.Start();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogError("Could not reset ObjectTracker");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // PUBLIC_METHODS
|
||||||
|
}
|
124
AR-1/Assets/Vuforia/Scripts/DefaultTrackableEventHandler.cs
Executable file
|
@ -0,0 +1,124 @@
|
||||||
|
/*==============================================================================
|
||||||
|
Copyright (c) 2017 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Copyright (c) 2010-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
All Rights Reserved.
|
||||||
|
Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using Vuforia;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A custom handler that implements the ITrackableEventHandler interface.
|
||||||
|
///
|
||||||
|
/// Changes made to this file could be overwritten when upgrading the Vuforia version.
|
||||||
|
/// When implementing custom event handler behavior, consider inheriting from this class instead.
|
||||||
|
/// </summary>
|
||||||
|
public class DefaultTrackableEventHandler : MonoBehaviour, ITrackableEventHandler
|
||||||
|
{
|
||||||
|
#region PROTECTED_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
protected TrackableBehaviour mTrackableBehaviour;
|
||||||
|
protected TrackableBehaviour.Status m_PreviousStatus;
|
||||||
|
protected TrackableBehaviour.Status m_NewStatus;
|
||||||
|
|
||||||
|
#endregion // PROTECTED_MEMBER_VARIABLES
|
||||||
|
|
||||||
|
#region UNITY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
protected virtual void Start()
|
||||||
|
{
|
||||||
|
mTrackableBehaviour = GetComponent<TrackableBehaviour>();
|
||||||
|
if (mTrackableBehaviour)
|
||||||
|
mTrackableBehaviour.RegisterTrackableEventHandler(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void OnDestroy()
|
||||||
|
{
|
||||||
|
if (mTrackableBehaviour)
|
||||||
|
mTrackableBehaviour.UnregisterTrackableEventHandler(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // UNITY_MONOBEHAVIOUR_METHODS
|
||||||
|
|
||||||
|
#region PUBLIC_METHODS
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Implementation of the ITrackableEventHandler function called when the
|
||||||
|
/// tracking state changes.
|
||||||
|
/// </summary>
|
||||||
|
public void OnTrackableStateChanged(
|
||||||
|
TrackableBehaviour.Status previousStatus,
|
||||||
|
TrackableBehaviour.Status newStatus)
|
||||||
|
{
|
||||||
|
m_PreviousStatus = previousStatus;
|
||||||
|
m_NewStatus = newStatus;
|
||||||
|
|
||||||
|
if (newStatus == TrackableBehaviour.Status.DETECTED ||
|
||||||
|
newStatus == TrackableBehaviour.Status.TRACKED ||
|
||||||
|
newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)
|
||||||
|
{
|
||||||
|
Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
|
||||||
|
OnTrackingFound();
|
||||||
|
}
|
||||||
|
else if (previousStatus == TrackableBehaviour.Status.TRACKED &&
|
||||||
|
newStatus == TrackableBehaviour.Status.NO_POSE)
|
||||||
|
{
|
||||||
|
Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");
|
||||||
|
OnTrackingLost();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// For combo of previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND
|
||||||
|
// Vuforia is starting, but tracking has not been lost or found yet
|
||||||
|
// Call OnTrackingLost() to hide the augmentations
|
||||||
|
OnTrackingLost();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // PUBLIC_METHODS
|
||||||
|
|
||||||
|
#region PROTECTED_METHODS
|
||||||
|
|
||||||
|
protected virtual void OnTrackingFound()
|
||||||
|
{
|
||||||
|
var rendererComponents = GetComponentsInChildren<Renderer>(true);
|
||||||
|
var colliderComponents = GetComponentsInChildren<Collider>(true);
|
||||||
|
var canvasComponents = GetComponentsInChildren<Canvas>(true);
|
||||||
|
|
||||||
|
// Enable rendering:
|
||||||
|
foreach (var component in rendererComponents)
|
||||||
|
component.enabled = true;
|
||||||
|
|
||||||
|
// Enable colliders:
|
||||||
|
foreach (var component in colliderComponents)
|
||||||
|
component.enabled = true;
|
||||||
|
|
||||||
|
// Enable canvas':
|
||||||
|
foreach (var component in canvasComponents)
|
||||||
|
component.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected virtual void OnTrackingLost()
|
||||||
|
{
|
||||||
|
var rendererComponents = GetComponentsInChildren<Renderer>(true);
|
||||||
|
var colliderComponents = GetComponentsInChildren<Collider>(true);
|
||||||
|
var canvasComponents = GetComponentsInChildren<Canvas>(true);
|
||||||
|
|
||||||
|
// Disable rendering:
|
||||||
|
foreach (var component in rendererComponents)
|
||||||
|
component.enabled = false;
|
||||||
|
|
||||||
|
// Disable colliders:
|
||||||
|
foreach (var component in colliderComponents)
|
||||||
|
component.enabled = false;
|
||||||
|
|
||||||
|
// Disable canvas':
|
||||||
|
foreach (var component in canvasComponents)
|
||||||
|
component.enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion // PROTECTED_METHODS
|
||||||
|
}
|
3
AR-1/Assets/Vuforia/Scripts/VuforiaScripts.asmdef
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"name": "VuforiaScripts"
|
||||||
|
}
|
57
AR-1/Assets/Vuforia/Shaders/BrightTexture.shader
Executable file
|
@ -0,0 +1,57 @@
|
||||||
|
//==============================================================================
|
||||||
|
//Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
//All Rights Reserved.
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
Shader "Custom/BrightTexture" {
|
||||||
|
Properties {
|
||||||
|
_MainTex ("Base (RGB)", 2D) = "white" {}
|
||||||
|
}
|
||||||
|
SubShader {
|
||||||
|
|
||||||
|
Pass{
|
||||||
|
|
||||||
|
CGPROGRAM
|
||||||
|
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
|
||||||
|
#include "UnityCG.cginc"
|
||||||
|
|
||||||
|
sampler2D _MainTex;
|
||||||
|
|
||||||
|
struct v2f {
|
||||||
|
float4 pos : SV_POSITION;
|
||||||
|
float2 uv : TEXCOORD0;
|
||||||
|
};
|
||||||
|
|
||||||
|
float4 _MainTex_ST;
|
||||||
|
|
||||||
|
v2f vert (appdata_base v)
|
||||||
|
{
|
||||||
|
v2f o;
|
||||||
|
o.pos = UnityObjectToClipPos (v.vertex);
|
||||||
|
o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
half4 frag(v2f i) : COLOR
|
||||||
|
{
|
||||||
|
half4 c = tex2D (_MainTex, i.uv);
|
||||||
|
|
||||||
|
float scale = 0.2f;
|
||||||
|
c.rgb = c.rgb * scale + 1.0f - scale;
|
||||||
|
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FallBack "Diffuse"
|
||||||
|
}
|
72
AR-1/Assets/Vuforia/Shaders/CameraDiffuse.shader
Executable file
|
@ -0,0 +1,72 @@
|
||||||
|
//========================================================================
|
||||||
|
// Copyright (c) 2017 PTC Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
// countries.
|
||||||
|
//=========================================================================
|
||||||
|
|
||||||
|
Shader "Custom/CameraDiffuse"
|
||||||
|
{
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
_MaterialColor ("Color", Color) = (1,1,1,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
CGINCLUDE
|
||||||
|
|
||||||
|
uniform float4 _MaterialColor;
|
||||||
|
|
||||||
|
ENDCG
|
||||||
|
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Pass
|
||||||
|
{
|
||||||
|
// indicate that our pass is the "base" pass in forward
|
||||||
|
// rendering pipeline. It gets ambient and main directional
|
||||||
|
// light data set up; light direction in _WorldSpaceLightPos0
|
||||||
|
// and color in _LightColor0
|
||||||
|
Tags {"LightMode"="ForwardBase"}
|
||||||
|
Cull Off
|
||||||
|
|
||||||
|
CGPROGRAM
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
#include "UnityCG.cginc" // for UnityObjectToWorldNormal
|
||||||
|
#include "UnityLightingCommon.cginc" // for _LightColor0
|
||||||
|
|
||||||
|
struct v2f
|
||||||
|
{
|
||||||
|
fixed4 diff : COLOR0; // diffuse lighting color
|
||||||
|
float4 vertex : SV_POSITION;
|
||||||
|
};
|
||||||
|
|
||||||
|
v2f vert (appdata_base v)
|
||||||
|
{
|
||||||
|
v2f o;
|
||||||
|
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||||
|
|
||||||
|
|
||||||
|
// get vertex normal in world space
|
||||||
|
half3 worldNormal = UnityObjectToWorldNormal(v.normal);
|
||||||
|
|
||||||
|
float3 worldPos = mul(unity_ObjectToWorld, v.vertex).xyz;
|
||||||
|
// compute world space view direction
|
||||||
|
float3 worldViewDir = normalize(UnityWorldSpaceViewDir(worldPos));
|
||||||
|
// dot product between normal and light direction for
|
||||||
|
// standard diffuse (Lambert) lighting "(support double-sided material)"
|
||||||
|
half nl = abs(dot(worldNormal, worldViewDir));
|
||||||
|
|
||||||
|
// factor in the material color
|
||||||
|
o.diff = lerp(_MaterialColor, nl * _MaterialColor, 0.2);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
fixed4 frag (v2f i) : SV_Target
|
||||||
|
{
|
||||||
|
return i.diff;
|
||||||
|
}
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
39
AR-1/Assets/Vuforia/Shaders/ClippingMask.shader
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
|
||||||
|
|
||||||
|
/*===============================================================================
|
||||||
|
Copyright 2017 PTC Inc.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
|
use this file except in compliance with the License. You may obtain a copy of
|
||||||
|
the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software 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.
|
||||||
|
===============================================================================*/
|
||||||
|
Shader "Custom/ClippingMask" {
|
||||||
|
// Used to clip objects outside of the Vuforia Video Background
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
// Render the mask after regular geometry and transparent things but
|
||||||
|
// but before any other overlays
|
||||||
|
|
||||||
|
Tags {"Queue" = "Overlay-10" }
|
||||||
|
|
||||||
|
Lighting Off
|
||||||
|
|
||||||
|
ZTest Always
|
||||||
|
ZWrite On
|
||||||
|
|
||||||
|
// Draw black background into the RGBA channel
|
||||||
|
Color (0,0,0,0)
|
||||||
|
ColorMask RGBA
|
||||||
|
|
||||||
|
// Do nothing specific in the pass:
|
||||||
|
|
||||||
|
Pass {}
|
||||||
|
}
|
||||||
|
}
|
22
AR-1/Assets/Vuforia/Shaders/ColoredLines.shader
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
//===============================================================================
|
||||||
|
//Copyright (c) 2015-2016 PTC Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
//Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
//Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
//countries.
|
||||||
|
//===============================================================================
|
||||||
|
|
||||||
|
Shader "Custom/ColoredLines" {
|
||||||
|
Properties {
|
||||||
|
_Color ("Main Color", Color) = (1,1,1,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
Pass {
|
||||||
|
Lighting Off
|
||||||
|
Cull Off
|
||||||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||||||
|
Color [_Color]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
78
AR-1/Assets/Vuforia/Shaders/DepthContour.shader
Executable file
|
@ -0,0 +1,78 @@
|
||||||
|
/*========================================================================
|
||||||
|
Copyright (c) 2017 PTC Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
countries.
|
||||||
|
=========================================================================*/
|
||||||
|
Shader "Custom/DepthContour" {
|
||||||
|
Properties{
|
||||||
|
_ContourColor("Contour Color", Color) = (1,1,1,1)
|
||||||
|
_SurfaceColor("Surface Color", Color) = (0.5,0.5,0.5,1)
|
||||||
|
_DepthThreshold("Depth Threshold", Float) = 0.002
|
||||||
|
}
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
Tags { "Queue" = "Geometry" "RenderType" = "Transparent" }
|
||||||
|
|
||||||
|
Pass {
|
||||||
|
Cull Back
|
||||||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||||||
|
|
||||||
|
CGPROGRAM
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
#include "UnityCG.cginc"
|
||||||
|
|
||||||
|
uniform sampler2D _CameraDepthTexture;
|
||||||
|
uniform float4 _ContourColor;
|
||||||
|
uniform float4 _SurfaceColor;
|
||||||
|
uniform float _DepthThreshold;
|
||||||
|
|
||||||
|
struct v2f {
|
||||||
|
float4 pos : SV_POSITION;
|
||||||
|
float4 screenPos : TEXCOORD0;
|
||||||
|
float depth : TEXCOORD1;
|
||||||
|
};
|
||||||
|
|
||||||
|
v2f vert(appdata_base v)
|
||||||
|
{
|
||||||
|
v2f o;
|
||||||
|
o.pos = UnityObjectToClipPos(v.vertex);
|
||||||
|
o.screenPos = ComputeScreenPos(o.pos);
|
||||||
|
|
||||||
|
COMPUTE_EYEDEPTH(o.depth);
|
||||||
|
o.depth = (o.depth - _ProjectionParams.y) / (_ProjectionParams.z - _ProjectionParams.y);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
half4 frag(v2f i) : COLOR
|
||||||
|
{
|
||||||
|
float2 uv = i.screenPos.xy / i.screenPos.w;
|
||||||
|
float du = 1.0 / _ScreenParams.x;
|
||||||
|
float dv = 1.0 / _ScreenParams.y;
|
||||||
|
float2 uv_X1 = uv + float2(du, 0.0);
|
||||||
|
float2 uv_Y1 = uv + float2(0.0, dv);
|
||||||
|
float2 uv_X2 = uv + float2(-du, 0.0);
|
||||||
|
float2 uv_Y2 = uv + float2(0.0, -dv);
|
||||||
|
|
||||||
|
float depth0 = Linear01Depth(UNITY_SAMPLE_DEPTH(tex2D(_CameraDepthTexture, uv)));
|
||||||
|
float depthX1 = Linear01Depth(UNITY_SAMPLE_DEPTH(tex2D(_CameraDepthTexture, uv_X1)));
|
||||||
|
float depthY1 = Linear01Depth(UNITY_SAMPLE_DEPTH(tex2D(_CameraDepthTexture, uv_Y1)));
|
||||||
|
float depthX2 = Linear01Depth(UNITY_SAMPLE_DEPTH(tex2D(_CameraDepthTexture, uv_X2)));
|
||||||
|
float depthY2 = Linear01Depth(UNITY_SAMPLE_DEPTH(tex2D(_CameraDepthTexture, uv_Y2)));
|
||||||
|
|
||||||
|
float farDist = _ProjectionParams.z;
|
||||||
|
float refDepthStep = _DepthThreshold / farDist;
|
||||||
|
float depthStepX = max(abs(depth0 - depthX1), abs(depth0 - depthX2));
|
||||||
|
float depthStepY = max(abs(depth0 - depthY1), abs(depth0 - depthY2));
|
||||||
|
float maxDepthStep = length(float2(depthStepX, depthStepY));
|
||||||
|
half contour = (maxDepthStep > refDepthStep) ? 1.0 : 0.0;
|
||||||
|
return _SurfaceColor * (1.0 - contour) + _ContourColor * contour;
|
||||||
|
}
|
||||||
|
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Fallback "Diffuse"
|
||||||
|
}
|
43
AR-1/Assets/Vuforia/Shaders/DepthMask.shader
Executable file
|
@ -0,0 +1,43 @@
|
||||||
|
//===============================================================================
|
||||||
|
//Copyright (c) 2015 PTC Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
//Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
//Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
//countries.
|
||||||
|
//===============================================================================
|
||||||
|
//===============================================================================
|
||||||
|
//Copyright (c) 2010-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
//All Rights Reserved.
|
||||||
|
//Confidential and Proprietary - Qualcomm Connected Experiences, Inc.
|
||||||
|
//===============================================================================
|
||||||
|
|
||||||
|
Shader "DepthMask" {
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
// Render the mask after regular geometry, but before masked geometry and
|
||||||
|
// transparent things.
|
||||||
|
|
||||||
|
Tags {"Queue" = "Geometry-10" }
|
||||||
|
|
||||||
|
// Turn off lighting, because it's expensive and the thing is supposed to be
|
||||||
|
// invisible anyway.
|
||||||
|
|
||||||
|
Lighting Off
|
||||||
|
|
||||||
|
// Draw into the depth buffer in the usual way. This is probably the default,
|
||||||
|
// but it doesn't hurt to be explicit.
|
||||||
|
|
||||||
|
ZTest LEqual
|
||||||
|
ZWrite On
|
||||||
|
|
||||||
|
// Don't draw anything into the RGBA channels. This is an undocumented
|
||||||
|
// argument to ColorMask which lets us avoid writing to anything except
|
||||||
|
// the depth buffer.
|
||||||
|
|
||||||
|
ColorMask 0
|
||||||
|
|
||||||
|
// Do nothing specific in the pass:
|
||||||
|
|
||||||
|
Pass {}
|
||||||
|
}
|
||||||
|
}
|
86
AR-1/Assets/Vuforia/Shaders/OutlineOpaque.shader
Executable file
|
@ -0,0 +1,86 @@
|
||||||
|
//===============================================================================
|
||||||
|
//Copyright (c) 2017 PTC Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
//Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
//Vuforia is a trademark of PTC Inc., registered in the United States and other
|
||||||
|
//countries.
|
||||||
|
//===============================================================================
|
||||||
|
//==============================================================================
|
||||||
|
//Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
//All Rights Reserved.
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
Shader "Custom/OutlineOpaque"
|
||||||
|
{
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
_SilhouetteSize ("Size", Float) = 0.0
|
||||||
|
_SilhouetteColor ("Color", Color) = (1,1,1,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
CGINCLUDE
|
||||||
|
#include "UnityCG.cginc"
|
||||||
|
|
||||||
|
struct v2f
|
||||||
|
{
|
||||||
|
float4 position : POSITION;
|
||||||
|
float4 color : COLOR;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct vertIn
|
||||||
|
{
|
||||||
|
float4 position : POSITION;
|
||||||
|
float3 normal : NORMAL;
|
||||||
|
};
|
||||||
|
|
||||||
|
uniform float _SilhouetteSize;
|
||||||
|
uniform float4 _SilhouetteColor;
|
||||||
|
|
||||||
|
ENDCG
|
||||||
|
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Tags { "Queue" = "Geometry" }
|
||||||
|
|
||||||
|
Pass
|
||||||
|
{
|
||||||
|
Cull Back
|
||||||
|
Blend Zero One
|
||||||
|
}
|
||||||
|
|
||||||
|
Pass
|
||||||
|
{
|
||||||
|
Cull Front
|
||||||
|
|
||||||
|
CGPROGRAM
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
|
||||||
|
v2f vert(vertIn input)
|
||||||
|
{
|
||||||
|
v2f output;
|
||||||
|
// unmodified projected position of the vertex
|
||||||
|
output.position = UnityObjectToClipPos(input.position);
|
||||||
|
output.color = _SilhouetteColor;
|
||||||
|
|
||||||
|
// calculate silhouette in image space
|
||||||
|
float2 silhouette = TransformViewToProjection(mul((float3x3)UNITY_MATRIX_IT_MV, input.normal).xy) * _SilhouetteSize;
|
||||||
|
|
||||||
|
// add silhouette offset
|
||||||
|
output.position.xy += output.position.z * silhouette;
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
half4 frag(v2f input) :COLOR
|
||||||
|
{
|
||||||
|
return input.color;
|
||||||
|
}
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Fallback "Diffuse"
|
||||||
|
}
|
26
AR-1/Assets/Vuforia/Shaders/Text3D.shader
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
//========================================================================
|
||||||
|
//Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
//All Rights Reserved.
|
||||||
|
//Confidential and Proprietary - Protected under copyright and other laws.
|
||||||
|
//========================================================================
|
||||||
|
|
||||||
|
Shader "Custom/Text3D" {
|
||||||
|
Properties {
|
||||||
|
_MainTex ("Base (RGB)", 2D) = "white" {}
|
||||||
|
_Color ("Text Color", Color) = (1,1,1,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
Tags { "Queue"="Geometry+1" "IgnoreProjector"="True" }
|
||||||
|
Lighting Off Offset -1, -1 ZTest LEqual ZWrite On Fog { Mode Off }
|
||||||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||||||
|
Pass {
|
||||||
|
Color [_Color]
|
||||||
|
SetTexture [_MainTex] {
|
||||||
|
combine primary, texture * primary
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
33
AR-1/Assets/Vuforia/Shaders/VertexLitWithZ.shader
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
//==============================================================================
|
||||||
|
//Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc.
|
||||||
|
//All Rights Reserved.
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
Shader "Transparent/VertexLit with Z" {
|
||||||
|
Properties {
|
||||||
|
_Color ("Main Color", Color) = (1,1,1,1)
|
||||||
|
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||||
|
}
|
||||||
|
|
||||||
|
SubShader {
|
||||||
|
Tags {"RenderType"="Transparent" "Queue"="Transparent"}
|
||||||
|
// Render into depth buffer only
|
||||||
|
Pass {
|
||||||
|
ColorMask 0
|
||||||
|
}
|
||||||
|
// Render normally
|
||||||
|
Pass {
|
||||||
|
ZWrite On
|
||||||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||||||
|
ColorMask RGB
|
||||||
|
Material {
|
||||||
|
Diffuse [_Color]
|
||||||
|
Ambient [_Color]
|
||||||
|
}
|
||||||
|
Lighting On
|
||||||
|
SetTexture [_MainTex] {
|
||||||
|
Combine texture * primary DOUBLE, texture * primary
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
116
AR-1/Assets/Vuforia/Shaders/VideoBackground.shader
Executable file
|
@ -0,0 +1,116 @@
|
||||||
|
/*===============================================================================
|
||||||
|
Copyright 2017-2018 PTC Inc.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
|
use this file except in compliance with the License. You may obtain a copy of
|
||||||
|
the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software 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.
|
||||||
|
===============================================================================*/
|
||||||
|
|
||||||
|
Shader "Custom/VideoBackground" {
|
||||||
|
// Used to render the Vuforia Video Background
|
||||||
|
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
[NoScaleOffset] _MainTex("Texture", 2D) = "white" {}
|
||||||
|
[NoScaleOffset] _UVTex("UV Texture", 2D) = "white" {}
|
||||||
|
}
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Tags {"Queue" = "geometry-11" "RenderType" = "opaque" }
|
||||||
|
Pass {
|
||||||
|
ZWrite Off
|
||||||
|
Cull Off
|
||||||
|
Lighting Off
|
||||||
|
|
||||||
|
CGPROGRAM
|
||||||
|
|
||||||
|
#pragma multi_compile VUFORIA_RGB VUFORIA_YUVNV12 VUFORIA_YUVNV21
|
||||||
|
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
|
||||||
|
#include "UnityCG.cginc"
|
||||||
|
|
||||||
|
|
||||||
|
sampler2D _MainTex;
|
||||||
|
float4 _MainTex_ST;
|
||||||
|
#if (VUFORIA_YUVNV12 || VUFORIA_YUVNV21)
|
||||||
|
sampler2D _UVTex;
|
||||||
|
float4 _UVTex_ST;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct v2f {
|
||||||
|
float4 pos : SV_POSITION;
|
||||||
|
float2 uv : TEXCOORD0;
|
||||||
|
#if (VUFORIA_YUVNV12 || VUFORIA_YUVNV21)
|
||||||
|
float2 uv2 : TEXCOORD1;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
v2f vert(appdata_base v)
|
||||||
|
{
|
||||||
|
v2f o;
|
||||||
|
o.pos = UnityObjectToClipPos(v.vertex);
|
||||||
|
o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||||
|
#if (VUFORIA_YUVNV12 || VUFORIA_YUVNV21)
|
||||||
|
o.uv2 = TRANSFORM_TEX(v.texcoord, _UVTex);
|
||||||
|
#endif
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (VUFORIA_YUVNV12 || VUFORIA_YUVNV21)
|
||||||
|
half4 frag(v2f i) : COLOR
|
||||||
|
{
|
||||||
|
half4 c;
|
||||||
|
half2 uv = tex2D(_UVTex, i.uv2).rg;
|
||||||
|
float y = tex2D(_MainTex, i.uv).r;
|
||||||
|
|
||||||
|
#if VUFORIA_YUVNV12
|
||||||
|
half4 v4yuv1 = half4(y, uv, 1.0);
|
||||||
|
|
||||||
|
c.r = dot(half4(1.1640625, 0.000000000, 1.5957031250, -0.87060546875), v4yuv1);
|
||||||
|
c.g = dot(half4(1.1640625, -0.390625000, -0.8134765625, 0.52929687500), v4yuv1);
|
||||||
|
c.b = dot(half4(1.1640625, 2.017578125, 0.0000000000, -1.08154296875), v4yuv1);
|
||||||
|
c.a = 1.0;
|
||||||
|
#else
|
||||||
|
half4 v4yuv1 = half4(y, uv, 1.0);
|
||||||
|
|
||||||
|
c.r = dot(half4(1.1640625, 1.5957031250, 0.000000000, -0.87060546875), v4yuv1);
|
||||||
|
c.g = dot(half4(1.1640625, -0.8134765625, -0.390625000, 0.52929687500), v4yuv1);
|
||||||
|
c.b = dot(half4(1.1640625, 0.0000000000, 2.017578125, -1.08154296875), v4yuv1);
|
||||||
|
c.a = 1.0;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNITY_COLORSPACE_GAMMA
|
||||||
|
return c;
|
||||||
|
#else
|
||||||
|
return fixed4(GammaToLinearSpace(c.rgb), c.a);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
half4 frag(v2f i) : COLOR
|
||||||
|
{
|
||||||
|
half4 c = tex2D(_MainTex, i.uv);
|
||||||
|
|
||||||
|
c.rgb = c.rgb;
|
||||||
|
c.a = 1.0;
|
||||||
|
|
||||||
|
#ifdef UNITY_COLORSPACE_GAMMA
|
||||||
|
return c;
|
||||||
|
#else
|
||||||
|
return fixed4(GammaToLinearSpace(c.rgb), c.a);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Fallback "Legacy Shaders/Diffuse"
|
||||||
|
}
|
BIN
AR-1/Assets/Vuforia/Textures/CloudRecoTarget.png
Executable file
After Width: | Height: | Size: 21 KiB |
BIN
AR-1/Assets/Vuforia/Textures/GroundPlaneReference.png
Executable file
After Width: | Height: | Size: 141 KiB |
BIN
AR-1/Assets/Vuforia/Textures/MidAirReference.png
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
AR-1/Assets/Vuforia/Textures/Reticle.png
Executable file
After Width: | Height: | Size: 27 KiB |
BIN
AR-1/Assets/Vuforia/Textures/UserDefinedTarget.png
Executable file
After Width: | Height: | Size: 24 KiB |
BIN
AR-1/Assets/Vuforia/Textures/VideoBackground.png
Executable file
After Width: | Height: | Size: 33 KiB |
BIN
AR-1/Assets/Vuforia/Textures/VirtualButtonPreview.png
Executable file
After Width: | Height: | Size: 732 B |
1
AR-1/Assets/Vuforia/version
Executable file
|
@ -0,0 +1 @@
|
||||||
|
8.0.10:e77b6e2369a2a334abb489af3dba34aa
|
954
AR-1/Assets/c.unity
Normal file
|
@ -0,0 +1,954 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!29 &1
|
||||||
|
OcclusionCullingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_OcclusionBakeSettings:
|
||||||
|
smallestOccluder: 5
|
||||||
|
smallestHole: 0.25
|
||||||
|
backfaceThreshold: 100
|
||||||
|
m_SceneGUID: 00000000000000000000000000000000
|
||||||
|
m_OcclusionCullingData: {fileID: 0}
|
||||||
|
--- !u!104 &2
|
||||||
|
RenderSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 9
|
||||||
|
m_Fog: 0
|
||||||
|
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
|
m_FogMode: 3
|
||||||
|
m_FogDensity: 0.01
|
||||||
|
m_LinearFogStart: 0
|
||||||
|
m_LinearFogEnd: 300
|
||||||
|
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||||
|
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||||
|
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||||
|
m_AmbientIntensity: 1
|
||||||
|
m_AmbientMode: 0
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_HaloStrength: 0.5
|
||||||
|
m_FlareStrength: 1
|
||||||
|
m_FlareFadeSpeed: 3
|
||||||
|
m_HaloTexture: {fileID: 0}
|
||||||
|
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_DefaultReflectionMode: 0
|
||||||
|
m_DefaultReflectionResolution: 128
|
||||||
|
m_ReflectionBounces: 1
|
||||||
|
m_ReflectionIntensity: 1
|
||||||
|
m_CustomReflection: {fileID: 0}
|
||||||
|
m_Sun: {fileID: 0}
|
||||||
|
m_IndirectSpecularColor: {r: 0.3731193, g: 0.38073996, b: 0.3587269, a: 1}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 11
|
||||||
|
m_GIWorkflowMode: 0
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 10
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 10
|
||||||
|
m_AtlasSize: 512
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_TextureCompression: 1
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_ReflectionCompression: 2
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_BakeBackend: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 256
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringMode: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ShowResolutionOverlay: 1
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_UseShadowmask: 1
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
agentTypeID: 0
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.4
|
||||||
|
ledgeDropHeight: 0
|
||||||
|
maxJumpAcrossDistance: 0
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
accuratePlacement: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &212646161
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 212646167}
|
||||||
|
- component: {fileID: 212646166}
|
||||||
|
- component: {fileID: 212646165}
|
||||||
|
- component: {fileID: 212646164}
|
||||||
|
- component: {fileID: 212646163}
|
||||||
|
- component: {fileID: 212646162}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: LandingTarget
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!33 &212646162
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Mesh: {fileID: 1302420206}
|
||||||
|
--- !u!23 &212646163
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 663181358}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!114 &212646164
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1770992566, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &212646165
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5a917f0af64a6423093132dab321c15f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &212646166
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1631628248, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName: landingsbane
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 1
|
||||||
|
mDataSetPath: Vuforia/AR-1.xml
|
||||||
|
mAspectRatio: 2.7434866
|
||||||
|
mImageTargetType: 0
|
||||||
|
mWidth: 0.100329995
|
||||||
|
mHeight: 0.275254
|
||||||
|
--- !u!4 &212646167
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 212646161}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.0173, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.275254, y: 0.275254, z: 0.275254}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!21 &663181358
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 'landingsbaneMaterial
|
||||||
|
|
||||||
|
-1910'
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f212cd602fc4449eb1013671ccca7b76, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.82089555, g: 0.82089555, b: 0.82089555, a: 1}
|
||||||
|
--- !u!1 &860498374
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 860498380}
|
||||||
|
- component: {fileID: 860498379}
|
||||||
|
- component: {fileID: 860498378}
|
||||||
|
- component: {fileID: 860498377}
|
||||||
|
- component: {fileID: 860498376}
|
||||||
|
- component: {fileID: 860498375}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: ShuttleTarget
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!33 &860498375
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Mesh: {fileID: 2053726402}
|
||||||
|
--- !u!23 &860498376
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 0
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 1649016937}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!114 &860498377
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1770992566, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &860498378
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5a917f0af64a6423093132dab321c15f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &860498379
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1631628248, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mTrackableName: farge
|
||||||
|
mPreserveChildSize: 0
|
||||||
|
mInitializedInEditor: 1
|
||||||
|
mDataSetPath: Vuforia/AR-1.xml
|
||||||
|
mAspectRatio: 1.7317066
|
||||||
|
mImageTargetType: 0
|
||||||
|
mWidth: 0.06147
|
||||||
|
mHeight: 0.106448
|
||||||
|
--- !u!4 &860498380
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 860498374}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -0.1019, y: 0, z: 0.0082}
|
||||||
|
m_LocalScale: {x: 0.106448, y: 0.106448, z: 0.106448}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 1593208835}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &979980161
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 979980166}
|
||||||
|
- component: {fileID: 979980165}
|
||||||
|
- component: {fileID: 979980164}
|
||||||
|
- component: {fileID: 979980163}
|
||||||
|
- component: {fileID: 979980162}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: ARCamera
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &979980162
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: c47f92041efbb4b429a4eafca855ebe3, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &979980163
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1826476478, guid: bab6fa851cf5a1a4bba3cec5f191cb8e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mWorldCenterMode: 2
|
||||||
|
mWorldCenter: {fileID: 0}
|
||||||
|
--- !u!81 &979980164
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &979980165
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 2
|
||||||
|
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_NormalizedViewPortRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
near clip plane: 0.05
|
||||||
|
far clip plane: 2000
|
||||||
|
field of view: 60
|
||||||
|
orthographic: 0
|
||||||
|
orthographic size: 5
|
||||||
|
m_Depth: 1
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingPath: -1
|
||||||
|
m_TargetTexture: {fileID: 0}
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_TargetEye: 3
|
||||||
|
m_HDR: 0
|
||||||
|
m_AllowMSAA: 1
|
||||||
|
m_AllowDynamicResolution: 0
|
||||||
|
m_ForceIntoRT: 0
|
||||||
|
m_OcclusionCulling: 1
|
||||||
|
m_StereoConvergence: 10
|
||||||
|
m_StereoSeparation: 0.022
|
||||||
|
--- !u!4 &979980166
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 979980161}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.298, y: -0.716, z: -1.615}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!43 &1302420206
|
||||||
|
Mesh:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ImageTargetMesh-1906
|
||||||
|
serializedVersion: 9
|
||||||
|
m_SubMeshes:
|
||||||
|
- serializedVersion: 2
|
||||||
|
firstByte: 0
|
||||||
|
indexCount: 6
|
||||||
|
topology: 0
|
||||||
|
baseVertex: 0
|
||||||
|
firstVertex: 0
|
||||||
|
vertexCount: 4
|
||||||
|
localAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.18224984, y: 0, z: 0.5}
|
||||||
|
m_Shapes:
|
||||||
|
vertices: []
|
||||||
|
shapes: []
|
||||||
|
channels: []
|
||||||
|
fullWeights: []
|
||||||
|
m_BindPose: []
|
||||||
|
m_BoneNameHashes:
|
||||||
|
m_RootBoneNameHash: 0
|
||||||
|
m_MeshCompression: 0
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_KeepVertices: 1
|
||||||
|
m_KeepIndices: 1
|
||||||
|
m_IndexFormat: 0
|
||||||
|
m_IndexBuffer: 000001000200020001000300
|
||||||
|
m_VertexData:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_VertexCount: 4
|
||||||
|
m_Channels:
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 12
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 24
|
||||||
|
format: 0
|
||||||
|
dimension: 2
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
m_DataSize: 128
|
||||||
|
_typelessdata: b49f3abe00000000000000bf000000000000803f000000000000000000000000b49f3abe000000000000003f000000000000803f00000000000000000000803fb49f3a3e00000000000000bf000000000000803f000000000000803f00000000b49f3a3e000000000000003f000000000000803f000000000000803f0000803f
|
||||||
|
m_CompressedMesh:
|
||||||
|
m_Vertices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UV:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Normals:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Tangents:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Weights:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_NormalSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_TangentSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_FloatColors:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_BoneIndices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Triangles:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UVInfo: 0
|
||||||
|
m_LocalAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_MeshUsageFlags: 0
|
||||||
|
m_BakedConvexCollisionMesh:
|
||||||
|
m_BakedTriangleCollisionMesh:
|
||||||
|
m_MeshMetrics[0]: 1
|
||||||
|
m_MeshMetrics[1]: 1
|
||||||
|
m_MeshOptimized: 0
|
||||||
|
m_StreamData:
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
||||||
|
--- !u!1 &1593208834
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1593208835}
|
||||||
|
- component: {fileID: 1593208839}
|
||||||
|
- component: {fileID: 1593208838}
|
||||||
|
- component: {fileID: 1593208837}
|
||||||
|
- component: {fileID: 1593208836}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: AlignmentQuad
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1593208835
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: -0.01, y: -0, z: 0.24}
|
||||||
|
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 860498380}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
|
||||||
|
--- !u!114 &1593208836
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dfb36cee13f0f431f93747fac4a79f1c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!64 &1593208837
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 14
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &1593208838
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 30b97d537113d0441889f1559f555128, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &1593208839
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1593208834}
|
||||||
|
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!21 &1649016937
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 'fargeMaterial
|
||||||
|
|
||||||
|
-2694'
|
||||||
|
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 2aecda9d179f4d9fb4f506a74cf4b7f1, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.82089555, g: 0.82089555, b: 0.82089555, a: 1}
|
||||||
|
--- !u!43 &2053726402
|
||||||
|
Mesh:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ImageTargetMesh-2690
|
||||||
|
serializedVersion: 9
|
||||||
|
m_SubMeshes:
|
||||||
|
- serializedVersion: 2
|
||||||
|
firstByte: 0
|
||||||
|
indexCount: 6
|
||||||
|
topology: 0
|
||||||
|
baseVertex: 0
|
||||||
|
firstVertex: 0
|
||||||
|
vertexCount: 4
|
||||||
|
localAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_Shapes:
|
||||||
|
vertices: []
|
||||||
|
shapes: []
|
||||||
|
channels: []
|
||||||
|
fullWeights: []
|
||||||
|
m_BindPose: []
|
||||||
|
m_BoneNameHashes:
|
||||||
|
m_RootBoneNameHash: 0
|
||||||
|
m_MeshCompression: 0
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_KeepVertices: 1
|
||||||
|
m_KeepIndices: 1
|
||||||
|
m_IndexFormat: 0
|
||||||
|
m_IndexBuffer: 000001000200020001000300
|
||||||
|
m_VertexData:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_VertexCount: 4
|
||||||
|
m_Channels:
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 12
|
||||||
|
format: 0
|
||||||
|
dimension: 3
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 24
|
||||||
|
format: 0
|
||||||
|
dimension: 2
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
- stream: 0
|
||||||
|
offset: 0
|
||||||
|
format: 0
|
||||||
|
dimension: 0
|
||||||
|
m_DataSize: 128
|
||||||
|
_typelessdata: bfd493be00000000000000bf000000000000803f000000000000000000000000bfd493be000000000000003f000000000000803f00000000000000000000803fbfd4933e00000000000000bf000000000000803f000000000000803f00000000bfd4933e000000000000003f000000000000803f000000000000803f0000803f
|
||||||
|
m_CompressedMesh:
|
||||||
|
m_Vertices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UV:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Normals:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Tangents:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Weights:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_NormalSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_TangentSigns:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_FloatColors:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Range: 0
|
||||||
|
m_Start: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_BoneIndices:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_Triangles:
|
||||||
|
m_NumItems: 0
|
||||||
|
m_Data:
|
||||||
|
m_BitSize: 0
|
||||||
|
m_UVInfo: 0
|
||||||
|
m_LocalAABB:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 0.2887325, y: 0, z: 0.5}
|
||||||
|
m_MeshUsageFlags: 0
|
||||||
|
m_BakedConvexCollisionMesh:
|
||||||
|
m_BakedTriangleCollisionMesh:
|
||||||
|
m_MeshMetrics[0]: 1
|
||||||
|
m_MeshMetrics[1]: 1
|
||||||
|
m_MeshOptimized: 0
|
||||||
|
m_StreamData:
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
1220
AR-1/Assets/d.unity
Normal file
5844
AR-1/Assets/e.unity
Normal file
19
AR-1/Assets/earthScript.cs
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class earthScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
private Transform earthCenter;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
earthCenter = GameObject.Find("EarthCenter").transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
earthCenter.position = transform.position;
|
||||||
|
}
|
||||||
|
}
|
17
AR-1/ProjectSettings/AudioManager.asset
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!11 &1
|
||||||
|
AudioManager:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_Volume: 1
|
||||||
|
Rolloff Scale: 1
|
||||||
|
Doppler Factor: 1
|
||||||
|
Default Speaker Mode: 2
|
||||||
|
m_SampleRate: 0
|
||||||
|
m_DSPBufferSize: 1024
|
||||||
|
m_VirtualVoiceCount: 512
|
||||||
|
m_RealVoiceCount: 32
|
||||||
|
m_SpatializerPlugin:
|
||||||
|
m_AmbisonicDecoderPlugin:
|
||||||
|
m_DisableAudio: 0
|
||||||
|
m_VirtualizeEffects: 1
|
6
AR-1/ProjectSettings/ClusterInputManager.asset
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!236 &1
|
||||||
|
ClusterInputManager:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_Inputs: []
|
30
AR-1/ProjectSettings/DynamicsManager.asset
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!55 &1
|
||||||
|
PhysicsManager:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 8
|
||||||
|
m_Gravity: {x: 0, y: -9.81, z: 0}
|
||||||
|
m_DefaultMaterial: {fileID: 0}
|
||||||
|
m_BounceThreshold: 2
|
||||||
|
m_SleepThreshold: 0.005
|
||||||
|
m_DefaultContactOffset: 0.01
|
||||||
|
m_DefaultSolverIterations: 6
|
||||||
|
m_DefaultSolverVelocityIterations: 1
|
||||||
|
m_QueriesHitBackfaces: 0
|
||||||
|
m_QueriesHitTriggers: 1
|
||||||
|
m_EnableAdaptiveForce: 0
|
||||||
|
m_ClothInterCollisionDistance: 0
|
||||||
|
m_ClothInterCollisionStiffness: 0
|
||||||
|
m_ContactsGeneration: 1
|
||||||
|
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||||
|
m_AutoSimulation: 1
|
||||||
|
m_AutoSyncTransforms: 0
|
||||||
|
m_ReuseCollisionCallbacks: 1
|
||||||
|
m_ClothInterCollisionSettingsToggle: 0
|
||||||
|
m_ContactPairsMode: 0
|
||||||
|
m_BroadphaseType: 0
|
||||||
|
m_WorldBounds:
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
m_Extent: {x: 250, y: 250, z: 250}
|
||||||
|
m_WorldSubdivisions: 8
|
11
AR-1/ProjectSettings/EditorBuildSettings.asset
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1045 &1
|
||||||
|
EditorBuildSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Scenes:
|
||||||
|
- enabled: 0
|
||||||
|
path:
|
||||||
|
guid: 00000000000000000000000000000000
|
||||||
|
m_configObjects: {}
|
21
AR-1/ProjectSettings/EditorSettings.asset
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!159 &1
|
||||||
|
EditorSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 7
|
||||||
|
m_ExternalVersionControlSupport: Visible Meta Files
|
||||||
|
m_SerializationMode: 2
|
||||||
|
m_LineEndingsForNewScripts: 2
|
||||||
|
m_DefaultBehaviorMode: 0
|
||||||
|
m_SpritePackerMode: 0
|
||||||
|
m_SpritePackerPaddingPower: 1
|
||||||
|
m_EtcTextureCompressorBehavior: 1
|
||||||
|
m_EtcTextureFastCompressor: 1
|
||||||
|
m_EtcTextureNormalCompressor: 2
|
||||||
|
m_EtcTextureBestCompressor: 4
|
||||||
|
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd
|
||||||
|
m_ProjectGenerationRootNamespace:
|
||||||
|
m_UserGeneratedProjectSuffix:
|
||||||
|
m_CollabEditorSettings:
|
||||||
|
inProgressEnabled: 1
|
62
AR-1/ProjectSettings/GraphicsSettings.asset
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!30 &1
|
||||||
|
GraphicsSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 12
|
||||||
|
m_Deferred:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_DeferredReflections:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ScreenSpaceShadows:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_LegacyDeferred:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_DepthNormals:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_MotionVectors:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_LightHalo:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_LensFlare:
|
||||||
|
m_Mode: 1
|
||||||
|
m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_AlwaysIncludedShaders:
|
||||||
|
- {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_PreloadedShaders: []
|
||||||
|
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
||||||
|
type: 0}
|
||||||
|
m_CustomRenderPipeline: {fileID: 0}
|
||||||
|
m_TransparencySortMode: 0
|
||||||
|
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
|
||||||
|
m_DefaultRenderingPath: 1
|
||||||
|
m_DefaultMobileRenderingPath: 1
|
||||||
|
m_TierSettings: []
|
||||||
|
m_LightmapStripping: 0
|
||||||
|
m_FogStripping: 0
|
||||||
|
m_InstancingStripping: 0
|
||||||
|
m_LightmapKeepPlain: 1
|
||||||
|
m_LightmapKeepDirCombined: 1
|
||||||
|
m_LightmapKeepDynamicPlain: 1
|
||||||
|
m_LightmapKeepDynamicDirCombined: 1
|
||||||
|
m_LightmapKeepShadowMask: 1
|
||||||
|
m_LightmapKeepSubtractive: 1
|
||||||
|
m_FogKeepLinear: 1
|
||||||
|
m_FogKeepExp: 1
|
||||||
|
m_FogKeepExp2: 1
|
||||||
|
m_AlbedoSwatchInfos: []
|
||||||
|
m_LightsUseLinearIntensity: 0
|
||||||
|
m_LightsUseColorTemperature: 0
|