├── .gitattributes ├── .gitignore ├── Assets ├── ExtraSample.meta ├── ExtraSample │ ├── Material.meta │ ├── Material │ │ ├── Color.mat │ │ ├── Color.mat.meta │ │ ├── VideoMaterial.mat │ │ ├── VideoMaterial.mat.meta │ │ ├── VideoTexture.renderTexture │ │ └── VideoTexture.renderTexture.meta │ ├── Models.meta │ ├── Models │ │ ├── 3DCube.prefab │ │ ├── 3DCube.prefab.meta │ │ ├── Suriyun.meta │ │ ├── Suriyun │ │ │ ├── Animations.meta │ │ │ ├── Animations │ │ │ │ ├── Anim@ATK1.fbx │ │ │ │ ├── Anim@ATK1.fbx.meta │ │ │ │ ├── Anim@ATK2.fbx │ │ │ │ ├── Anim@ATK2.fbx.meta │ │ │ │ ├── Anim@ATK3.fbx │ │ │ │ ├── Anim@ATK3.fbx.meta │ │ │ │ ├── Anim@ATK4.fbx │ │ │ │ ├── Anim@ATK4.fbx.meta │ │ │ │ ├── Anim@Alert.fbx │ │ │ │ ├── Anim@Alert.fbx.meta │ │ │ │ ├── Anim@Block.fbx │ │ │ │ ├── Anim@Block.fbx.meta │ │ │ │ ├── Anim@Damage.fbx │ │ │ │ ├── Anim@Damage.fbx.meta │ │ │ │ ├── Anim@Dash.fbx │ │ │ │ ├── Anim@Dash.fbx.meta │ │ │ │ ├── Anim@Die1.fbx │ │ │ │ ├── Anim@Die1.fbx.meta │ │ │ │ ├── Anim@Die2.fbx │ │ │ │ ├── Anim@Die2.fbx.meta │ │ │ │ ├── Anim@Idle.fbx │ │ │ │ ├── Anim@Idle.fbx.meta │ │ │ │ ├── Anim@Jump.fbx │ │ │ │ ├── Anim@Jump.fbx.meta │ │ │ │ ├── Anim@Move.fbx │ │ │ │ ├── Anim@Move.fbx.meta │ │ │ │ ├── Anim@Move_L.fbx │ │ │ │ ├── Anim@Move_L.fbx.meta │ │ │ │ ├── Anim@Move_R.fbx │ │ │ │ ├── Anim@Move_R.fbx.meta │ │ │ │ ├── Anim@Sit.fbx │ │ │ │ ├── Anim@Sit.fbx.meta │ │ │ │ ├── Anim@Victory.fbx │ │ │ │ ├── Anim@Victory.fbx.meta │ │ │ │ ├── Animations.controller │ │ │ │ ├── Animations.controller.meta │ │ │ │ ├── Avatar_for_Animation.fbx │ │ │ │ ├── Avatar_for_Animation.fbx.meta │ │ │ │ ├── Lighting.meta │ │ │ │ └── Lighting │ │ │ │ │ ├── DirecLigth.anim │ │ │ │ │ ├── DirecLigth.anim.meta │ │ │ │ │ ├── Directional Light.controller │ │ │ │ │ └── Directional Light.controller.meta │ │ │ ├── Castle Guard.unity │ │ │ ├── Castle Guard.unity.meta │ │ │ ├── FBX.meta │ │ │ ├── FBX │ │ │ │ ├── Characters.meta │ │ │ │ ├── Characters │ │ │ │ │ ├── M02.fbx │ │ │ │ │ └── M02.fbx.meta │ │ │ │ ├── HeadArmor.meta │ │ │ │ ├── HeadArmor │ │ │ │ │ ├── Helm_iron.fbx │ │ │ │ │ └── Helm_iron.fbx.meta │ │ │ │ ├── Weapon.meta │ │ │ │ └── Weapon │ │ │ │ │ ├── Spear_blackiron.fbx │ │ │ │ │ └── Spear_blackiron.fbx.meta │ │ │ ├── Fx.meta │ │ │ ├── Fx │ │ │ │ ├── Fx1.mat │ │ │ │ ├── Fx1.mat.meta │ │ │ │ ├── Fx2.mat │ │ │ │ ├── Fx2.mat.meta │ │ │ │ ├── Fx3.mat │ │ │ │ ├── Fx3.mat.meta │ │ │ │ ├── Particle System 1.prefab │ │ │ │ ├── Particle System 1.prefab.meta │ │ │ │ ├── Particle System 2.prefab │ │ │ │ ├── Particle System 2.prefab.meta │ │ │ │ ├── Particle System 3.prefab │ │ │ │ ├── Particle System 3.prefab.meta │ │ │ │ ├── Particle System 4.prefab │ │ │ │ ├── Particle System 4.prefab.meta │ │ │ │ ├── fx1.png │ │ │ │ ├── fx1.png.meta │ │ │ │ ├── fx2.png │ │ │ │ ├── fx2.png.meta │ │ │ │ ├── fx3.png │ │ │ │ └── fx3.png.meta │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── Characters.meta │ │ │ │ ├── Characters │ │ │ │ │ ├── M02.mat │ │ │ │ │ └── M02.mat.meta │ │ │ │ ├── Other.meta │ │ │ │ ├── Other │ │ │ │ │ ├── Floor.mat │ │ │ │ │ └── Floor.mat.meta │ │ │ │ ├── Skin&Hair&Face.meta │ │ │ │ ├── Skin&Hair&Face │ │ │ │ │ ├── Face.meta │ │ │ │ │ ├── Face │ │ │ │ │ │ ├── face.mat │ │ │ │ │ │ └── face.mat.meta │ │ │ │ │ ├── hair02.mat │ │ │ │ │ ├── hair02.mat.meta │ │ │ │ │ ├── skin.mat │ │ │ │ │ └── skin.mat.meta │ │ │ │ ├── Weapon.meta │ │ │ │ └── Weapon │ │ │ │ │ ├── spear_blackiron.mat │ │ │ │ │ └── spear_blackiron.mat.meta │ │ │ ├── Prefab.meta │ │ │ ├── Prefab │ │ │ │ ├── Helm_iron.prefab │ │ │ │ ├── Helm_iron.prefab.meta │ │ │ │ ├── M02.prefab │ │ │ │ ├── M02.prefab.meta │ │ │ │ ├── Spear_blackiron.prefab │ │ │ │ └── Spear_blackiron.prefab.meta │ │ │ ├── README.txt │ │ │ ├── README.txt.meta │ │ │ ├── Scripts.meta │ │ │ ├── Scripts │ │ │ │ ├── AnimatorController.cs │ │ │ │ ├── AnimatorController.cs.meta │ │ │ │ ├── MouseOrbit.js │ │ │ │ └── MouseOrbit.js.meta │ │ │ ├── Texture.meta │ │ │ ├── Texture │ │ │ │ ├── M02.meta │ │ │ │ ├── M02 │ │ │ │ │ ├── M02.png │ │ │ │ │ ├── M02.png.meta │ │ │ │ │ ├── spear_blackiron.png │ │ │ │ │ └── spear_blackiron.png.meta │ │ │ │ ├── Skin&Hair&Face.meta │ │ │ │ └── Skin&Hair&Face │ │ │ │ │ ├── Face.meta │ │ │ │ │ ├── Face │ │ │ │ │ ├── Face.png │ │ │ │ │ └── Face.png.meta │ │ │ │ │ ├── Skin.png │ │ │ │ │ ├── Skin.png.meta │ │ │ │ │ ├── hair02.png │ │ │ │ │ └── hair02.png.meta │ │ │ ├── UI.meta │ │ │ ├── UI │ │ │ │ ├── Floor_creation2.png │ │ │ │ ├── Floor_creation2.png.meta │ │ │ │ ├── anim_button1.png │ │ │ │ ├── anim_button1.png.meta │ │ │ │ ├── animation.png │ │ │ │ ├── animation.png.meta │ │ │ │ ├── frame.png │ │ │ │ └── frame.png.meta │ │ │ ├── UnityChanShader.meta │ │ │ └── UnityChanShader │ │ │ │ ├── FO_CLOTH1.tga │ │ │ │ ├── FO_CLOTH1.tga.meta │ │ │ │ ├── FO_RIM1.tga │ │ │ │ ├── FO_RIM1.tga.meta │ │ │ │ ├── FO_SKIN1.tga │ │ │ │ ├── FO_SKIN1.tga.meta │ │ │ │ ├── Shader.meta │ │ │ │ └── Shader │ │ │ │ ├── CharaMain.cginc │ │ │ │ ├── CharaMain.cginc.meta │ │ │ │ ├── CharaOutline.cginc │ │ │ │ ├── CharaOutline.cginc.meta │ │ │ │ ├── CharaSkin.cginc │ │ │ │ ├── CharaSkin.cginc.meta │ │ │ │ ├── Unitychan_chara_akarami_blend.shader │ │ │ │ ├── Unitychan_chara_akarami_blend.shader.meta │ │ │ │ ├── Unitychan_chara_eye.shader │ │ │ │ ├── Unitychan_chara_eye.shader.meta │ │ │ │ ├── Unitychan_chara_eye_blend.shader │ │ │ │ ├── Unitychan_chara_eye_blend.shader.meta │ │ │ │ ├── Unitychan_chara_eyelash_blend.shader │ │ │ │ ├── Unitychan_chara_eyelash_blend.shader.meta │ │ │ │ ├── Unitychan_chara_fuku.shader │ │ │ │ ├── Unitychan_chara_fuku.shader.meta │ │ │ │ ├── Unitychan_chara_fuku_ds.shader │ │ │ │ ├── Unitychan_chara_fuku_ds.shader.meta │ │ │ │ ├── Unitychan_chara_hada.shader │ │ │ │ ├── Unitychan_chara_hada.shader.meta │ │ │ │ ├── Unitychan_chara_hada_blend.shader │ │ │ │ ├── Unitychan_chara_hada_blend.shader.meta │ │ │ │ ├── Unitychan_chara_hair.shader │ │ │ │ ├── Unitychan_chara_hair.shader.meta │ │ │ │ ├── Unitychan_chara_hair_ds.shader │ │ │ │ ├── Unitychan_chara_hair_ds.shader.meta │ │ │ │ ├── readme.txt │ │ │ │ └── readme.txt.meta │ │ ├── VideoSample.mp4 │ │ └── VideoSample.mp4.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── ExtraHome.unity │ │ ├── ExtraHome.unity.meta │ │ ├── ExtraInstantTrackerBrush.unity │ │ ├── ExtraInstantTrackerBrush.unity.meta │ │ ├── ExtraInstantTrackerGrid.unity │ │ ├── ExtraInstantTrackerGrid.unity.meta │ │ ├── ExtraInstantTrackerMultiContents.unity │ │ ├── ExtraInstantTrackerMultiContents.unity.meta │ │ ├── ExtraVisualSLAMBrush.unity │ │ ├── ExtraVisualSLAMBrush.unity.meta │ │ ├── ExtraVisualSLAMKnight.unity │ │ ├── ExtraVisualSLAMKnight.unity.meta │ │ ├── ImageTrackerVideoPlayer.unity │ │ ├── ImageTrackerVideoPlayer.unity.meta │ │ ├── InstantTraining.unity │ │ ├── InstantTraining.unity.meta │ │ ├── NoImageTrackerble.unity │ │ └── NoImageTrackerble.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── BlocksTrackingEventHandler.cs │ │ ├── BlocksTrackingEventHandler.cs.meta │ │ ├── CameraDeviceController.cs │ │ ├── CameraDeviceController.cs.meta │ │ ├── ExraInstantTrackerMultiContents.cs │ │ ├── ExraInstantTrackerMultiContents.cs.meta │ │ ├── ExtraImageTrackerKnight.cs │ │ ├── ExtraImageTrackerKnight.cs.meta │ │ ├── ExtraInstantTrackerBrush.cs │ │ ├── ExtraInstantTrackerBrush.cs.meta │ │ ├── ExtraInstantTrackerGrid.cs │ │ ├── ExtraInstantTrackerGrid.cs.meta │ │ ├── ExtraVisualSLAMBrush.cs │ │ ├── ExtraVisualSLAMBrush.cs.meta │ │ ├── ExtramHomeSceneManager.cs │ │ ├── ExtramHomeSceneManager.cs.meta │ │ ├── GlacierTrackingEventHandler.cs │ │ ├── GlacierTrackingEventHandler.cs.meta │ │ ├── InstantPlaneGrid.cs │ │ ├── InstantPlaneGrid.cs.meta │ │ ├── InstantTraining.cs │ │ ├── InstantTraining.cs.meta │ │ ├── LegoTrackingEventHandler.cs │ │ ├── LegoTrackingEventHandler.cs.meta │ │ ├── MultiImageTargetA.cs │ │ ├── MultiImageTargetA.cs.meta │ │ ├── MultiImageTargetB.cs │ │ ├── MultiImageTargetB.cs.meta │ │ ├── NoImageTrackerbleSceneManager.cs │ │ ├── NoImageTrackerbleSceneManager.cs.meta │ │ ├── RotationController.cs │ │ ├── RotationController.cs.meta │ │ ├── TrackingEventHandler.cs │ │ ├── TrackingEventHandler.cs.meta │ │ ├── ZoomInOut.cs │ │ └── ZoomInOut.cs.meta ├── StreamingAssets.meta ├── StreamingAssets │ ├── intant_training.jpg │ ├── intant_training.jpg.meta │ ├── intant_training1.jpg │ └── intant_training1.jpg.meta ├── TouchKit.meta └── TouchKit │ ├── Editor.meta │ ├── Editor │ ├── TouchKitEditor.cs │ └── TouchKitEditor.cs.meta │ ├── Helpers.meta │ ├── Helpers │ ├── TKRect.cs │ ├── TKRect.cs.meta │ ├── TKTouch.cs │ ├── TKTouch.cs.meta │ ├── TouchKitEditorSupport.cs │ └── TouchKitEditorSupport.cs.meta │ ├── Recognizers.meta │ ├── Recognizers │ ├── TKAbstractGestureRecognizer.cs │ ├── TKAbstractGestureRecognizer.cs.meta │ ├── TKAngleSwipeRecognizer.cs │ ├── TKAngleSwipeRecognizer.cs.meta │ ├── TKAnyTouchRecognizer.cs │ ├── TKAnyTouchRecognizer.cs.meta │ ├── TKButtonRecognizer.cs │ ├── TKButtonRecognizer.cs.meta │ ├── TKCurveRecognizer.cs │ ├── TKCurveRecognizer.cs.meta │ ├── TKLongPressRecognizer.cs │ ├── TKLongPressRecognizer.cs.meta │ ├── TKOneFingerRotationRecognizer.cs │ ├── TKOneFingerRotationRecognizer.cs.meta │ ├── TKPanRecognizer.cs │ ├── TKPanRecognizer.cs.meta │ ├── TKPinchRecognizer.cs │ ├── TKPinchRecognizer.cs.meta │ ├── TKRotationRecognizer.cs │ ├── TKRotationRecognizer.cs.meta │ ├── TKSwipeRecognizer.cs │ ├── TKSwipeRecognizer.cs.meta │ ├── TKTapRecognizer.cs │ ├── TKTapRecognizer.cs.meta │ ├── TKTouchPadRecognizer.cs │ └── TKTouchPadRecognizer.cs.meta │ ├── TouchKit.cs │ └── TouchKit.cs.meta └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.so filter=lfs diff=lfs merge=lfs -text 2 | *.a filter=lfs diff=lfs merge=lfs -text 3 | *.dll filter=lfs diff=lfs merge=lfs -text 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Library/ 2 | ProjectSettings/ 3 | Temp/ 4 | UnityPackageManager/manifest.json 5 | MaxstARUnity.apk 6 | MaxstARSDK_Unity_Sample.v12.suo 7 | MaxstARSDK_Unity_Sample.sln 8 | MaxstARSDK_Unity_Sample.CSharp.csproj 9 | MaxstARSDK_Unity_Sample.CSharp.Editor.csproj 10 | Assembly-UnityScript.unityproj 11 | Assembly-CSharp.csproj 12 | Assembly-CSharp-Editor.csproj 13 | test.apk 14 | obj/Debug/ 15 | MaxstARSDK_Unity_Sample.userprefs 16 | MaxstARSDK_Unity_Sample_github.CSharp.csproj 17 | MaxstARSDK_Unity_Sample_github.CSharp.Editor.csproj 18 | MaxstARSDK_Unity_Sample_github.v12.suo 19 | MaxstARSDK_Unity_Sample_github.sln 20 | *.apk 21 | MaxstARSDK_Unity_Sample_github(maxstdev).v12.suo 22 | MaxstARSDK_Unity_Sample_github(maxstdev).CSharp.csproj 23 | MaxstARSDK_Unity_Sample_github(maxstdev).sln 24 | MaxstARSDK_Unity_Sample_github(maxstdev).CSharp.Editor.csproj 25 | MaxstARSDK_UnitySample(Github).sln 26 | MaxstARSDK_UnitySample(Github).csproj 27 | MaxstARSDK_UnitySample(Github).Editor.csproj 28 | .vs/ 29 | Assets/StreamingAssets/arsdk_version.txt 30 | Assets/StreamingAssets/arsdk_version.txt.meta 31 | log.txt 32 | -------------------------------------------------------------------------------- /Assets/ExtraSample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbfe8015d37a18945a5280dc5b39dd90 3 | folderAsset: yes 4 | timeCreated: 1513064649 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3b7cc633b2665243a76d5060af80d73 3 | folderAsset: yes 4 | timeCreated: 1522131966 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/Color.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Color 10 | m_Shader: {fileID: 4800000, guid: 0298b868476735f41857e9ba8f0d4cd1, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _FalloffSampler: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MainTex: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MetallicGlossMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _OcclusionMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _ParallaxMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _RimLightSampler: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | - _SpecGlossMap: 66 | m_Texture: {fileID: 0} 67 | m_Scale: {x: 1, y: 1} 68 | m_Offset: {x: 0, y: 0} 69 | m_Floats: 70 | - _BumpScale: 1 71 | - _Cutoff: 0.5 72 | - _DetailNormalMapScale: 1 73 | - _DstBlend: 0 74 | - _GlossMapScale: 1 75 | - _Glossiness: 0.5 76 | - _GlossyReflections: 1 77 | - _InvFade: 1 78 | - _Metallic: 0 79 | - _Mode: 0 80 | - _OcclusionStrength: 1 81 | - _Parallax: 0.02 82 | - _SmoothnessTextureChannel: 0 83 | - _SpecularHighlights: 1 84 | - _SrcBlend: 1 85 | - _UVSec: 0 86 | - _ZWrite: 1 87 | m_Colors: 88 | - _Color: {r: 1, g: 0, b: 0, a: 1} 89 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 90 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 91 | - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} 92 | - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 93 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/Color.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7296f1142af61e4eadb8aac4f45f0bc 3 | timeCreated: 1522131974 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/VideoMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: VideoMaterial 10 | m_Shader: {fileID: 10708, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 8400000, guid: 0473fabb1e8548143a837e8c47f502b1, type: 2} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/VideoMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6383e6f00210cc4c9bc75e13e436ca7 3 | timeCreated: 1533808705 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/VideoTexture.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: VideoTexture 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_ForcedFallbackFormat: 4 13 | m_DownscaleFallback: 0 14 | m_Width: 256 15 | m_Height: 256 16 | m_AntiAliasing: 1 17 | m_DepthFormat: 2 18 | m_ColorFormat: 0 19 | m_MipMap: 0 20 | m_GenerateMips: 1 21 | m_SRGB: 0 22 | m_UseDynamicScale: 0 23 | m_BindMS: 0 24 | m_TextureSettings: 25 | serializedVersion: 2 26 | m_FilterMode: 1 27 | m_Aniso: 0 28 | m_MipBias: 0 29 | m_WrapU: 1 30 | m_WrapV: 1 31 | m_WrapW: 1 32 | m_Dimension: 2 33 | m_VolumeDepth: 1 34 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Material/VideoTexture.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0473fabb1e8548143a837e8c47f502b1 3 | timeCreated: 1533808670 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a934b7c8b56f584d9ef3678fd31ff6d 3 | folderAsset: yes 4 | timeCreated: 1513064540 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/3DCube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7acfa1e7e117164e87344cb23071a1a 3 | timeCreated: 1522115262 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a83badf165e5204d95b8d4b54648530 3 | folderAsset: yes 4 | timeCreated: 1513066007 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6d3a83b96d94834aa3370f014aa2aa7 3 | folderAsset: yes 4 | timeCreated: 1488647326 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK1.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK1.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK2.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK2.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK3.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK3.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK4.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@ATK4.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Alert.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Alert.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Block.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Block.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Damage.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Damage.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Dash.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Dash.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Die1.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Die1.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Die2.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Die2.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Idle.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Idle.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Jump.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Jump.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move_L.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move_L.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move_R.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Move_R.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Sit.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Sit.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Anim@Victory.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Anim@Victory.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Animations.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02d5ec93278ea5c4cae238841be11363 3 | timeCreated: 1470462113 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Avatar_for_Animation.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Animations/Avatar_for_Animation.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fe34b23fb64577439d8b39804c438c1 3 | folderAsset: yes 4 | timeCreated: 1488647326 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Lighting/DirecLigth.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 277b94241ca3ef9489d2207ad156795e 3 | timeCreated: 1464330733 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Lighting/Directional Light.controller: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!91 &9100000 4 | AnimatorController: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Directional Light 9 | serializedVersion: 5 10 | m_AnimatorParameters: [] 11 | m_AnimatorLayers: 12 | - serializedVersion: 5 13 | m_Name: Base Layer 14 | m_StateMachine: {fileID: 110712526} 15 | m_Mask: {fileID: 0} 16 | m_Motions: [] 17 | m_Behaviours: [] 18 | m_BlendingMode: 0 19 | m_SyncedLayerIndex: -1 20 | m_DefaultWeight: 0 21 | m_IKPass: 0 22 | m_SyncedLayerAffectsTiming: 0 23 | m_Controller: {fileID: 9100000} 24 | --- !u!1102 &110279754 25 | AnimatorState: 26 | serializedVersion: 5 27 | m_ObjectHideFlags: 1 28 | m_PrefabParentObject: {fileID: 0} 29 | m_PrefabInternal: {fileID: 0} 30 | m_Name: DirecLigth 31 | m_Speed: 1 32 | m_CycleOffset: 0 33 | m_Transitions: [] 34 | m_StateMachineBehaviours: [] 35 | m_Position: {x: 50, y: 50, z: 0} 36 | m_IKOnFeet: 0 37 | m_WriteDefaultValues: 1 38 | m_Mirror: 0 39 | m_SpeedParameterActive: 0 40 | m_MirrorParameterActive: 0 41 | m_CycleOffsetParameterActive: 0 42 | m_TimeParameterActive: 0 43 | m_Motion: {fileID: 7400000, guid: 277b94241ca3ef9489d2207ad156795e, type: 2} 44 | m_Tag: 45 | m_SpeedParameter: 46 | m_MirrorParameter: 47 | m_CycleOffsetParameter: 48 | m_TimeParameter: 49 | --- !u!1107 &110712526 50 | AnimatorStateMachine: 51 | serializedVersion: 5 52 | m_ObjectHideFlags: 1 53 | m_PrefabParentObject: {fileID: 0} 54 | m_PrefabInternal: {fileID: 0} 55 | m_Name: Base Layer 56 | m_ChildStates: 57 | - serializedVersion: 1 58 | m_State: {fileID: 110279754} 59 | m_Position: {x: 300, y: 24, z: 0} 60 | m_ChildStateMachines: [] 61 | m_AnyStateTransitions: [] 62 | m_EntryTransitions: [] 63 | m_StateMachineTransitions: 64 | - first: {fileID: 110712526} 65 | second: [] 66 | m_StateMachineBehaviours: [] 67 | m_AnyStatePosition: {x: 50, y: 20, z: 0} 68 | m_EntryPosition: {x: 50, y: 120, z: 0} 69 | m_ExitPosition: {x: 800, y: 120, z: 0} 70 | m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} 71 | m_DefaultState: {fileID: 110279754} 72 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Animations/Lighting/Directional Light.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efbceb58bfe09ac4580e68c85a59bdb6 3 | timeCreated: 1464330733 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Castle Guard.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35af6015facf19b4cade5557e35d3ab1 3 | timeCreated: 1488647023 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b5b418ab57c27b4999043d161cc4af8 3 | folderAsset: yes 4 | timeCreated: 1474449039 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae09c4dc1126b5547ad7bab72c45ba60 3 | folderAsset: yes 4 | timeCreated: 1476244332 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/Characters/M02.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/FBX/Characters/M02.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/HeadArmor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04a062f574d724445aea5ba6bb739848 3 | folderAsset: yes 4 | timeCreated: 1476242183 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/HeadArmor/Helm_iron.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/FBX/HeadArmor/Helm_iron.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/HeadArmor/Helm_iron.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cef99805674a2934bb5c0f7d1d06c5da 3 | timeCreated: 1475566550 4 | licenseType: Store 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: //RootNode 9 | 400000: //RootNode 10 | 2300000: //RootNode 11 | 3300000: //RootNode 12 | 4300000: Helm_iron 13 | materials: 14 | importMaterials: 1 15 | materialName: 0 16 | materialSearch: 2 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | animationImportErrors: 24 | animationImportWarnings: 25 | animationRetargetingWarnings: 26 | animationDoRetargetingWarnings: 0 27 | animationCompression: 1 28 | animationRotationError: 0.5 29 | animationPositionError: 0.5 30 | animationScaleError: 0.5 31 | animationWrapMode: 0 32 | extraExposedTransformPaths: [] 33 | clipAnimations: [] 34 | isReadable: 1 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 10 38 | meshCompression: 0 39 | addColliders: 0 40 | importBlendShapes: 1 41 | swapUVChannels: 0 42 | generateSecondaryUV: 0 43 | useFileUnits: 1 44 | optimizeMeshForGPU: 1 45 | keepQuads: 0 46 | weldVertices: 1 47 | secondaryUVAngleDistortion: 8 48 | secondaryUVAreaDistortion: 15.000001 49 | secondaryUVHardAngle: 88 50 | secondaryUVPackMargin: 4 51 | useFileScale: 1 52 | tangentSpace: 53 | normalSmoothAngle: 60 54 | normalImportMode: 0 55 | tangentImportMode: 3 56 | importAnimation: 1 57 | copyAvatar: 0 58 | humanDescription: 59 | serializedVersion: 2 60 | human: [] 61 | skeleton: [] 62 | armTwist: 0.5 63 | foreArmTwist: 0.5 64 | upperLegTwist: 0.5 65 | legTwist: 0.5 66 | armStretch: 0.05 67 | legStretch: 0.05 68 | feetSpacing: 0 69 | rootMotionBoneName: 70 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 71 | hasTranslationDoF: 0 72 | hasExtraRoot: 0 73 | skeletonHasParents: 0 74 | lastHumanDescriptionAvatarSource: {instanceID: 0} 75 | animationType: 0 76 | humanoidOversampling: 1 77 | additionalBone: 0 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/Weapon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dd3f2cbf01e5fa4cb0824602229a463 3 | folderAsset: yes 4 | timeCreated: 1476242166 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/Weapon/Spear_blackiron.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/FBX/Weapon/Spear_blackiron.fbx -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/FBX/Weapon/Spear_blackiron.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c340948c9cf0b3d4c8b44b2519e1ee69 3 | timeCreated: 1490880432 4 | licenseType: Store 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: //RootNode 9 | 400000: //RootNode 10 | 2300000: //RootNode 11 | 3300000: //RootNode 12 | 4300000: Spear_blackiron 13 | materials: 14 | importMaterials: 1 15 | materialName: 0 16 | materialSearch: 2 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | animationImportErrors: 24 | animationImportWarnings: 25 | animationRetargetingWarnings: 26 | animationDoRetargetingWarnings: 0 27 | animationCompression: 1 28 | animationRotationError: 0.5 29 | animationPositionError: 0.5 30 | animationScaleError: 0.5 31 | animationWrapMode: 0 32 | extraExposedTransformPaths: [] 33 | clipAnimations: [] 34 | isReadable: 1 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 10 38 | meshCompression: 0 39 | addColliders: 0 40 | importBlendShapes: 1 41 | swapUVChannels: 0 42 | generateSecondaryUV: 0 43 | useFileUnits: 1 44 | optimizeMeshForGPU: 1 45 | keepQuads: 0 46 | weldVertices: 1 47 | secondaryUVAngleDistortion: 8 48 | secondaryUVAreaDistortion: 15.000001 49 | secondaryUVHardAngle: 88 50 | secondaryUVPackMargin: 4 51 | useFileScale: 1 52 | tangentSpace: 53 | normalSmoothAngle: 60 54 | normalImportMode: 0 55 | tangentImportMode: 3 56 | importAnimation: 1 57 | copyAvatar: 0 58 | humanDescription: 59 | serializedVersion: 2 60 | human: [] 61 | skeleton: [] 62 | armTwist: 0.5 63 | foreArmTwist: 0.5 64 | upperLegTwist: 0.5 65 | legTwist: 0.5 66 | armStretch: 0.05 67 | legStretch: 0.05 68 | feetSpacing: 0 69 | rootMotionBoneName: 70 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 71 | hasTranslationDoF: 0 72 | hasExtraRoot: 0 73 | skeletonHasParents: 1 74 | lastHumanDescriptionAvatarSource: {instanceID: 0} 75 | animationType: 0 76 | humanoidOversampling: 1 77 | additionalBone: 0 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f04919e4ed0c08b43a9bcef3842ed30a 3 | folderAsset: yes 4 | timeCreated: 1456545587 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx1.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Fx1 10 | m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 2800000, guid: cf48217bdd69712488ff258b0642ac95, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _InvFade: 1 64 | - _Metallic: 0 65 | - _Mode: 0 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 1 71 | m_Colors: 72 | - _Color: {r: 1, g: 1, b: 1, a: 1} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 75 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34add804bcc0df246b425f10048dde50 3 | timeCreated: 1456545593 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx2.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Fx2 10 | m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 2800000, guid: 0d0e8699b230ccc4dba6a03b260e7fef, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _InvFade: 1 64 | - _Metallic: 0 65 | - _Mode: 0 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 1 71 | m_Colors: 72 | - _Color: {r: 1, g: 1, b: 1, a: 1} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 75 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 206a134479c9bfb43aea0790f074b68e 3 | timeCreated: 1456545603 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx3.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Fx3 10 | m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 2800000, guid: 782a39de252df884090a36f0e7ee8075, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _InvFade: 1 64 | - _Metallic: 0 65 | - _Mode: 0 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 1 71 | m_Colors: 72 | - _Color: {r: 1, g: 1, b: 1, a: 1} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 75 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Fx3.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edd4800c17cf22e42bf34147a2c93872 3 | timeCreated: 1456545604 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Particle System 1.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43533c9311181ae4e91c1cecb42ce6fc 3 | timeCreated: 1487409381 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Particle System 2.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44365503a8287ba4a815747f7d072bdf 3 | timeCreated: 1487409382 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Particle System 3.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14bdb7ddd1d77524aa824d254cdb3d73 3 | timeCreated: 1487409384 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/Particle System 4.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ae29e41686341145a8a8ef0393d7920 3 | timeCreated: 1487409385 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Fx/fx1.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx1.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf48217bdd69712488ff258b0642ac95 3 | timeCreated: 1456545553 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 128 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 2 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Fx/fx2.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d0e8699b230ccc4dba6a03b260e7fef 3 | timeCreated: 1456545553 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 128 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 2 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Fx/fx3.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Fx/fx3.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 782a39de252df884090a36f0e7ee8075 3 | timeCreated: 1456545553 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 128 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 2 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6f99b35fc3c2144b94d980c1b034393 3 | folderAsset: yes 4 | timeCreated: 1474448445 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0fbd3f19db0aac448f41e68a7b8ab68 3 | folderAsset: yes 4 | timeCreated: 1490773329 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Characters/M02.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: M02 10 | m_Shader: {fileID: 4800000, guid: b35a2abbdd5b15d4ca40103088758eac, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _EnvMapSampler: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _FalloffSampler: 46 | m_Texture: {fileID: 2800000, guid: fb21edd4942fe494c9db6df7c4256d59, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 2800000, guid: 07312bef57b4da140a84729247338a26, type: 3} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _NormalMapSampler: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _OcclusionMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | - _ParallaxMap: 66 | m_Texture: {fileID: 0} 67 | m_Scale: {x: 1, y: 1} 68 | m_Offset: {x: 0, y: 0} 69 | - _RimLightSampler: 70 | m_Texture: {fileID: 2800000, guid: fb21edd4942fe494c9db6df7c4256d59, type: 3} 71 | m_Scale: {x: 1, y: 1} 72 | m_Offset: {x: 0, y: 0} 73 | - _SpecularReflectionSampler: 74 | m_Texture: {fileID: 0} 75 | m_Scale: {x: 1, y: 1} 76 | m_Offset: {x: 0, y: 0} 77 | m_Floats: 78 | - _BumpScale: 1 79 | - _Cutoff: 0.5 80 | - _DepthBias: 0.00012 81 | - _DetailNormalMapScale: 1 82 | - _DstBlend: 0 83 | - _EdgeThickness: 2 84 | - _GlossMapScale: 1 85 | - _Glossiness: 0.5 86 | - _GlossyReflections: 1 87 | - _Metallic: 0 88 | - _Mode: 0 89 | - _OcclusionStrength: 1 90 | - _Parallax: 0.02 91 | - _SmoothnessTextureChannel: 0 92 | - _SpecularHighlights: 1 93 | - _SpecularPower: 20 94 | - _SrcBlend: 1 95 | - _UVSec: 0 96 | - _ZWrite: 1 97 | m_Colors: 98 | - _Color: {r: 1, g: 1, b: 1, a: 1} 99 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 100 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 101 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Characters/M02.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db6940c15197d0a4699926f8f4584a40 3 | timeCreated: 1490880004 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Other.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d193a49b352a171449c184a820ceb263 3 | folderAsset: yes 4 | timeCreated: 1490773368 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Other/Floor.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Floor 10 | m_Shader: {fileID: 4800000, guid: b35a2abbdd5b15d4ca40103088758eac, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _FalloffSampler: 42 | m_Texture: {fileID: 2800000, guid: 53ba3cfb9b246fd4f9098e204d897e60, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MainTex: 46 | m_Texture: {fileID: 2800000, guid: c80a4253c6284824d9da5281a7429b38, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MetallicGlossMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _OcclusionMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _ParallaxMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _RimLightSampler: 62 | m_Texture: {fileID: 2800000, guid: 11011750921e10846abfad2b18cadbca, type: 3} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Floats: 66 | - _BumpScale: 1 67 | - _Cutoff: 0.5 68 | - _DepthBias: 0.00012 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 0 71 | - _EdgeThickness: 1 72 | - _GlossMapScale: 1 73 | - _Glossiness: 0.5 74 | - _GlossyReflections: 1 75 | - _Metallic: 0 76 | - _Mode: 0 77 | - _OcclusionStrength: 1 78 | - _Parallax: 0.02 79 | - _SmoothnessTextureChannel: 0 80 | - _SpecularHighlights: 1 81 | - _SrcBlend: 1 82 | - _UVSec: 0 83 | - _ZWrite: 1 84 | m_Colors: 85 | - _Color: {r: 1, g: 1, b: 1, a: 1} 86 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 87 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 88 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Other/Floor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfbabd5d818e1b94990d7c9bc26fd739 3 | timeCreated: 1490762450 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f34d2a42dfabef46b8c93803c4d7e96 3 | folderAsset: yes 4 | timeCreated: 1490761117 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/Face.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a91b13b61b31fb479bc631a38742bec 3 | folderAsset: yes 4 | timeCreated: 1490761126 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/Face/face.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: face 10 | m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _FalloffSampler: 42 | m_Texture: {fileID: 2800000, guid: 53ba3cfb9b246fd4f9098e204d897e60, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MainTex: 46 | m_Texture: {fileID: 2800000, guid: a88ee308717252647b33d009b6dca9e2, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MetallicGlossMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _OcclusionMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _ParallaxMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _RimLightSampler: 62 | m_Texture: {fileID: 2800000, guid: 11011750921e10846abfad2b18cadbca, type: 3} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Floats: 66 | - _BumpScale: 1 67 | - _Cutoff: 0.5 68 | - _DepthBias: 0.00012 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 10 71 | - _EdgeThickness: 1 72 | - _GlossMapScale: 1 73 | - _Glossiness: 0.5 74 | - _GlossyReflections: 1 75 | - _Metallic: 0 76 | - _Mode: 3 77 | - _OcclusionStrength: 1 78 | - _Parallax: 0.02 79 | - _SmoothnessTextureChannel: 0 80 | - _SpecularHighlights: 1 81 | - _SrcBlend: 1 82 | - _UVSec: 0 83 | - _ZWrite: 0 84 | m_Colors: 85 | - _Color: {r: 1, g: 1, b: 1, a: 1} 86 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 87 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 88 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/Face/face.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 376f2454ea73118498087bcb5ea3308c 3 | timeCreated: 1474448445 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/hair02.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: hair02 10 | m_Shader: {fileID: 4800000, guid: b35a2abbdd5b15d4ca40103088758eac, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _FalloffSampler: 42 | m_Texture: {fileID: 2800000, guid: 53ba3cfb9b246fd4f9098e204d897e60, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MainTex: 46 | m_Texture: {fileID: 2800000, guid: ba225ccae25d0df4581f3f7e5d21e4b9, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MetallicGlossMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _OcclusionMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _ParallaxMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _RimLightSampler: 62 | m_Texture: {fileID: 2800000, guid: 11011750921e10846abfad2b18cadbca, type: 3} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Floats: 66 | - _BumpScale: 1 67 | - _Cutoff: 0.5 68 | - _DepthBias: 0.00012 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 0 71 | - _EdgeThickness: 2 72 | - _GlossMapScale: 1 73 | - _Glossiness: 0.5 74 | - _GlossyReflections: 1 75 | - _Metallic: 0 76 | - _Mode: 0 77 | - _OcclusionStrength: 1 78 | - _Parallax: 0.02 79 | - _SmoothnessTextureChannel: 0 80 | - _SpecularHighlights: 1 81 | - _SrcBlend: 1 82 | - _UVSec: 0 83 | - _ZWrite: 1 84 | m_Colors: 85 | - _Color: {r: 1, g: 1, b: 1, a: 1} 86 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 87 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 88 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/hair02.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea0e7354509ad2447a4c31e7b5bdff23 3 | timeCreated: 1476241753 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/skin.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: skin 10 | m_Shader: {fileID: 4800000, guid: b35a2abbdd5b15d4ca40103088758eac, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _FalloffSampler: 42 | m_Texture: {fileID: 2800000, guid: 53ba3cfb9b246fd4f9098e204d897e60, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MainTex: 46 | m_Texture: {fileID: 2800000, guid: f769d3d8854002d4ab7eb9e9fbe5bbed, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MetallicGlossMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _OcclusionMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _ParallaxMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _RimLightSampler: 62 | m_Texture: {fileID: 2800000, guid: 11011750921e10846abfad2b18cadbca, type: 3} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Floats: 66 | - _BumpScale: 1 67 | - _Cutoff: 0.5 68 | - _DepthBias: 0.00012 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 0 71 | - _EdgeThickness: 2 72 | - _GlossMapScale: 1 73 | - _Glossiness: 0.5 74 | - _GlossyReflections: 1 75 | - _Metallic: 0 76 | - _Mode: 0 77 | - _OcclusionStrength: 1 78 | - _Parallax: 0.02 79 | - _SmoothnessTextureChannel: 0 80 | - _SpecularHighlights: 1 81 | - _SrcBlend: 1 82 | - _UVSec: 0 83 | - _ZWrite: 1 84 | m_Colors: 85 | - _Color: {r: 1, g: 1, b: 1, a: 1} 86 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 87 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 88 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Skin&Hair&Face/skin.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54e809e248f25bc47ba8bc38cc93abb8 3 | timeCreated: 1475584798 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Weapon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa881d94a63cc9543bb91d769a186728 3 | folderAsset: yes 4 | timeCreated: 1490762839 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Weapon/spear_blackiron.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: spear_blackiron 10 | m_Shader: {fileID: 4800000, guid: 00262b50562beb14cbab9b52bced4f9f, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _EnvMapSampler: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _FalloffSampler: 46 | m_Texture: {fileID: 2800000, guid: fb21edd4942fe494c9db6df7c4256d59, type: 3} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 2800000, guid: 87b6be89ab23946468e364229d91a098, type: 3} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _NormalMapSampler: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _OcclusionMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | - _ParallaxMap: 66 | m_Texture: {fileID: 0} 67 | m_Scale: {x: 1, y: 1} 68 | m_Offset: {x: 0, y: 0} 69 | - _RimLightSampler: 70 | m_Texture: {fileID: 2800000, guid: 11011750921e10846abfad2b18cadbca, type: 3} 71 | m_Scale: {x: 1, y: 1} 72 | m_Offset: {x: 0, y: 0} 73 | - _SpecularReflectionSampler: 74 | m_Texture: {fileID: 0} 75 | m_Scale: {x: 1, y: 1} 76 | m_Offset: {x: 0, y: 0} 77 | m_Floats: 78 | - _BumpScale: 1 79 | - _Cutoff: 0.5 80 | - _DepthBias: 0.00012 81 | - _DetailNormalMapScale: 1 82 | - _DstBlend: 0 83 | - _EdgeThickness: 2 84 | - _GlossMapScale: 1 85 | - _Glossiness: 0.5 86 | - _GlossyReflections: 1 87 | - _Metallic: 0 88 | - _Mode: 0 89 | - _OcclusionStrength: 1 90 | - _Parallax: 0.02 91 | - _SmoothnessTextureChannel: 0 92 | - _SpecularHighlights: 1 93 | - _SpecularPower: 20 94 | - _SrcBlend: 1 95 | - _UVSec: 0 96 | - _ZWrite: 1 97 | m_Colors: 98 | - _Color: {r: 1, g: 1, b: 1, a: 1} 99 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 100 | - _ShadowColor: {r: 0.8, g: 0.8, b: 1, a: 1} 101 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Materials/Weapon/spear_blackiron.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 630a6bf37ababed4cbf680a8249629b9 3 | timeCreated: 1490880432 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e7560a4fec4c0e47815b6a777346915 3 | folderAsset: yes 4 | timeCreated: 1476242401 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab/Helm_iron.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1812045325801348} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1812045325801348 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 5 20 | m_Component: 21 | - component: {fileID: 4135952990217036} 22 | - component: {fileID: 33870482907645954} 23 | - component: {fileID: 23920224560180404} 24 | m_Layer: 0 25 | m_Name: Helm_iron 26 | m_TagString: Untagged 27 | m_Icon: {fileID: 0} 28 | m_NavMeshLayer: 0 29 | m_StaticEditorFlags: 0 30 | m_IsActive: 1 31 | --- !u!4 &4135952990217036 32 | Transform: 33 | m_ObjectHideFlags: 1 34 | m_PrefabParentObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | m_GameObject: {fileID: 1812045325801348} 37 | m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} 38 | m_LocalPosition: {x: -1.5606223e-17, y: 0.7363852, z: -0.019705698} 39 | m_LocalScale: {x: 1, y: 1, z: 1} 40 | m_Children: [] 41 | m_Father: {fileID: 0} 42 | m_RootOrder: 0 43 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 44 | --- !u!23 &23920224560180404 45 | MeshRenderer: 46 | m_ObjectHideFlags: 1 47 | m_PrefabParentObject: {fileID: 0} 48 | m_PrefabInternal: {fileID: 100100000} 49 | m_GameObject: {fileID: 1812045325801348} 50 | m_Enabled: 1 51 | m_CastShadows: 1 52 | m_ReceiveShadows: 1 53 | m_DynamicOccludee: 1 54 | m_MotionVectors: 1 55 | m_LightProbeUsage: 1 56 | m_ReflectionProbeUsage: 1 57 | m_Materials: 58 | - {fileID: 2100000, guid: db6940c15197d0a4699926f8f4584a40, type: 2} 59 | m_StaticBatchInfo: 60 | firstSubMesh: 0 61 | subMeshCount: 0 62 | m_StaticBatchRoot: {fileID: 0} 63 | m_ProbeAnchor: {fileID: 0} 64 | m_LightProbeVolumeOverride: {fileID: 0} 65 | m_ScaleInLightmap: 1 66 | m_PreserveUVs: 0 67 | m_IgnoreNormalsForChartDetection: 0 68 | m_ImportantGI: 0 69 | m_StitchLightmapSeams: 0 70 | m_SelectedEditorRenderState: 3 71 | m_MinimumChartSize: 4 72 | m_AutoUVMaxDistance: 0.5 73 | m_AutoUVMaxAngle: 89 74 | m_LightmapParameters: {fileID: 0} 75 | m_SortingLayerID: 0 76 | m_SortingLayer: 0 77 | m_SortingOrder: 0 78 | --- !u!33 &33870482907645954 79 | MeshFilter: 80 | m_ObjectHideFlags: 1 81 | m_PrefabParentObject: {fileID: 0} 82 | m_PrefabInternal: {fileID: 100100000} 83 | m_GameObject: {fileID: 1812045325801348} 84 | m_Mesh: {fileID: 4300000, guid: cef99805674a2934bb5c0f7d1d06c5da, type: 3} 85 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab/Helm_iron.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76b65a0a6b4aa7c48a052e68880e926e 3 | timeCreated: 1490881208 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab/M02.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17882321af8855449b83f8d109800a13 3 | timeCreated: 1490881645 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab/Spear_blackiron.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1131176333150276} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1131176333150276 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 5 20 | m_Component: 21 | - component: {fileID: 4582407384842724} 22 | - component: {fileID: 33605990886581944} 23 | - component: {fileID: 23956293879795978} 24 | m_Layer: 0 25 | m_Name: Spear_blackiron 26 | m_TagString: Untagged 27 | m_Icon: {fileID: 0} 28 | m_NavMeshLayer: 0 29 | m_StaticEditorFlags: 0 30 | m_IsActive: 1 31 | --- !u!4 &4582407384842724 32 | Transform: 33 | m_ObjectHideFlags: 1 34 | m_PrefabParentObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | m_GameObject: {fileID: 1131176333150276} 37 | m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} 38 | m_LocalPosition: {x: -0, y: 0, z: 0} 39 | m_LocalScale: {x: 1, y: 1, z: 1} 40 | m_Children: [] 41 | m_Father: {fileID: 0} 42 | m_RootOrder: 0 43 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 44 | --- !u!23 &23956293879795978 45 | MeshRenderer: 46 | m_ObjectHideFlags: 1 47 | m_PrefabParentObject: {fileID: 0} 48 | m_PrefabInternal: {fileID: 100100000} 49 | m_GameObject: {fileID: 1131176333150276} 50 | m_Enabled: 1 51 | m_CastShadows: 1 52 | m_ReceiveShadows: 1 53 | m_DynamicOccludee: 1 54 | m_MotionVectors: 1 55 | m_LightProbeUsage: 1 56 | m_ReflectionProbeUsage: 1 57 | m_Materials: 58 | - {fileID: 2100000, guid: 630a6bf37ababed4cbf680a8249629b9, type: 2} 59 | m_StaticBatchInfo: 60 | firstSubMesh: 0 61 | subMeshCount: 0 62 | m_StaticBatchRoot: {fileID: 0} 63 | m_ProbeAnchor: {fileID: 0} 64 | m_LightProbeVolumeOverride: {fileID: 0} 65 | m_ScaleInLightmap: 1 66 | m_PreserveUVs: 0 67 | m_IgnoreNormalsForChartDetection: 0 68 | m_ImportantGI: 0 69 | m_StitchLightmapSeams: 0 70 | m_SelectedEditorRenderState: 3 71 | m_MinimumChartSize: 4 72 | m_AutoUVMaxDistance: 0.5 73 | m_AutoUVMaxAngle: 89 74 | m_LightmapParameters: {fileID: 0} 75 | m_SortingLayerID: 0 76 | m_SortingLayer: 0 77 | m_SortingOrder: 0 78 | --- !u!33 &33605990886581944 79 | MeshFilter: 80 | m_ObjectHideFlags: 1 81 | m_PrefabParentObject: {fileID: 0} 82 | m_PrefabInternal: {fileID: 100100000} 83 | m_GameObject: {fileID: 1131176333150276} 84 | m_Mesh: {fileID: 4300000, guid: c340948c9cf0b3d4c8b44b2519e1ee69, type: 3} 85 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Prefab/Spear_blackiron.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e1159a384a56ac47abdfee23397c663 3 | timeCreated: 1490881204 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/README.txt: -------------------------------------------------------------------------------- 1 | Animations Rig source = Avatar_for_Animation 2 | 3 | 4 | Please note that character outline may look weird in scene view but will render correctly in game view 5 | depend on shader setting - outline thickness and the rendering camera setting - distance and field of view 6 | so adjusting these values will ensure the model look best on your setup. 7 | ---------------------------------------------- 8 | 9 | If you found any problem, please contact us. 10 | Mail : akaraphob_sur@suriyun.com 11 | Site : www.suriyun.com 12 | 13 | ---------------------------------------------- 14 | Shader by Unitychan! 15 | Download last version of shader http://unity-chan.com/ 16 | 17 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/README.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f5619f4d3c4cd645ae97394e6637bd1 3 | timeCreated: 1490852221 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9960befd0de5ec248843deb3ea57131b 3 | folderAsset: yes 4 | timeCreated: 1488647326 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Scripts/AnimatorController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System; 5 | 6 | public class AnimatorController : MonoBehaviour 7 | { 8 | 9 | public Animator[] animators; 10 | 11 | public void SwapVisibility(GameObject obj) 12 | { 13 | obj.SetActive(!obj.activeSelf); 14 | } 15 | 16 | 17 | public void SetFloat(string parameter = "key,value") 18 | { 19 | char[] separator = { ',', ';' }; 20 | string[] param = parameter.Split(separator); 21 | 22 | string name = param[0]; 23 | float value = (float)Convert.ToDouble(param[1]); 24 | 25 | Debug.Log(name + " " + value); 26 | 27 | foreach (Animator a in animators) 28 | { 29 | a.SetFloat(name, value); 30 | } 31 | } 32 | public void SetInt(string parameter = "key,value") 33 | { 34 | char[] separator = { ',', ';' }; 35 | string[] param = parameter.Split(separator); 36 | 37 | string name = param[0]; 38 | int value = Convert.ToInt32(param[1]); 39 | 40 | Debug.Log(name + " " + value); 41 | 42 | foreach (Animator a in animators) 43 | { 44 | a.SetInteger(name, value); 45 | } 46 | } 47 | 48 | public void SetBool(string parameter = "key,value") 49 | { 50 | char[] separator = { ',', ';' }; 51 | string[] param = parameter.Split(separator); 52 | 53 | string name = param[0]; 54 | bool value = Convert.ToBoolean(param[1]); 55 | 56 | Debug.Log(name + " " + value); 57 | 58 | foreach (Animator a in animators) 59 | { 60 | a.SetBool(name, value); 61 | } 62 | } 63 | 64 | public void SetTrigger(string parameter = "key,value") 65 | { 66 | char[] separator = { ',', ';' }; 67 | string[] param = parameter.Split(separator); 68 | 69 | string name = param[0]; 70 | 71 | Debug.Log(name); 72 | 73 | foreach (Animator a in animators) 74 | { 75 | a.SetTrigger(name); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Scripts/AnimatorController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db96f88aa5ffa5f4fa0f132f9f27ca85 3 | timeCreated: 1464267983 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Scripts/MouseOrbit.js: -------------------------------------------------------------------------------- 1 | var target : Transform; 2 | var distance = 10.0; 3 | 4 | var xSpeed = 250.0; 5 | var ySpeed = 120.0; 6 | 7 | var yMinLimit = -20; 8 | var yMaxLimit = 80; 9 | 10 | private var x = 0.0; 11 | private var y = 0.0; 12 | 13 | @script AddComponentMenu("Camera-Control/Mouse Orbit") 14 | 15 | function Start () { 16 | var angles = transform.eulerAngles; 17 | x = angles.y; 18 | y = angles.x; 19 | 20 | // Make the rigid body not change rotation 21 | if (GetComponent.()) 22 | GetComponent.().freezeRotation = true; 23 | } 24 | 25 | function LateUpdate () { 26 | if (target) { 27 | x += Input.GetAxis("Mouse X") * xSpeed * 0.02; 28 | y -= Input.GetAxis("Mouse Y") * ySpeed * 0.02; 29 | 30 | y = ClampAngle(y, yMinLimit, yMaxLimit); 31 | 32 | var rotation = Quaternion.Euler(y, x, 0); 33 | var position = rotation * Vector3(0.0, 0.0, -distance) + target.position; 34 | 35 | transform.rotation = rotation; 36 | transform.position = position; 37 | } 38 | } 39 | 40 | static function ClampAngle (angle : float, min : float, max : float) { 41 | if (angle < -360) 42 | angle += 360; 43 | if (angle > 360) 44 | angle -= 360; 45 | return Mathf.Clamp (angle, min, max); 46 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Scripts/MouseOrbit.js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27acebc9ad1110f6d00074c88d76c639 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a23af5421aac7da4aa93bbcac37048c0 3 | folderAsset: yes 4 | timeCreated: 1474449044 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/M02.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e67d7199eb36614cbb89b83b46c1c13 3 | folderAsset: yes 4 | timeCreated: 1490881328 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/M02/M02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Texture/M02/M02.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/M02/M02.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07312bef57b4da140a84729247338a26 3 | timeCreated: 1475566609 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: 2 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/M02/spear_blackiron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Texture/M02/spear_blackiron.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/M02/spear_blackiron.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87b6be89ab23946468e364229d91a098 3 | timeCreated: 1490880465 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | sRGBTexture: 0 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 2 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | - buildTarget: iPhone 70 | maxTextureSize: 2048 71 | textureFormat: -1 72 | textureCompression: 1 73 | compressionQuality: 50 74 | crunchedCompression: 0 75 | allowsAlphaSplitting: 0 76 | overridden: 0 77 | - buildTarget: Android 78 | maxTextureSize: 2048 79 | textureFormat: -1 80 | textureCompression: 1 81 | compressionQuality: 50 82 | crunchedCompression: 0 83 | allowsAlphaSplitting: 0 84 | overridden: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | spritePackingTag: 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1b6e2e97eb9e794082237bee56031a3 3 | folderAsset: yes 4 | timeCreated: 1476242311 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Face.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c886746415d6c8f4780daf0f01f95c26 3 | folderAsset: yes 4 | timeCreated: 1490761655 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Face/Face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Face/Face.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Face/Face.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a88ee308717252647b33d009b6dca9e2 3 | timeCreated: 1474448462 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: 2 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Skin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Skin.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/Skin.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f769d3d8854002d4ab7eb9e9fbe5bbed 3 | timeCreated: 1490769699 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | sRGBTexture: 0 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 2 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | - buildTarget: iPhone 70 | maxTextureSize: 2048 71 | textureFormat: -1 72 | textureCompression: 1 73 | compressionQuality: 50 74 | crunchedCompression: 0 75 | allowsAlphaSplitting: 0 76 | overridden: 0 77 | - buildTarget: Android 78 | maxTextureSize: 2048 79 | textureFormat: -1 80 | textureCompression: 1 81 | compressionQuality: 50 82 | crunchedCompression: 0 83 | allowsAlphaSplitting: 0 84 | overridden: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | spritePackingTag: 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/hair02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/hair02.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/Texture/Skin&Hair&Face/hair02.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba225ccae25d0df4581f3f7e5d21e4b9 3 | timeCreated: 1476242276 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: 2 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d61905f468c5ed439818b0a592f0b04 3 | folderAsset: yes 4 | timeCreated: 1488647325 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/Floor_creation2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UI/Floor_creation2.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/Floor_creation2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c80a4253c6284824d9da5281a7429b38 3 | timeCreated: 1490775402 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | sRGBTexture: 0 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 2 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | - buildTarget: iPhone 70 | maxTextureSize: 2048 71 | textureFormat: -1 72 | textureCompression: 1 73 | compressionQuality: 50 74 | crunchedCompression: 0 75 | allowsAlphaSplitting: 0 76 | overridden: 0 77 | - buildTarget: Android 78 | maxTextureSize: 2048 79 | textureFormat: -1 80 | textureCompression: 1 81 | compressionQuality: 50 82 | crunchedCompression: 0 83 | allowsAlphaSplitting: 0 84 | overridden: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | spritePackingTag: 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/anim_button1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UI/anim_button1.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/anim_button1.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51eefa83fcba3224ea26f21c49c5697d 3 | timeCreated: 1449803834 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: .25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 8 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 512 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 1 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: .5, y: .5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 1 48 | textureType: 8 49 | buildTargetSettings: [] 50 | spriteSheet: 51 | sprites: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/animation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UI/animation.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/animation.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4fe1c80a49dafb40ada403037c4a432 3 | timeCreated: 1449815707 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: .25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 8 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 512 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 16 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 1 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: .5, y: .5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 1 48 | textureType: 8 49 | buildTargetSettings: [] 50 | spriteSheet: 51 | sprites: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UI/frame.png -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UI/frame.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46223ba009268c94c935ed31f5c3fae5 3 | timeCreated: 1449815360 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: .25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 8 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 1024 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 16 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 1 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: .5, y: .5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 1 48 | textureType: 8 49 | buildTargetSettings: [] 50 | spriteSheet: 51 | sprites: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f32de6ac77fa645458519171d40df682 3 | folderAsset: yes 4 | timeCreated: 1472915805 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_CLOTH1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_CLOTH1.tga -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_CLOTH1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb21edd4942fe494c9db6df7c4256d59 3 | timeCreated: 1474531520 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_RIM1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_RIM1.tga -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_RIM1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11011750921e10846abfad2b18cadbca 3 | timeCreated: 1474531520 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_SKIN1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_SKIN1.tga -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/FO_SKIN1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53ba3cfb9b246fd4f9098e204d897e60 3 | timeCreated: 1474531520 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5f4979e7944d9d48aa62d1c31e3529c 3 | folderAsset: yes 4 | timeCreated: 1454041765 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/CharaMain.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9a12356e1f4e2c408ce3fee3a490654 3 | timeCreated: 1458276847 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/CharaOutline.cginc: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' 2 | 3 | // Outline shader 4 | // アウトラインシェーダ 5 | 6 | // Editable parameters 7 | // 編集可能パラメータ 8 | 9 | // Material color 10 | // マテリアルの色 11 | float4 _Color; 12 | 13 | // Light color 14 | // 光源の色 15 | float4 _LightColor0; 16 | 17 | // Outline thickness 18 | // アウトラインの太さ 19 | float _EdgeThickness = 1.0; 20 | 21 | // Depth bias to help prevent z-fighting 22 | // Zファイティングを緩和するための深度バイアス値 23 | float _DepthBias = 0.00012; 24 | 25 | float4 _MainTex_ST; 26 | 27 | // Main texture 28 | // メインテクスチャ 29 | sampler2D _MainTex; 30 | 31 | struct v2f 32 | { 33 | float4 pos : SV_POSITION; 34 | float2 UV : TEXCOORD0; 35 | }; 36 | 37 | // Float types 38 | #define float_t half 39 | #define float2_t half2 40 | #define float3_t half3 41 | #define float4_t half4 42 | 43 | // Amount to scale the distance from the camera into a value to scale the outline by. Tweak as desired 44 | // カメラからの距離をアウトラインの太さに変換するための値。お好きなように調整してみてください 45 | #define OUTLINE_DISTANCE_SCALE (0.0016) 46 | // Minimum and maximum outline thicknesses (Before multiplying by _EdgeThickness) 47 | // 太さの上限と下限(_EdgeThicknessをかける前の制限) 48 | #define OUTLINE_NORMAL_SCALE_MIN (0.003) 49 | #define OUTLINE_NORMAL_SCALE_MAX (0.030) 50 | 51 | // Vertex shader 52 | // 頂点シェーダ 53 | v2f vert(appdata_base v) 54 | { 55 | float4 projPos = UnityObjectToClipPos(v.vertex); 56 | float4 projNormal = normalize(UnityObjectToClipPos(float4(v.normal, 0))); 57 | 58 | float distanceToCamera = OUTLINE_DISTANCE_SCALE * projPos.z; 59 | float normalScale = _EdgeThickness * 60 | lerp(OUTLINE_NORMAL_SCALE_MIN, OUTLINE_NORMAL_SCALE_MAX, distanceToCamera); 61 | 62 | v2f o; 63 | o.pos = projPos + normalScale * projNormal; 64 | #ifdef UNITY_REVERSED_Z 65 | o.pos.z -= _DepthBias; 66 | #else 67 | o.pos.z += _DepthBias; 68 | #endif 69 | o.UV = v.texcoord.xy; 70 | 71 | return o; 72 | } 73 | 74 | // Get the maximum component of a 3-component color 75 | // RGB色の最大の値を取得 76 | inline float_t GetMaxComponent(float3_t inColor) 77 | { 78 | return max(max(inColor.r, inColor.g), inColor.b); 79 | } 80 | 81 | // Function to fake setting the saturation of a color. Not a true HSL computation. 82 | // 色の彩度を擬似的に調整するための関数。本当のHSL計算ではありません。 83 | inline float3_t SetSaturation(float3_t inColor, float_t inSaturation) 84 | { 85 | // Compute the saturated color to be one where all components smaller than the max are set to 0. 86 | // Note that this is just an approximation. 87 | // 彩度が一番高い色をRGBコンポーネントの一番高い値より低い値が全部0になっているものとします。 88 | // これはあくまで擬似計算。 89 | float_t maxComponent = GetMaxComponent(inColor) - 0.0001; 90 | float3_t saturatedColor = step(maxComponent.rrr, inColor) * inColor; 91 | return lerp(inColor, saturatedColor, inSaturation); 92 | } 93 | 94 | // Outline color parameters. Tweak as desired 95 | // アウトラインの色を調整するための値。お好きなように調整して下さい 96 | #define SATURATION_FACTOR 0.6 97 | #define BRIGHTNESS_FACTOR 0.8 98 | 99 | // Fragment shader 100 | // フラグメントシェーダ 101 | float4_t frag(v2f i) : COLOR 102 | { 103 | float4_t mainMapColor = tex2D(_MainTex, i.UV); 104 | 105 | float3_t outlineColor = BRIGHTNESS_FACTOR 106 | * SetSaturation(mainMapColor.rgb, SATURATION_FACTOR) 107 | * mainMapColor.rgb; 108 | 109 | return float4_t(outlineColor, mainMapColor.a) * _Color * _LightColor0; 110 | } 111 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/CharaOutline.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92f50eca565e9cf46af32431752a116d 3 | timeCreated: 1458276847 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/CharaSkin.cginc: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' 2 | 3 | // Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' 4 | 5 | // Character skin shader 6 | // Includes falloff shadow 7 | 8 | #define ENABLE_CAST_SHADOWS 9 | 10 | // Material parameters 11 | float4 _Color; 12 | float4 _ShadowColor; 13 | float4 _LightColor0; 14 | float4 _MainTex_ST; 15 | 16 | // Textures 17 | sampler2D _MainTex; 18 | sampler2D _FalloffSampler; 19 | sampler2D _RimLightSampler; 20 | 21 | // Constants 22 | #define FALLOFF_POWER 1.0 23 | 24 | #ifdef ENABLE_CAST_SHADOWS 25 | 26 | // Structure from vertex shader to fragment shader 27 | struct v2f 28 | { 29 | float4 pos : SV_POSITION; 30 | LIGHTING_COORDS( 0, 1 ) 31 | float3 normal : TEXCOORD2; 32 | float2 uv : TEXCOORD3; 33 | float3 eyeDir : TEXCOORD4; 34 | float3 lightDir : TEXCOORD5; 35 | }; 36 | 37 | #else 38 | 39 | // Structure from vertex shader to fragment shader 40 | struct v2f 41 | { 42 | float4 pos : SV_POSITION; 43 | float3 normal : TEXCOORD0; 44 | float2 uv : TEXCOORD1; 45 | float3 eyeDir : TEXCOORD2; 46 | float3 lightDir : TEXCOORD3; 47 | }; 48 | 49 | #endif 50 | 51 | // Float types 52 | #define float_t half 53 | #define float2_t half2 54 | #define float3_t half3 55 | #define float4_t half4 56 | 57 | // Vertex shader 58 | v2f vert( appdata_base v ) 59 | { 60 | v2f o; 61 | o.pos = UnityObjectToClipPos( v.vertex ); 62 | o.uv = TRANSFORM_TEX( v.texcoord.xy, _MainTex ); 63 | o.normal = normalize( mul( unity_ObjectToWorld, float4_t( v.normal, 0 ) ).xyz ); 64 | 65 | // Eye direction vector 66 | float4_t worldPos = mul( unity_ObjectToWorld, v.vertex ); 67 | o.eyeDir = normalize( _WorldSpaceCameraPos - worldPos ); 68 | 69 | o.lightDir = WorldSpaceLightDir( v.vertex ); 70 | 71 | #ifdef ENABLE_CAST_SHADOWS 72 | TRANSFER_VERTEX_TO_FRAGMENT( o ); 73 | #endif 74 | 75 | return o; 76 | } 77 | 78 | // Fragment shader 79 | float4 frag( v2f i ) : COLOR 80 | { 81 | float4_t diffSamplerColor = tex2D( _MainTex, i.uv ); 82 | 83 | // Falloff. Convert the angle between the normal and the camera direction into a lookup for the gradient 84 | float_t normalDotEye = dot( i.normal, i.eyeDir ); 85 | float_t falloffU = clamp( 1 - abs( normalDotEye ), 0.02, 0.98 ); 86 | float4_t falloffSamplerColor = FALLOFF_POWER * tex2D( _FalloffSampler, float2( falloffU, 0.25f ) ); 87 | float3_t combinedColor = lerp( diffSamplerColor.rgb, falloffSamplerColor.rgb * diffSamplerColor.rgb, falloffSamplerColor.a ); 88 | 89 | // Rimlight 90 | float_t rimlightDot = saturate( 0.5 * ( dot( i.normal, i.lightDir ) + 1.0 ) ); 91 | falloffU = saturate( rimlightDot * falloffU ); 92 | //falloffU = saturate( ( rimlightDot * falloffU - 0.5 ) * 32.0 ); 93 | falloffU = tex2D( _RimLightSampler, float2( falloffU, 0.25f ) ).r; 94 | float3_t lightColor = diffSamplerColor.rgb * 0.5; // * 2.0; 95 | combinedColor += falloffU * lightColor; 96 | 97 | #ifdef ENABLE_CAST_SHADOWS 98 | // Cast shadows 99 | float3_t shadowColor = _ShadowColor.rgb * combinedColor; 100 | float_t attenuation = saturate( 2.0 * LIGHT_ATTENUATION( i ) - 1.0 ); 101 | combinedColor = lerp( shadowColor, combinedColor, attenuation ); 102 | #endif 103 | 104 | return float4_t( combinedColor, diffSamplerColor.a ) * _Color * _LightColor0; 105 | } 106 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/CharaSkin.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b7c6b37ecca1ed428f5bf17445737b1 3 | timeCreated: 1458276846 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_akarami_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Blush - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | ZWrite Off 17 | Tags 18 | { 19 | "Queue"="Geometry+3" 20 | "IgnoreProjector"="True" 21 | "RenderType"="Overlay" 22 | "LightMode"="ForwardBase" 23 | } 24 | 25 | Pass 26 | { 27 | Cull Back 28 | ZTest LEqual 29 | CGPROGRAM 30 | #pragma multi_compile_fwdbase 31 | #pragma target 3.0 32 | #pragma vertex vert 33 | #pragma fragment frag 34 | #include "UnityCG.cginc" 35 | #include "AutoLight.cginc" 36 | #include "CharaSkin.cginc" 37 | ENDCG 38 | } 39 | } 40 | 41 | FallBack "Transparent/Cutout/Diffuse" 42 | } 43 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_akarami_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0298b868476735f41857e9ba8f0d4cd1 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eye.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eye" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Tags 16 | { 17 | "RenderType"="Opaque" 18 | "Queue"="Geometry" 19 | "LightMode"="ForwardBase" 20 | } 21 | 22 | Pass 23 | { 24 | Cull Back 25 | ZTest LEqual 26 | CGPROGRAM 27 | #pragma multi_compile_fwdbase 28 | #pragma target 3.0 29 | #pragma vertex vert 30 | #pragma fragment frag 31 | #include "UnityCG.cginc" 32 | #include "AutoLight.cginc" 33 | #include "CharaSkin.cginc" 34 | ENDCG 35 | } 36 | } 37 | 38 | FallBack "Transparent/Cutout/Diffuse" 39 | } 40 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eye.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abaf2020b803b6847b5c081ed22c05c5 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eye_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eye - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Geometry+1" // Transparent+1" 19 | "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cginc" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eye_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf944057124b80b4e84496139e3b072c 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eyelash_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eyelash - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Geometry+2" 19 | // "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cginc" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_eyelash_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9627902a73805264c818754ecb22c8f9 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_fuku.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Clothing" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Back 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cginc" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cginc" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_fuku.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00262b50562beb14cbab9b52bced4f9f 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_fuku_ds.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Clothing - Double-sided" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Off 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cginc" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cginc" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_fuku_ds.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96d05de60c5f7474491f9f94568cf623 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hada.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Skin" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _EdgeThickness ("Outline Thickness", Float) = 1 8 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 9 | 10 | _MainTex ("Diffuse", 2D) = "white" {} 11 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 12 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 13 | } 14 | 15 | SubShader 16 | { 17 | Tags 18 | { 19 | "RenderType"="Opaque" 20 | "Queue"="Geometry" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cginc" 36 | ENDCG 37 | } 38 | 39 | Pass 40 | { 41 | Cull Front 42 | ZTest Less 43 | CGPROGRAM 44 | #pragma target 3.0 45 | #pragma vertex vert 46 | #pragma fragment frag 47 | #include "UnityCG.cginc" 48 | #include "CharaOutline.cginc" 49 | ENDCG 50 | } 51 | 52 | } 53 | 54 | FallBack "Transparent/Cutout/Diffuse" 55 | } 56 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hada.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b35a2abbdd5b15d4ca40103088758eac 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hada_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Skin - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Transparent+1" 19 | "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cginc" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hada_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a95784c68f03494d8c7911e15fab82a 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hair.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Hair" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Back 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cginc" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cginc" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hair.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe3954a9664afb042a2af588b53680b0 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hair_ds.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Hair - Double-sided" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Off 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cginc" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cginc" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/Unitychan_chara_hair_ds.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 235ca6f7bbc0ead4990f386a7ec24292 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/readme.txt: -------------------------------------------------------------------------------- 1 | ユニティちゃんシェーダー Ver. 1.2.4 (Unity 5.4/5.5β 対応版) 2 | 2016/09/04 Unity Technologies Japan 3 | 4 | 動作環境:Unity 5.3.6以降 5 | 6 | Unity 5.4対応版。ユニティちゃんシェーダーがエラーを起こしてピンク色になっている時に当てるパッチです。 7 | Unity 5.4で開いてしまったプロジェクトを、再度Unity5.3.xで開いた時に、同様のエラーが出ている場合にも適用できます。 8 | さらに、Windowsの一部環境でUnity5.5βをご利用の際に、アウトラインの不具合が出る件に対処しています。 9 | 10 | 【修正内容】 11 | Unity5.5βで行われた、DirectX11等でのReversed Zへの仕様変更に基づく、アウトラインでのZ深度の精度変化に対応しました。 12 | ----------------- 13 | ユニティちゃんシェーダー Ver. 1.2.4 (Unity 5.4 対応版) 14 | シェーダーインクルードファイルの拡張子を修正。 15 | それに合わせてシェーダー内の記述も修正。 16 | ------------------ 17 | ユニティちゃんシェーダー Ver. 1.2.2(iOS METAL対応版) 18 | 2015/03/17 Unity Technologies Japan 19 | 20 | 21 | 22 | Ver1.2.1で一部モバイル環境で見られるアウトラインのZファイティングを改善したバージョンに、iOS METAL対応を追加したバージョンです。 23 | 24 | 本シェーダーを利用する場合、プロジェクトはUnity 4.6.3以降である必要があります。 25 | 26 | 従来のユニティちゃんシェーダーに上書きをする形で使用してください。 27 | ------------------- 28 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/Suriyun/UnityChanShader/Shader/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca50fa9b4a8a80b4e803a18131e1df68 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/VideoSample.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/ExtraSample/Models/VideoSample.mp4 -------------------------------------------------------------------------------- /Assets/ExtraSample/Models/VideoSample.mp4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d52c5a5d1ea7724ca8bded927ebae3e 3 | VideoClipImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | useLegacyImporter: 0 7 | quality: 0.5 8 | isColorLinear: 0 9 | frameRange: 0 10 | startFrame: -1 11 | endFrame: -1 12 | colorSpace: 0 13 | deinterlace: 0 14 | encodeAlpha: 0 15 | flipVertical: 0 16 | flipHorizontal: 0 17 | importAudio: 1 18 | targetSettings: {} 19 | userData: 20 | assetBundleName: 21 | assetBundleVariant: 22 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71e22207df5df584cbb96447f19bf91d 3 | folderAsset: yes 4 | timeCreated: 1513064694 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraHome.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e29de689e8079df4a953573e734f5e52 3 | timeCreated: 1495534299 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraInstantTrackerBrush.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40cc0822aca183c4d9746bd84dd8a29f 3 | timeCreated: 1522130360 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraInstantTrackerGrid.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df14cc52ff128a7438c980e3cbcfbbf3 3 | timeCreated: 1513952291 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraInstantTrackerMultiContents.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a4761f6e137bcb46aca27bfa98d0dbc 3 | timeCreated: 1522113693 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraVisualSLAMBrush.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42be71087508f2245a2ee01cfc379d6e 3 | timeCreated: 1522133449 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ExtraVisualSLAMKnight.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07749d68c95e335429135c79ec2e2120 3 | timeCreated: 1493734200 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/ImageTrackerVideoPlayer.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f05e84bc767940642b92d2f374168e1c 3 | timeCreated: 1494930178 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/InstantTraining.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b649ad6649de046bf8b1d425021e5dab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scenes/NoImageTrackerble.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 434d863fd7388414fa0ecddd6b006f30 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc2d6b385ffa19846aac3e7df0f93992 3 | folderAsset: yes 4 | timeCreated: 1513064701 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/BlocksTrackingEventHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class BlocksTrackingEventHandler : TrackingEventHandler 6 | { 7 | private int successCount = 0; 8 | 9 | UnityEngine.Video.VideoPlayer videoPlayer; 10 | 11 | private void Start() 12 | { 13 | videoPlayer = GetComponentInChildren(); 14 | } 15 | 16 | public override void OnTrackingSuccess() 17 | { 18 | successCount += 1; 19 | if (successCount < 3) 20 | { 21 | return; 22 | } 23 | 24 | if (videoPlayer != null) 25 | { 26 | if (!videoPlayer.isPrepared) 27 | { 28 | videoPlayer.Prepare(); 29 | return; 30 | } 31 | 32 | if (videoPlayer.isPrepared && !videoPlayer.isPlaying) 33 | { 34 | Debug.Log("Video Play"); 35 | videoPlayer.Play(); 36 | } 37 | } 38 | } 39 | 40 | public override void OnTrackingFail() 41 | { 42 | successCount = 0; 43 | 44 | if (videoPlayer != null) 45 | { 46 | if (videoPlayer.isPlaying) 47 | { 48 | Debug.Log("Video Stop"); 49 | videoPlayer.Pause(); 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/BlocksTrackingEventHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 915bd1153c5206f4b9191d46c0450be9 3 | timeCreated: 1536017437 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/CameraDeviceController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | using maxstAR; 6 | 7 | public class CameraDeviceController : MonoBehaviour 8 | { 9 | private bool cameraStartDone = false; 10 | 11 | void OnEnable() 12 | { 13 | StartCamera(); 14 | } 15 | 16 | void OnDisable() 17 | { 18 | StopCamera(); 19 | } 20 | 21 | void OnApplicationPause(bool pause) 22 | { 23 | if (pause) 24 | { 25 | StopCamera(); 26 | } 27 | else 28 | { 29 | StartCamera(); 30 | } 31 | } 32 | 33 | void OnDestroy() 34 | { 35 | StopCamera(); 36 | } 37 | 38 | void StartCamera() 39 | { 40 | if (!cameraStartDone) 41 | { 42 | Debug.Log("Unity StartCamera"); 43 | ResultCode result = CameraDevice.GetInstance().Start(); 44 | if (result == ResultCode.Success) 45 | { 46 | cameraStartDone = true; 47 | //CameraDevice.GetInstance().SetAutoWhiteBalanceLock(true); // For ODG-R7 preventing camera flickering 48 | } 49 | } 50 | } 51 | 52 | void StopCamera() 53 | { 54 | if (cameraStartDone) 55 | { 56 | Debug.Log("Unity StopCamera"); 57 | CameraDevice.GetInstance().Stop(); 58 | cameraStartDone = false; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/CameraDeviceController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b12b0b3573029874ab78f66d12731e66 3 | timeCreated: 1514512866 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExraInstantTrackerMultiContents.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c422bfa1978d93b43ad27da7ba52fb39 3 | timeCreated: 1522113742 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraImageTrackerKnight.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | using maxstAR; 6 | 7 | public class ExtraImageTrackerKnight : ARBehaviour 8 | { 9 | [SerializeField] 10 | private GameObject nonARObject = null; 11 | 12 | private Dictionary imageTrackablesMap = 13 | new Dictionary(); 14 | private bool startTrackerDone = false; 15 | 16 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 17 | 18 | void Awake() 19 | { 20 | Init(); 21 | 22 | cameraBackgroundBehaviour = FindObjectOfType(); 23 | if (cameraBackgroundBehaviour == null) 24 | { 25 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 26 | return; 27 | } 28 | } 29 | 30 | void Start() 31 | { 32 | imageTrackablesMap.Clear(); 33 | ImageTrackableBehaviour[] imageTrackables = FindObjectsOfType(); 34 | foreach (var trackable in imageTrackables) 35 | { 36 | imageTrackablesMap.Add(trackable.TrackableName, trackable); 37 | Debug.Log("Trackable add: " + trackable.TrackableName); 38 | } 39 | 40 | AddTrackerData(); 41 | } 42 | 43 | private void AddTrackerData() 44 | { 45 | foreach (var trackable in imageTrackablesMap) 46 | { 47 | if (trackable.Value.TrackerDataFileName.Length == 0) 48 | { 49 | continue; 50 | } 51 | 52 | if (trackable.Value.StorageType == StorageType.AbsolutePath) 53 | { 54 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName); 55 | } 56 | else 57 | { 58 | if (Application.platform == RuntimePlatform.Android) 59 | { 60 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName, true); 61 | } 62 | else 63 | { 64 | TrackerManager.GetInstance().AddTrackerData(Application.streamingAssetsPath + "/" + trackable.Value.TrackerDataFileName); 65 | } 66 | } 67 | } 68 | 69 | TrackerManager.GetInstance().LoadTrackerData(); 70 | } 71 | 72 | private void DisableAllTrackables() 73 | { 74 | foreach (var trackable in imageTrackablesMap) 75 | { 76 | trackable.Value.OnTrackFail(); 77 | } 78 | } 79 | 80 | void Update() 81 | { 82 | StartCamera(); 83 | 84 | if (!startTrackerDone) 85 | { 86 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE); 87 | startTrackerDone = true; 88 | } 89 | 90 | DisableAllTrackables(); 91 | 92 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 93 | TrackingResult trackingResult = state.GetTrackingResult(); 94 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 95 | 96 | for (int i = 0; i < trackingResult.GetCount(); i++) 97 | { 98 | Trackable trackable = trackingResult.GetTrackable(i); 99 | imageTrackablesMap[trackable.GetName()].OnTrackSuccess( 100 | trackable.GetId(), trackable.GetName(), trackable.GetPose()); 101 | } 102 | 103 | if (Application.platform != RuntimePlatform.WindowsEditor && 104 | Application.platform != RuntimePlatform.OSXEditor) 105 | { 106 | if (nonARObject != null) 107 | { 108 | if (Screen.orientation == ScreenOrientation.Portrait) 109 | { 110 | nonARObject.transform.rotation = Quaternion.Euler(new Vector3(0, -90.0f, 0)); 111 | } 112 | else 113 | { 114 | nonARObject.transform.rotation = Quaternion.identity; 115 | } 116 | } 117 | } 118 | } 119 | 120 | public void SetNormalMode() 121 | { 122 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 123 | } 124 | 125 | public void SetExtendedMode() 126 | { 127 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.EXTEND_TRACKING); 128 | } 129 | 130 | public void SetMultiMode() 131 | { 132 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.MULTI_TRACKING); 133 | } 134 | 135 | void OnApplicationPause(bool pause) 136 | { 137 | if (pause) 138 | { 139 | TrackerManager.GetInstance().StopTracker(); 140 | startTrackerDone = false; 141 | StopCamera(); 142 | } 143 | } 144 | 145 | void OnDestroy() 146 | { 147 | imageTrackablesMap.Clear(); 148 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 149 | TrackerManager.GetInstance().StopTracker(); 150 | TrackerManager.GetInstance().DestroyTracker(); 151 | StopCamera(); 152 | } 153 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraImageTrackerKnight.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28210c63bfa682c4d8614b15a411ae46 3 | timeCreated: 1488845630 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraInstantTrackerBrush.cs: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | Copyright 2017 Maxst, Inc. All Rights Reserved. 3 | ==============================================================================*/ 4 | 5 | using UnityEngine; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Text; 9 | using System.Runtime.InteropServices; 10 | using UnityEngine.UI; 11 | 12 | using maxstAR; 13 | 14 | public class ExtraInstantTrackerBrush : ARBehaviour 15 | { 16 | [SerializeField] 17 | private Text startBtnText = null; 18 | 19 | private bool startTrackerDone = false; 20 | private bool findSurfaceDone = false; 21 | 22 | private InstantTrackableBehaviour instantTrackable = null; 23 | private LineRenderer lineRenderer = null; 24 | 25 | private Vector3[] linePoint = new Vector3[100]; 26 | private int linePointCount = 0; 27 | 28 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 29 | 30 | void Awake() 31 | { 32 | Init(); 33 | 34 | cameraBackgroundBehaviour = FindObjectOfType(); 35 | if (cameraBackgroundBehaviour == null) 36 | { 37 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 38 | return; 39 | } 40 | } 41 | 42 | void Start() 43 | { 44 | instantTrackable = FindObjectOfType(); 45 | lineRenderer = instantTrackable.GetComponentInChildren(); 46 | } 47 | 48 | void Update() 49 | { 50 | StartCamera(); 51 | 52 | if (!startTrackerDone) 53 | { 54 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_INSTANT); 55 | SensorDevice.GetInstance().Start(); 56 | startTrackerDone = true; 57 | } 58 | 59 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 60 | TrackingResult trackingResult = state.GetTrackingResult(); 61 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 62 | 63 | if (trackingResult.GetCount() == 0) 64 | { 65 | instantTrackable.OnTrackFail(); 66 | return; 67 | } 68 | 69 | Trackable track = trackingResult.GetTrackable(0); 70 | instantTrackable.OnTrackSuccess(track.GetId(), track.GetName(), track.GetPose()); 71 | 72 | #if UNITY_EDITOR 73 | if (Input.GetMouseButtonDown(0)) 74 | { 75 | if (linePointCount < 100) 76 | { 77 | linePoint[linePointCount++] = TrackerManager.GetInstance().GetWorldPositionFromScreenCoordinate(Input.mousePosition); 78 | lineRenderer.positionCount = linePointCount; 79 | lineRenderer.SetPositions(linePoint); 80 | } 81 | } 82 | #else 83 | if (Input.touchCount > 0) 84 | { 85 | if (linePointCount < 100) { 86 | linePoint [linePointCount++] = TrackerManager.GetInstance ().GetWorldPositionFromScreenCoordinate (Input.GetTouch (0).position); 87 | lineRenderer.positionCount = linePointCount; 88 | lineRenderer.SetPositions (linePoint); 89 | } 90 | } 91 | 92 | if (Input.GetTouch (0).phase == TouchPhase.Ended) { 93 | linePointCount = 0; 94 | } 95 | #endif 96 | 97 | } 98 | 99 | void OnApplicationPause(bool pause) 100 | { 101 | if (pause) 102 | { 103 | SensorDevice.GetInstance().Stop(); 104 | TrackerManager.GetInstance().StopTracker(); 105 | startTrackerDone = false; 106 | StopCamera(); 107 | } 108 | } 109 | 110 | void OnDestroy() 111 | { 112 | SensorDevice.GetInstance().Stop(); 113 | TrackerManager.GetInstance().StopTracker(); 114 | TrackerManager.GetInstance().DestroyTracker(); 115 | StopCamera(); 116 | } 117 | 118 | public void OnClickStart() 119 | { 120 | if (!findSurfaceDone) 121 | { 122 | TrackerManager.GetInstance().FindSurface(); 123 | if (startBtnText != null) 124 | { 125 | startBtnText.text = "Stop Tracking"; 126 | } 127 | findSurfaceDone = true; 128 | } 129 | else 130 | { 131 | TrackerManager.GetInstance().QuitFindingSurface(); 132 | if (startBtnText != null) 133 | { 134 | startBtnText.text = "Start Tracking"; 135 | } 136 | findSurfaceDone = false; 137 | } 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraInstantTrackerBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 224a5c759328295429be939ba59851c6 3 | timeCreated: 1522130333 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraInstantTrackerGrid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e0b3564f3007a54f9b4edeb40537ed1 3 | timeCreated: 1513952991 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraVisualSLAMBrush.cs: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | Copyright 2017 Maxst, Inc. All Rights Reserved. 3 | ==============================================================================*/ 4 | 5 | using UnityEngine; 6 | using System.Collections.Generic; 7 | using System.Text; 8 | using System.Runtime.InteropServices; 9 | using System.IO; 10 | using UnityEngine.UI; 11 | 12 | using maxstAR; 13 | 14 | public class ExtraVisualSLAMBrush : ARBehaviour 15 | { 16 | [SerializeField] 17 | private Text startBtnText = null; 18 | 19 | private bool startTrackerDone = false; 20 | 21 | private Vector3 [] linePoint = new Vector3[100]; 22 | private int linePointCount = 0; 23 | 24 | private LineRenderer lineRenderer = null; 25 | 26 | private GameObject anchor = null; 27 | 28 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 29 | 30 | void Awake() 31 | { 32 | Init(); 33 | 34 | cameraBackgroundBehaviour = FindObjectOfType(); 35 | if (cameraBackgroundBehaviour == null) 36 | { 37 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 38 | return; 39 | } 40 | } 41 | 42 | void Start() 43 | { 44 | QualitySettings.vSyncCount = 0; 45 | Application.targetFrameRate = 60; 46 | 47 | Screen.orientation = ScreenOrientation.LandscapeLeft; 48 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_SLAM); 49 | 50 | lineRenderer = GetComponent (); 51 | 52 | anchor = GameObject.Find ("AnchorPoint"); 53 | } 54 | 55 | void Update() 56 | { 57 | StartCamera(); 58 | 59 | if (!startTrackerDone) 60 | { 61 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_SLAM); 62 | startTrackerDone = true; 63 | } 64 | 65 | EnableChildrenRenderer(false); 66 | 67 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 68 | TrackingResult trackingResult = state.GetTrackingResult(); 69 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 70 | 71 | if (trackingResult.GetCount() == 0) 72 | { 73 | return; 74 | } 75 | 76 | #if UNITY_EDITOR 77 | if (Input.GetMouseButtonDown(0)) 78 | { 79 | if (linePointCount < 100) { 80 | linePoint [linePointCount++] = anchor.transform.position; 81 | lineRenderer.positionCount = linePointCount; 82 | lineRenderer.SetPositions (linePoint); 83 | } 84 | } 85 | #else 86 | 87 | if (Input.touchCount > 0) 88 | { 89 | if (linePointCount < 100) { 90 | linePoint [linePointCount++] = anchor.transform.position; 91 | lineRenderer.positionCount = linePointCount; 92 | lineRenderer.SetPositions (linePoint); 93 | } 94 | } 95 | 96 | #endif 97 | 98 | 99 | EnableChildrenRenderer(true); 100 | } 101 | 102 | public void Reset() 103 | { 104 | linePointCount = 0; 105 | if (startBtnText != null) { 106 | startBtnText.text = "Start Tracking"; 107 | } 108 | } 109 | 110 | void OnApplicationPause(bool pause) 111 | { 112 | if (pause) 113 | { 114 | TrackerManager.GetInstance().StopTracker(); 115 | startTrackerDone = false; 116 | StopCamera(); 117 | } 118 | } 119 | 120 | void OnDestroy() 121 | { 122 | Screen.orientation = ScreenOrientation.AutoRotation; 123 | TrackerManager.GetInstance().StopTracker(); 124 | TrackerManager.GetInstance().DestroyTracker(); 125 | StopCamera(); 126 | } 127 | 128 | public void FindSurface() 129 | { 130 | TrackerManager.GetInstance().StopTracker(); 131 | TrackerManager.GetInstance().DestroyTracker(); 132 | 133 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_SLAM); 134 | TrackerManager.GetInstance().FindSurface(); 135 | 136 | if (startBtnText != null) { 137 | startBtnText.text = "Stop Tracking"; 138 | } 139 | } 140 | 141 | public void QuitFindingSurface() 142 | { 143 | TrackerManager.GetInstance().QuitFindingSurface(); 144 | } 145 | 146 | private void EnableChildrenRenderer(bool activate) 147 | { 148 | Renderer[] rendererComponents = GetComponentsInChildren(); 149 | 150 | // Disable renderer 151 | foreach (Renderer component in rendererComponents) 152 | { 153 | component.enabled = activate; 154 | } 155 | } 156 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtraVisualSLAMBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb44307204554ab48903af16191646e4 3 | timeCreated: 1522133505 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtramHomeSceneManager.cs: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | Copyright 2017 Maxst, Inc. All Rights Reserved. 3 | ==============================================================================*/ 4 | 5 | using UnityEngine; 6 | using System.Collections; 7 | 8 | public class ExtramHomeSceneManager : ARBehaviour 9 | { 10 | void Update() 11 | { 12 | if (Input.GetKey(KeyCode.Escape)) 13 | { 14 | Application.Quit(); 15 | } 16 | } 17 | 18 | public void OnImageTrackerClick() 19 | { 20 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraImageTrackerKnight"); 21 | } 22 | 23 | public void OnImageTrackerMultiTargetClick() 24 | { 25 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraImageTrackerMultiTarget"); 26 | } 27 | 28 | public void OnInstantTrackerBrushClick() 29 | { 30 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraInstantTrackerBrush"); 31 | } 32 | 33 | public void OnExtraInstantTrackerGridCick() 34 | { 35 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraInstantTrackerGrid"); 36 | } 37 | 38 | public void OnExtraInstantTrackerMultiContentsClick() 39 | { 40 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraInstantTrackerMultiContents"); 41 | } 42 | 43 | public void OnExtraVisualSLAMBrushClick() 44 | { 45 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraVisualSLAMBrush"); 46 | } 47 | 48 | public void OnExtraVisualSLAMKnightClick() 49 | { 50 | SceneStackManager.Instance.LoadScene("ExtraHome", "ExtraVisualSLAMKnight"); 51 | } 52 | 53 | public void OnExtraInstantTrainingClick() 54 | { 55 | SceneStackManager.Instance.LoadScene("ExtraHome", "InstantTraining"); 56 | } 57 | 58 | public void OnExtraNoImageTrackerbleClick() 59 | { 60 | SceneStackManager.Instance.LoadScene("ExtraHome", "NoImageTrackerble"); 61 | } 62 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ExtramHomeSceneManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c1ad2c3fb2e6d742b94b810d0ad89e0 3 | timeCreated: 1495535030 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/GlacierTrackingEventHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class GlacierTrackingEventHandler : TrackingEventHandler 6 | { 7 | public override void OnTrackingSuccess() 8 | { 9 | 10 | } 11 | 12 | public override void OnTrackingFail() 13 | { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/GlacierTrackingEventHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09b1b58d7b3773d4cafcfe8550b4b3bf 3 | timeCreated: 1536015520 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/InstantPlaneGrid.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class InstantPlaneGrid 5 | { 6 | private float lineSpacing = 0.1f; 7 | private int subSplit = 2; 8 | private int numOfLines = 15; 9 | private Color lineColor = new Color(1, 1, 1, 1); 10 | private bool enableDrawing = false; 11 | private Material lineMaterial; 12 | 13 | public InstantPlaneGrid(Material lineMaterial) 14 | { 15 | this.lineMaterial = lineMaterial; 16 | } 17 | 18 | public void EnableDrawing(bool enableDrawing) 19 | { 20 | this.enableDrawing = enableDrawing; 21 | } 22 | 23 | public void Draw(Matrix4x4 pose) 24 | { 25 | if (!enableDrawing) 26 | { 27 | return; 28 | } 29 | 30 | lineMaterial.SetPass(0); 31 | 32 | GL.PushMatrix(); 33 | //GL.MultMatrix(transform.localToWorldMatrix); 34 | GL.MultMatrix(pose); 35 | float fMinDist = -lineSpacing * numOfLines; 36 | float fMaxDist = lineSpacing * numOfLines; 37 | float fMain; 38 | 39 | int m; 40 | int s; 41 | 42 | GL.Begin(GL.LINES); 43 | GL.Color(lineColor); 44 | 45 | for (m = 0; m <= numOfLines; m++) 46 | { 47 | fMain = m * lineSpacing; 48 | 49 | GL.Vertex3(fMinDist, 0, fMain); 50 | GL.Vertex3(fMaxDist, 0, fMain); 51 | GL.Vertex3(fMinDist, 0, -fMain); 52 | GL.Vertex3(fMaxDist, 0, -fMain); 53 | 54 | GL.Vertex3(fMain, 0, fMinDist); 55 | GL.Vertex3(fMain, 0, fMaxDist); 56 | GL.Vertex3(-fMain, 0, fMinDist); 57 | GL.Vertex3(-fMain, 0, fMaxDist); 58 | } 59 | 60 | for (m = 0; m < numOfLines; m++) 61 | { 62 | fMain = m * lineSpacing; 63 | 64 | for (s = 1; s < subSplit; s++) 65 | { 66 | float fSub = fMain + (lineSpacing / subSplit * s); 67 | 68 | GL.Vertex3(fMinDist, 0, fSub); 69 | GL.Vertex3(fMaxDist, 0, fSub); 70 | GL.Vertex3(fMinDist, 0, -fSub); 71 | GL.Vertex3(fMaxDist, 0, -fSub); 72 | 73 | GL.Vertex3(fSub, 0, fMinDist); 74 | GL.Vertex3(fSub, 0, fMaxDist); 75 | GL.Vertex3(-fSub, 0, fMinDist); 76 | GL.Vertex3(-fSub, 0, fMaxDist); 77 | } 78 | } 79 | 80 | GL.End(); 81 | GL.PopMatrix(); 82 | } 83 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/InstantPlaneGrid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25437ed6ed7b632439e59c12a1af1ef6 3 | timeCreated: 1513953079 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/InstantTraining.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7df5c3d312d1b443691e4ac57b2660cd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/LegoTrackingEventHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class LegoTrackingEventHandler : TrackingEventHandler 6 | { 7 | public override void OnTrackingSuccess() 8 | { 9 | 10 | } 11 | 12 | public override void OnTrackingFail() 13 | { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/LegoTrackingEventHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5c81ca4ca491ea4ba93ae4246036e43 3 | timeCreated: 1536017462 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/MultiImageTargetA.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine.SceneManagement; 5 | 6 | using maxstAR; 7 | 8 | public class MultiImageTargetA : ARBehaviour 9 | { 10 | private Dictionary imageTrackablesMap = 11 | new Dictionary(); 12 | 13 | private bool startTrackerDone = false; 14 | public ARManager arManagerObject; 15 | 16 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 17 | 18 | void Awake() 19 | { 20 | Init(); 21 | 22 | cameraBackgroundBehaviour = FindObjectOfType(); 23 | if (cameraBackgroundBehaviour == null) 24 | { 25 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 26 | return; 27 | } 28 | } 29 | 30 | void Start() 31 | { 32 | imageTrackablesMap.Clear(); 33 | ImageTrackableBehaviour[] imageTrackables = FindObjectsOfType(); 34 | foreach (var trackable in imageTrackables) 35 | { 36 | imageTrackablesMap.Add(trackable.TrackableName, trackable); 37 | Debug.Log("Trackable add: " + trackable.TrackableName); 38 | } 39 | 40 | AddTrackerData(); 41 | 42 | if (arManagerObject != null) 43 | { 44 | DontDestroyOnLoad(arManagerObject); 45 | } 46 | } 47 | 48 | private void AddTrackerData() 49 | { 50 | foreach (var trackable in imageTrackablesMap) 51 | { 52 | if (trackable.Value.TrackerDataFileName.Length == 0) 53 | { 54 | continue; 55 | } 56 | 57 | if (trackable.Value.StorageType == StorageType.AbsolutePath) 58 | { 59 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName); 60 | } 61 | else 62 | { 63 | if (Application.platform == RuntimePlatform.Android) 64 | { 65 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName, true); 66 | } 67 | else 68 | { 69 | TrackerManager.GetInstance().AddTrackerData(Application.streamingAssetsPath + "/" + trackable.Value.TrackerDataFileName); 70 | } 71 | } 72 | } 73 | 74 | TrackerManager.GetInstance().LoadTrackerData(); 75 | } 76 | 77 | private void DisableAllTrackables() 78 | { 79 | foreach (var trackable in imageTrackablesMap) 80 | { 81 | trackable.Value.OnTrackFail(); 82 | } 83 | } 84 | 85 | void Update() 86 | { 87 | if (!startTrackerDone) 88 | { 89 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE); 90 | startTrackerDone = true; 91 | } 92 | 93 | DisableAllTrackables(); 94 | 95 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 96 | TrackingResult trackingResult = state.GetTrackingResult(); 97 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 98 | 99 | for (int i = 0; i < trackingResult.GetCount(); i++) 100 | { 101 | Trackable trackable = trackingResult.GetTrackable(i); 102 | imageTrackablesMap[trackable.GetName()].OnTrackSuccess( 103 | trackable.GetId(), trackable.GetName(), trackable.GetPose()); 104 | } 105 | } 106 | 107 | public void SetNormalMode() 108 | { 109 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 110 | } 111 | 112 | public void SetExtendedMode() 113 | { 114 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.EXTEND_TRACKING); 115 | } 116 | 117 | public void SetMultiMode() 118 | { 119 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.MULTI_TRACKING); 120 | } 121 | 122 | void OnApplicationPause(bool pause) 123 | { 124 | if (pause) 125 | { 126 | TrackerManager.GetInstance().StopTracker(); 127 | } 128 | } 129 | 130 | void OnDestroy() 131 | { 132 | imageTrackablesMap.Clear(); 133 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 134 | TrackerManager.GetInstance().StopTracker(); 135 | TrackerManager.GetInstance().DestroyTracker(); 136 | } 137 | 138 | public void OnNextClicked() 139 | { 140 | SceneManager.LoadScene("MultiImageTargetB"); 141 | } 142 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/MultiImageTargetA.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6498ef9363910c14e82162c649bd91fc 3 | timeCreated: 1488845630 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/MultiImageTargetB.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | using maxstAR; 6 | 7 | public class MultiImageTargetB : ARBehaviour 8 | { 9 | private Dictionary imageTrackablesMap = 10 | new Dictionary(); 11 | private bool startTrackerDone = false; 12 | 13 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 14 | 15 | void Awake() 16 | { 17 | Init(); 18 | 19 | cameraBackgroundBehaviour = FindObjectOfType(); 20 | if (cameraBackgroundBehaviour == null) 21 | { 22 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 23 | return; 24 | } 25 | } 26 | 27 | void Start() 28 | { 29 | imageTrackablesMap.Clear(); 30 | ImageTrackableBehaviour[] imageTrackables = FindObjectsOfType(); 31 | foreach (var trackable in imageTrackables) 32 | { 33 | imageTrackablesMap.Add(trackable.TrackableName, trackable); 34 | Debug.Log("Trackable add: " + trackable.TrackableName); 35 | } 36 | 37 | AddTrackerData(); 38 | } 39 | 40 | private void AddTrackerData() 41 | { 42 | foreach (var trackable in imageTrackablesMap) 43 | { 44 | if (trackable.Value.TrackerDataFileName.Length == 0) 45 | { 46 | continue; 47 | } 48 | 49 | if (trackable.Value.StorageType == StorageType.AbsolutePath) 50 | { 51 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName); 52 | } 53 | else 54 | { 55 | if (Application.platform == RuntimePlatform.Android) 56 | { 57 | TrackerManager.GetInstance().AddTrackerData(trackable.Value.TrackerDataFileName, true); 58 | } 59 | else 60 | { 61 | TrackerManager.GetInstance().AddTrackerData(Application.streamingAssetsPath + "/" + trackable.Value.TrackerDataFileName); 62 | } 63 | } 64 | } 65 | 66 | TrackerManager.GetInstance().LoadTrackerData(); 67 | } 68 | 69 | private void DisableAllTrackables() 70 | { 71 | foreach (var trackable in imageTrackablesMap) 72 | { 73 | trackable.Value.OnTrackFail(); 74 | } 75 | } 76 | 77 | void Update() 78 | { 79 | if (!startTrackerDone) 80 | { 81 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE); 82 | startTrackerDone = true; 83 | } 84 | 85 | DisableAllTrackables(); 86 | 87 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 88 | TrackingResult trackingResult = state.GetTrackingResult(); 89 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 90 | 91 | for (int i = 0; i < trackingResult.GetCount(); i++) 92 | { 93 | Trackable trackable = trackingResult.GetTrackable(i); 94 | imageTrackablesMap[trackable.GetName()].OnTrackSuccess( 95 | trackable.GetId(), trackable.GetName(), trackable.GetPose()); 96 | } 97 | } 98 | 99 | public void SetNormalMode() 100 | { 101 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 102 | } 103 | 104 | public void SetExtendedMode() 105 | { 106 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.EXTEND_TRACKING); 107 | } 108 | 109 | public void SetMultiMode() 110 | { 111 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.MULTI_TRACKING); 112 | } 113 | 114 | void OnApplicationPause(bool pause) 115 | { 116 | if (pause) 117 | { 118 | TrackerManager.GetInstance().StopTracker(); 119 | startTrackerDone = false; 120 | } 121 | } 122 | 123 | void OnDestroy() 124 | { 125 | imageTrackablesMap.Clear(); 126 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 127 | TrackerManager.GetInstance().StopTracker(); 128 | TrackerManager.GetInstance().DestroyTracker(); 129 | } 130 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/MultiImageTargetB.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e74c4d4fc01674745948a06f238c28ae 3 | timeCreated: 1488845630 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/NoImageTrackerbleSceneManager.cs: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | Copyright 2017 Maxst, Inc. All Rights Reserved. 3 | ==============================================================================*/ 4 | 5 | using UnityEngine; 6 | using System.Collections.Generic; 7 | using System.Text; 8 | 9 | using maxstAR; 10 | 11 | public class NoImageTrackerbleSceneManager : ARBehaviour 12 | { 13 | private CameraBackgroundBehaviour cameraBackgroundBehaviour = null; 14 | 15 | public GameObject trackingObject; 16 | 17 | void Awake() 18 | { 19 | Init(); 20 | cameraBackgroundBehaviour = FindObjectOfType(); 21 | if (cameraBackgroundBehaviour == null) 22 | { 23 | Debug.LogError("Can't find CameraBackgroundBehaviour."); 24 | return; 25 | } 26 | } 27 | 28 | void Start() 29 | { 30 | QualitySettings.vSyncCount = 0; 31 | Application.targetFrameRate = 60; 32 | 33 | AddTrackerData(); 34 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE); 35 | StartCamera(); 36 | } 37 | 38 | private void AddTrackerData() 39 | { 40 | if (Application.platform == RuntimePlatform.Android) 41 | { 42 | TrackerManager.GetInstance().AddTrackerData("MaxstAR/ImageTarget/Glacier.2dmap", true); 43 | } 44 | else 45 | { 46 | TrackerManager.GetInstance().AddTrackerData(Application.streamingAssetsPath + "/MaxstAR/ImageTarget/Glacier.2dmap", false); 47 | } 48 | 49 | TrackerManager.GetInstance().LoadTrackerData(); 50 | } 51 | 52 | void Update() 53 | { 54 | TrackingState state = TrackerManager.GetInstance().UpdateTrackingState(); 55 | 56 | cameraBackgroundBehaviour.UpdateCameraBackgroundImage(state); 57 | 58 | TrackingResult trackingResult = state.GetTrackingResult(); 59 | 60 | if (trackingResult.GetCount() > 0) 61 | { 62 | for (int i = 0; i < trackingResult.GetCount(); i++) 63 | { 64 | Trackable trackable = trackingResult.GetTrackable(i); 65 | 66 | Matrix4x4 poseMatrix = trackable.GetPose(); 67 | 68 | float width = trackable.GetWidth(); 69 | float height = trackable.GetHeight(); 70 | 71 | trackingObject.transform.position = MatrixUtils.PositionFromMatrix(poseMatrix); 72 | trackingObject.transform.rotation = MatrixUtils.QuaternionFromMatrix(poseMatrix); 73 | trackingObject.transform.localScale = new Vector3(width, height, height); 74 | } 75 | } 76 | else 77 | { 78 | trackingObject.transform.localScale = new Vector3(0.0f, 0.0f, 0.0f); 79 | } 80 | } 81 | 82 | void OnApplicationPause(bool pause) 83 | { 84 | if (pause) 85 | { 86 | TrackerManager.GetInstance().StopTracker(); 87 | StopCamera(); 88 | } 89 | else 90 | { 91 | StartCamera(); 92 | TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE); 93 | } 94 | } 95 | 96 | void OnDestroy() 97 | { 98 | TrackerManager.GetInstance().SetTrackingOption(TrackerManager.TrackingOption.NORMAL_TRACKING); 99 | TrackerManager.GetInstance().StopTracker(); 100 | TrackerManager.GetInstance().DestroyTracker(); 101 | StopCamera(); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/NoImageTrackerbleSceneManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1357d37940b0b41758c58bc8a5daf0c5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/RotationController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using maxstAR; 5 | 6 | public class RotationController : MonoBehaviour 7 | { 8 | private Vector3 rotationVector; 9 | 10 | private TKRotationRecognizer rotationRecognizer = new TKRotationRecognizer(); 11 | 12 | public bool rotationX = false; 13 | public bool rotationY = false; 14 | public bool rotationZ = false; 15 | 16 | private bool isRotationState = false; 17 | 18 | private bool isInitialize = false; 19 | 20 | public bool getRotationState() 21 | { 22 | return isRotationState; 23 | } 24 | 25 | private void Awake() 26 | { 27 | rotationVector = transform.localEulerAngles; 28 | isInitialize = true; 29 | } 30 | 31 | public void initializeRotation() 32 | { 33 | if (isInitialize) 34 | { 35 | transform.localEulerAngles = rotationVector; 36 | } 37 | } 38 | 39 | private void OnEnable() 40 | { 41 | rotationRecognizer = new TKRotationRecognizer(); 42 | rotationRecognizer.gestureRecognizedEvent += (r) => 43 | { 44 | float rotaionValue = -(r.deltaRotation * 2.0f); 45 | if (rotationX) 46 | { 47 | transform.Rotate(rotaionValue, 0, 0); 48 | } 49 | else if (rotationY) 50 | { 51 | transform.Rotate(0, rotaionValue, 0); 52 | } 53 | else if (rotationZ) 54 | { 55 | transform.Rotate(0, 0, rotaionValue); 56 | } 57 | }; 58 | TouchKit.addGestureRecognizer(rotationRecognizer); 59 | } 60 | 61 | private void Update() 62 | { 63 | if (Input.touchCount == 2) 64 | { 65 | isRotationState = true; 66 | } 67 | else if (Input.touchCount == 0) 68 | { 69 | isRotationState = false; 70 | } 71 | } 72 | 73 | private void OnDisable() 74 | { 75 | TouchKit.removeGestureRecognizer(rotationRecognizer); 76 | } 77 | } -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/RotationController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3ce4262791b8417890e2f88139bad2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/TrackingEventHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public abstract class TrackingEventHandler : MonoBehaviour 6 | { 7 | public abstract void OnTrackingFail(); 8 | public abstract void OnTrackingSuccess(); 9 | } 10 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/TrackingEventHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60143539fbd2d674ebc977aec434aac2 3 | timeCreated: 1536015555 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ZoomInOut.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ZoomInOut : MonoBehaviour { 6 | 7 | float originalScale = 1.0f; 8 | float savedScale = 0.5f; 9 | float beforeRenderStateSavedScale = 0.0f; 10 | float renderStateSavedScale = 0.0f; 11 | 12 | bool firstTouch = false; 13 | float firstTouchScale = 0.0f; 14 | 15 | public float minimumScale = 0.01f; 16 | public float maximumScale = 1.0f; 17 | 18 | public float scaleSpeed = 0.001f; 19 | 20 | private bool isScaleState = false; 21 | private bool isInitialized = false; 22 | 23 | private Vector3 initializeScaleVector; 24 | 25 | public bool getScaleState() 26 | { 27 | return isScaleState; 28 | } 29 | 30 | private void Start() 31 | { 32 | isInitialized = true; 33 | initializeScaleVector = transform.localScale; 34 | originalScale = transform.localScale.x; 35 | savedScale = transform.localScale.x; 36 | } 37 | 38 | public void initilizzeScale() 39 | { 40 | if (isInitialized) 41 | { 42 | transform.localScale = initializeScaleVector; 43 | } 44 | } 45 | 46 | void Update() 47 | { 48 | if (gameObject.transform.localScale.x < minimumScale) 49 | { 50 | if (initializeScaleVector.x > 0.0f) 51 | { 52 | transform.localScale = initializeScaleVector; 53 | } 54 | } 55 | 56 | 57 | if (gameObject.activeSelf && Input.touchCount == 2) 58 | { 59 | isScaleState = true; 60 | Touch touchZero = Input.GetTouch(0); 61 | Touch touchOne = Input.GetTouch(1); 62 | 63 | float lineScalePow = Mathf.Pow((touchZero.position.x - touchOne.position.x), 2) + Mathf.Pow((touchZero.position.y - touchOne.position.y), 2); 64 | float lineScale = Mathf.Sqrt(lineScalePow); 65 | 66 | if (!firstTouch) 67 | { 68 | firstTouch = true; 69 | firstTouchScale = lineScale; 70 | } 71 | 72 | lineScale = (float)((lineScale - firstTouchScale) * scaleSpeed); 73 | 74 | if (savedScale + lineScale + renderStateSavedScale > minimumScale && savedScale + lineScale + renderStateSavedScale < maximumScale) 75 | { 76 | transform.localScale = new Vector3(savedScale + lineScale + renderStateSavedScale, savedScale + lineScale + renderStateSavedScale, savedScale + lineScale + renderStateSavedScale); 77 | beforeRenderStateSavedScale = lineScale + renderStateSavedScale; 78 | } 79 | } 80 | else if(gameObject.activeSelf && Input.touchCount == 0) 81 | { 82 | isScaleState = false; 83 | firstTouch = false; 84 | firstTouchScale = 0.0f; 85 | renderStateSavedScale = beforeRenderStateSavedScale; 86 | 87 | } 88 | else if(gameObject.activeSelf == false && isInitialized) 89 | { 90 | isScaleState = false; 91 | firstTouch = false; 92 | firstTouchScale = 0.0f; 93 | savedScale = originalScale; 94 | transform.localScale = new Vector3(originalScale , originalScale, originalScale ); 95 | renderStateSavedScale = 0.0f; 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Assets/ExtraSample/Scripts/ZoomInOut.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: faee5f53468b24967b47091ff10667e1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 321b173c6593cd94c858118350fe6518 3 | folderAsset: yes 4 | timeCreated: 1488636147 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/intant_training.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/StreamingAssets/intant_training.jpg -------------------------------------------------------------------------------- /Assets/StreamingAssets/intant_training.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3914fad38a85b4493a2058c87258f70d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/intant_training1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armaxst/MaxstARSDK_Unity_Sample/52a6f9568e07140403189722023408dbc40dfa67/Assets/StreamingAssets/intant_training1.jpg -------------------------------------------------------------------------------- /Assets/StreamingAssets/intant_training1.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ea5f972235484ef5a8452bf6c95a809 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TouchKit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50b9d6c07c4b3ca4e9b1a15204ac412e 3 | folderAsset: yes 4 | timeCreated: 1513951965 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TouchKit/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34c845883c036418db85a57ce0664fe3 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/TouchKit/Editor/TouchKitEditor.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using UnityEditor; 4 | using System.Collections; 5 | 6 | 7 | [CustomEditor( typeof( TouchKit ) )] 8 | public class TouchKitEditor : Editor 9 | { 10 | private bool showDebug = true; 11 | private string status = "Touch Debugging"; 12 | 13 | 14 | public override void OnInspectorGUI() 15 | { 16 | DrawDefaultInspector(); 17 | 18 | showDebug = EditorGUILayout.Foldout( showDebug, status ); 19 | if( showDebug ) 20 | { 21 | TouchKit touchKit = (TouchKit)target; 22 | touchKit.drawDebugBoundaryFrames = EditorGUILayout.Toggle( "Draw boundary frames", touchKit.drawDebugBoundaryFrames ); 23 | touchKit.drawTouches = EditorGUILayout.Toggle( "Draw touches", touchKit.drawTouches ); 24 | touchKit.simulateTouches = EditorGUILayout.Toggle( "Simulate touches", touchKit.simulateTouches ); 25 | 26 | GUI.enabled = touchKit.simulateTouches; 27 | if( GUI.enabled || true ) 28 | { 29 | var helpText = "Touches can be simulated in the editor or on the desktop with mouse clicks."; 30 | if( touchKit.simulateMultitouch ) 31 | helpText += "\nTo simulate a two-finger gesture, press and hold the left alt key and move your mouse around. Shift the touches by additionally holding down left shift."; 32 | 33 | EditorGUILayout.HelpBox( helpText, MessageType.Info, true ); 34 | } 35 | 36 | touchKit.simulateMultitouch = EditorGUILayout.Toggle( "Simulate multitouch", touchKit.simulateMultitouch ); 37 | } 38 | 39 | if( GUI.changed ) 40 | EditorUtility.SetDirty( target ); 41 | } 42 | 43 | } 44 | #endif -------------------------------------------------------------------------------- /Assets/TouchKit/Editor/TouchKitEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e5c8365f45374e259a591b8b76af04a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c88906649098c4a669eace1b1c825a02 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers/TKRect.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | 5 | 6 | /// 7 | /// replacement for the Unity Rect class that is TouchKit and resolution-aware. Creating one will automatically scale all values 8 | /// if TouchKit autoScaleRectsAndDistances is true based on your designTimeResolution. 9 | /// 10 | /// Note the TKRects use the bottom-left as the origin. 11 | /// 12 | public struct TKRect 13 | { 14 | public float x; 15 | public float y; 16 | public float width; 17 | public float height; 18 | 19 | public float xMin { get { return x; } } 20 | public float xMax { get { return x + width; } } 21 | public float yMin { get { return y; } } 22 | public float yMax { get { return y + height; } } 23 | public Vector2 center { get { return new Vector2( x + ( width / 2f ), y + ( height / 2f ) ); } } 24 | 25 | 26 | public TKRect( float x, float y, float width, float height ) 27 | { 28 | this.x = x; 29 | this.y = y; 30 | this.width = width; 31 | this.height = height; 32 | 33 | updateRectWithRuntimeScaleModifier(); 34 | } 35 | 36 | 37 | public TKRect( float width, float height, Vector2 center ) 38 | { 39 | this.width = width; 40 | this.height = height; 41 | this.x = center.x - width / 2f; 42 | this.y = center.y - height / 2f; 43 | 44 | updateRectWithRuntimeScaleModifier(); 45 | } 46 | 47 | 48 | private void updateRectWithRuntimeScaleModifier() 49 | { 50 | var multiplier = TouchKit.instance.runtimeScaleModifier; 51 | 52 | x *= multiplier.x; 53 | y *= multiplier.y; 54 | width = width * multiplier.x; 55 | height = height * multiplier.y; 56 | } 57 | 58 | 59 | public TKRect copyWithExpansion( float allSidesExpansion ) 60 | { 61 | return copyWithExpansion( allSidesExpansion, allSidesExpansion ); 62 | } 63 | 64 | 65 | public TKRect copyWithExpansion( float xExpansion, float yExpansion ) 66 | { 67 | xExpansion *= TouchKit.instance.runtimeScaleModifier.x; 68 | yExpansion *= TouchKit.instance.runtimeScaleModifier.y; 69 | 70 | var rect = new TKRect(); 71 | rect.x = this.x - xExpansion; 72 | rect.y = this.y - yExpansion; 73 | rect.width = this.width + ( xExpansion * 2f ); 74 | rect.height = this.height + ( yExpansion * 2f ); 75 | 76 | return rect; 77 | } 78 | 79 | 80 | public bool contains( Vector2 point ) 81 | { 82 | if( x <= point.x && y <= point.y && xMax >= point.x && yMax >= point.y ) 83 | return true; 84 | return false; 85 | } 86 | 87 | 88 | public override string ToString() 89 | { 90 | return string.Format( "TKRect: x: {0}, xMax: {1}, y: {2}, yMax: {3}, width: {4}, height: {5}, center: {6}", 91 | x, xMax, y, yMax, width, height, center ); 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers/TKRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f68dd8df2e674a94939789235fb9b28 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers/TKTouch.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | 5 | public class TKTouch 6 | { 7 | public readonly int fingerId; 8 | public Vector2 position; 9 | public Vector2 startPosition; 10 | public Vector2 deltaPosition; 11 | public float deltaTime; 12 | public int tapCount; 13 | public TouchPhase phase = TouchPhase.Ended; 14 | 15 | public Vector2 previousPosition 16 | { 17 | get { return position - deltaPosition; } 18 | } 19 | 20 | #if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL 21 | // used to track mouse movement and fake touches 22 | private Vector2? _lastPosition; 23 | private double _lastClickTime; 24 | private double _multipleClickInterval = 0.2; 25 | #endif 26 | 27 | 28 | public TKTouch( int fingerId ) 29 | { 30 | // lock this TKTouch to the fingerId 31 | this.fingerId = fingerId; 32 | } 33 | 34 | public TKTouch populateWithTouch( Touch touch ) 35 | { 36 | position = touch.position; 37 | deltaPosition = touch.deltaPosition; 38 | deltaTime = touch.deltaTime; 39 | tapCount = touch.tapCount; 40 | 41 | if (touch.phase== TouchPhase.Began) 42 | { 43 | startPosition = position; 44 | } 45 | 46 | // canceled and ended are the same to us 47 | if( touch.phase == TouchPhase.Canceled ) 48 | phase = TouchPhase.Ended; 49 | else 50 | phase = touch.phase; 51 | 52 | return this; 53 | } 54 | 55 | #if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL 56 | public TKTouch populateWithPosition( Vector3 currentPosition, TouchPhase touchPhase ) 57 | { 58 | var currentPosition2d = new Vector2( currentPosition.x, currentPosition.y ); 59 | 60 | // if we have a lastMousePosition use it to get a delta 61 | if( _lastPosition.HasValue ) 62 | deltaPosition = currentPosition2d - _lastPosition.Value; 63 | else 64 | deltaPosition = new Vector2( 0, 0 ); 65 | 66 | switch( touchPhase ) 67 | { 68 | case TouchPhase.Began: 69 | phase = TouchPhase.Began; 70 | 71 | // check for multiple clicks 72 | if( Time.time < _lastClickTime + _multipleClickInterval ) 73 | tapCount++; 74 | else 75 | tapCount = 1; 76 | _lastPosition = currentPosition2d; 77 | startPosition = currentPosition2d; 78 | _lastClickTime = Time.time; 79 | break; 80 | case TouchPhase.Stationary: 81 | case TouchPhase.Moved: 82 | if( deltaPosition.sqrMagnitude == 0 ) 83 | phase = TouchPhase.Stationary; 84 | else 85 | phase = TouchPhase.Moved; 86 | 87 | _lastPosition = currentPosition2d; 88 | break; 89 | case TouchPhase.Ended: 90 | phase = TouchPhase.Ended; 91 | _lastPosition = null; 92 | break; 93 | } 94 | 95 | position = currentPosition2d; 96 | 97 | return this; 98 | } 99 | 100 | 101 | public TKTouch populateFromMouse() 102 | { 103 | // do we have some input to work with? 104 | if( Input.GetMouseButtonUp( 0 ) || Input.GetMouseButton( 0 ) ) 105 | { 106 | var phase = TouchPhase.Moved; 107 | 108 | // guard against down and up being called in the same frame 109 | if( Input.GetMouseButtonDown( 0 ) && Input.GetMouseButtonUp( 0 ) ) 110 | phase = TouchPhase.Canceled; 111 | else if( Input.GetMouseButtonUp( 0 ) ) 112 | phase = TouchPhase.Ended; 113 | else if( Input.GetMouseButtonDown( 0 ) ) 114 | phase = TouchPhase.Began; 115 | 116 | var currentMousePosition = new Vector2( Input.mousePosition.x, Input.mousePosition.y ); 117 | this.populateWithPosition( currentMousePosition, phase ); 118 | } 119 | 120 | return this; 121 | } 122 | #endif 123 | 124 | 125 | public override string ToString() 126 | { 127 | return string.Format( "[TKTouch] fingerId: {0}, phase: {1}, position: {2}", fingerId, phase, position ); 128 | } 129 | 130 | } -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers/TKTouch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2defb83e5e57b48bfb27864a8ab5e134 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Helpers/TouchKitEditorSupport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1f6cfc9c43424c2eaafa3f02ee2fb90 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c43f7b533c50c424fbbfc3ea8d40548e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKAbstractGestureRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5f52cf2673474a919f25105431aaca6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKAngleSwipeRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c11e6452bbdb4506bba74590e0ea981 3 | timeCreated: 1461834236 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKAnyTouchRecognizer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | 6 | public class TKAnyTouchRecognizer : TKAbstractGestureRecognizer 7 | { 8 | public event Action onEnteredEvent; 9 | public event Action onExitedEvent; 10 | 11 | 12 | /// 13 | /// the contstructor ensures we have a frame to work with 14 | /// 15 | public TKAnyTouchRecognizer( TKRect frame ) 16 | { 17 | alwaysSendTouchesMoved = true; 18 | boundaryFrame = frame; 19 | } 20 | 21 | 22 | void onTouchEntered() 23 | { 24 | // fire the event if this is the first touch we are tracking 25 | if( _trackingTouches.Count == 1 && onEnteredEvent != null ) 26 | onEnteredEvent( this ); 27 | } 28 | 29 | 30 | void onTouchExited() 31 | { 32 | if( _trackingTouches.Count == 0 && onExitedEvent != null ) 33 | onExitedEvent( this ); 34 | } 35 | 36 | 37 | #region TKAbstractGestureRecognizer 38 | 39 | // we do nothing here. all events will be handled internally 40 | internal override void fireRecognizedEvent() {} 41 | 42 | 43 | internal override bool touchesBegan( List touches ) 44 | { 45 | // grab the first touch that begins on us 46 | if( state == TKGestureRecognizerState.Possible ) 47 | { 48 | for( int i = 0; i < touches.Count; i++ ) 49 | { 50 | // only add touches in the Began phase 51 | if( touches[i].phase == TouchPhase.Began ) 52 | { 53 | _trackingTouches.Add( touches[i] ); 54 | state = TKGestureRecognizerState.RecognizedAndStillRecognizing; 55 | onTouchEntered(); 56 | 57 | return true; 58 | } 59 | } 60 | } 61 | 62 | return false; 63 | } 64 | 65 | 66 | internal override void touchesMoved( List touches ) 67 | { 68 | for( int i = 0; i < touches.Count; i++ ) 69 | { 70 | // check to see if the touch is in our frame 71 | var isTouchInFrame = isTouchWithinBoundaryFrame( touches[i] ); 72 | 73 | // are we already tracking this touch? 74 | var isTrackingTouch = _trackingTouches.Contains( touches[i] ); 75 | 76 | // if we are tracking the touch and it is in frame we do nothing more 77 | if( isTrackingTouch && isTouchInFrame ) 78 | continue; 79 | 80 | // if we are not tracking the touch and it is in our frame start tracking it 81 | if( !isTrackingTouch && isTouchInFrame ) 82 | { 83 | _trackingTouches.Add( touches[i] ); 84 | state = TKGestureRecognizerState.RecognizedAndStillRecognizing; 85 | onTouchEntered(); 86 | } 87 | // if we are tracking the touch and it exited the frame fire the onExitedEvent 88 | else if( isTrackingTouch && !isTouchInFrame ) 89 | { 90 | _trackingTouches.Remove( touches[i] ); 91 | state = TKGestureRecognizerState.FailedOrEnded; 92 | onTouchExited(); 93 | } 94 | } 95 | } 96 | 97 | 98 | internal override void touchesEnded( List touches ) 99 | { 100 | for( int i = 0; i < touches.Count; i++ ) 101 | { 102 | if( touches[i].phase == TouchPhase.Ended && _trackingTouches.Contains( touches[i] ) ) 103 | { 104 | _trackingTouches.Remove( touches[i] ); 105 | state = TKGestureRecognizerState.FailedOrEnded; 106 | onTouchExited(); 107 | } 108 | } 109 | } 110 | 111 | #endregion 112 | 113 | } 114 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKAnyTouchRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7aa8925dea2045e3be6e6676b65f7ac 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKButtonRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e4f7acc174154eb899d479350230e1c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKCurveRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: daf4d976dc3d0492081da0f1b65c25b2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKLongPressRecognizer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | 8 | /// 9 | /// detects a long press. The gesture is considered recognized when a touch has been down for minimumPressDuration and if it has moved less than allowableMovement 10 | /// 11 | public class TKLongPressRecognizer : TKAbstractGestureRecognizer 12 | { 13 | public event Action gestureRecognizedEvent; 14 | public event Action gestureCompleteEvent; // fired when after a successful long press the finger is lifted 15 | 16 | public float minimumPressDuration = 0.5f; 17 | public int requiredTouchesCount = -1; 18 | public float allowableMovementCm = 1f; 19 | 20 | Vector2 _beginLocation; 21 | bool _waiting; 22 | 23 | 24 | 25 | public TKLongPressRecognizer() 26 | {} 27 | 28 | 29 | public TKLongPressRecognizer( float minimumPressDuration, float allowableMovement, int requiredTouchesCount ) 30 | { 31 | this.minimumPressDuration = minimumPressDuration; 32 | this.allowableMovementCm = allowableMovement; 33 | this.requiredTouchesCount = requiredTouchesCount; 34 | } 35 | 36 | 37 | IEnumerator beginGesture() 38 | { 39 | var endTime = Time.time + minimumPressDuration; 40 | 41 | // wait for our time to elapse or to be cancelled 42 | while( _waiting && Time.time < endTime ) 43 | yield return null; 44 | 45 | // if our time elapsed it means we were not cancelled 46 | if( Time.time >= endTime ) 47 | { 48 | if( state == TKGestureRecognizerState.Began ) 49 | state = TKGestureRecognizerState.RecognizedAndStillRecognizing; 50 | } 51 | 52 | _waiting = false; 53 | } 54 | 55 | 56 | internal override void fireRecognizedEvent() 57 | { 58 | if( gestureRecognizedEvent != null ) 59 | gestureRecognizedEvent( this ); 60 | } 61 | 62 | 63 | internal override bool touchesBegan( List touches ) 64 | { 65 | if (!_waiting && state == TKGestureRecognizerState.Possible && (requiredTouchesCount == -1 || touches.Count == requiredTouchesCount)) 66 | { 67 | _beginLocation = touches[0].position; 68 | _waiting = true; 69 | 70 | TouchKit.instance.StartCoroutine( beginGesture() ); 71 | _trackingTouches.Add(touches[0]); 72 | state = TKGestureRecognizerState.Began; 73 | } 74 | else if (requiredTouchesCount != -1) 75 | { 76 | _waiting = false; 77 | } 78 | 79 | return false; 80 | } 81 | 82 | 83 | internal override void touchesMoved( List touches ) 84 | { 85 | if( state == TKGestureRecognizerState.Began || state == TKGestureRecognizerState.RecognizedAndStillRecognizing ) 86 | { 87 | // did we move too far? 88 | var moveDistance = Vector2.Distance(touches[0].position, _beginLocation) / TouchKit.instance.ScreenPixelsPerCm; 89 | if (moveDistance > allowableMovementCm) 90 | { 91 | // fire the complete event if we had previously recognized a long press 92 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing && gestureCompleteEvent != null ) 93 | gestureCompleteEvent( this ); 94 | 95 | state = TKGestureRecognizerState.FailedOrEnded; 96 | _waiting = false; 97 | } 98 | } 99 | } 100 | 101 | 102 | internal override void touchesEnded( List touches ) 103 | { 104 | // fire the complete event if we had previously recognized a long press 105 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing && gestureCompleteEvent != null ) 106 | gestureCompleteEvent( this ); 107 | 108 | state = TKGestureRecognizerState.FailedOrEnded; 109 | _waiting = false; 110 | } 111 | 112 | } 113 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKLongPressRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1116f36a0f51547ab8db2bcc051d3662 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKOneFingerRotationRecognizer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | 8 | /// 9 | /// detects a rotation around an object with a single finger. The target objects position must be provided in screen coordinates. 10 | /// 11 | public class TKOneFingerRotationRecognizer : TKRotationRecognizer 12 | { 13 | public new event Action gestureRecognizedEvent; 14 | public new event Action gestureCompleteEvent; 15 | 16 | /// 17 | /// this should be the center point in screen coordinates of the object that is being rotated 18 | /// 19 | public Vector2 targetPosition; 20 | 21 | 22 | internal override void fireRecognizedEvent() 23 | { 24 | if( gestureRecognizedEvent != null ) 25 | gestureRecognizedEvent( this ); 26 | } 27 | 28 | 29 | internal override bool touchesBegan( List touches ) 30 | { 31 | if( state == TKGestureRecognizerState.Possible ) 32 | { 33 | _trackingTouches.Add( touches[0] ); 34 | 35 | deltaRotation = 0; 36 | _previousRotation = angleBetweenPoints( targetPosition, _trackingTouches[0].position ); 37 | state = TKGestureRecognizerState.Began; 38 | } 39 | 40 | return false; 41 | } 42 | 43 | 44 | internal override void touchesMoved( List touches ) 45 | { 46 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing || state == TKGestureRecognizerState.Began ) 47 | { 48 | var currentRotation = angleBetweenPoints( targetPosition, _trackingTouches[0].position ); 49 | deltaRotation = Mathf.DeltaAngle( currentRotation, _previousRotation ); 50 | _previousRotation = currentRotation; 51 | state = TKGestureRecognizerState.RecognizedAndStillRecognizing; 52 | } 53 | } 54 | 55 | 56 | internal override void touchesEnded( List touches ) 57 | { 58 | // if we had previously been recognizing fire our complete event 59 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing ) 60 | { 61 | if( gestureCompleteEvent != null ) 62 | gestureCompleteEvent( this ); 63 | } 64 | 65 | state = TKGestureRecognizerState.FailedOrEnded; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKOneFingerRotationRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2924e17256fe946bcad4a3f8d5a8abcc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKPanRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 675d9465bff894932a61c4ab70006c02 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKPinchRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fbc0b12876354ebb9ebe2a28e3d9709 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKRotationRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c732a760266d044c28bd68c3db8bd88d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKSwipeRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05051c1d2a36c43a195c3a390af1b74a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKTapRecognizer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | public class TKTapRecognizer : TKAbstractGestureRecognizer 8 | { 9 | public event Action gestureRecognizedEvent; 10 | 11 | public int numberOfTapsRequired = 1; 12 | public int numberOfTouchesRequired = 1; 13 | 14 | // taps that last longer than this duration will be ignored 15 | float _maxDurationForTapConsideration = 0.5f; 16 | 17 | float _maxDeltaMovementForTapConsideration = 1f; 18 | float _touchBeganTime; 19 | int _preformedTapsCount = 0; 20 | 21 | 22 | public TKTapRecognizer() : this( 0.5f, 1f ) 23 | {} 24 | 25 | 26 | public TKTapRecognizer( float maxDurationForTapConsideration, float maxDeltaMovementForTapConsiderationCm ) 27 | { 28 | _maxDurationForTapConsideration = maxDurationForTapConsideration; 29 | _maxDeltaMovementForTapConsideration = maxDeltaMovementForTapConsiderationCm; 30 | } 31 | 32 | 33 | internal override void fireRecognizedEvent() 34 | { 35 | if( gestureRecognizedEvent != null ) 36 | gestureRecognizedEvent( this ); 37 | } 38 | 39 | 40 | internal override bool touchesBegan( List touches ) 41 | { 42 | if( Time.time > _touchBeganTime + _maxDurationForTapConsideration && _preformedTapsCount != 0 && _preformedTapsCount < numberOfTapsRequired ) 43 | state = TKGestureRecognizerState.FailedOrEnded; 44 | 45 | if( state == TKGestureRecognizerState.Possible ) 46 | { 47 | for( int i = 0; i < touches.Count; i++ ) 48 | { 49 | // only add touches in the Began phase 50 | if( touches[i].phase == TouchPhase.Began ) 51 | { 52 | _trackingTouches.Add( touches[i] ); 53 | 54 | if( _trackingTouches.Count == numberOfTouchesRequired ) 55 | break; 56 | } 57 | } // end for 58 | 59 | if( _trackingTouches.Count == numberOfTouchesRequired ) 60 | { 61 | _touchBeganTime = Time.time; 62 | _preformedTapsCount = 0; 63 | state = TKGestureRecognizerState.Began; 64 | 65 | return true; 66 | } 67 | } 68 | 69 | return false; 70 | } 71 | 72 | 73 | internal override void touchesMoved( List touches ) 74 | { 75 | if( state == TKGestureRecognizerState.Began ) 76 | { 77 | // did we move? 78 | for( var i = 0; i < touches.Count; i++ ) 79 | { 80 | if ( 81 | ((Math.Abs(touches[i].position.x - touches[i].startPosition.x) / TouchKit.instance.ScreenPixelsPerCm) > _maxDeltaMovementForTapConsideration) || 82 | ((Math.Abs(touches[i].position.y - touches[i].startPosition.y) / TouchKit.instance.ScreenPixelsPerCm) > _maxDeltaMovementForTapConsideration) 83 | ) 84 | { 85 | state = TKGestureRecognizerState.FailedOrEnded; 86 | break; 87 | } 88 | } 89 | } 90 | } 91 | 92 | 93 | internal override void touchesEnded( List touches ) 94 | { 95 | if( state == TKGestureRecognizerState.Began && ( Time.time <= _touchBeganTime + _maxDurationForTapConsideration ) ) 96 | { 97 | ++_preformedTapsCount; 98 | if( _preformedTapsCount == numberOfTapsRequired ) 99 | state = TKGestureRecognizerState.Recognized; 100 | } 101 | else 102 | { 103 | state = TKGestureRecognizerState.FailedOrEnded; 104 | } 105 | } 106 | 107 | } 108 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKTapRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e33f2100ab364510815a15f9fc0503d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKTouchPadRecognizer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | 8 | public class TKTouchPadRecognizer : TKAbstractGestureRecognizer 9 | { 10 | public event Action gestureRecognizedEvent; 11 | public event Action gestureCompleteEvent; 12 | 13 | public AnimationCurve inputCurve = AnimationCurve.Linear( 0.0f, 0.0f, 1.0f, 1.0f ); 14 | public Vector2 value; 15 | 16 | 17 | /// 18 | /// the constructor ensures we have a frame to work with for this recognizer 19 | /// 20 | public TKTouchPadRecognizer( TKRect frame ) 21 | { 22 | boundaryFrame = frame; 23 | } 24 | 25 | 26 | internal override void fireRecognizedEvent() 27 | { 28 | if( gestureRecognizedEvent != null ) 29 | gestureRecognizedEvent( this ); 30 | } 31 | 32 | 33 | internal override bool touchesBegan( List touches ) 34 | { 35 | if( state == TKGestureRecognizerState.Possible ) 36 | { 37 | for( var i = 0; i < touches.Count; i++ ) 38 | { 39 | // only add touches in the Began phase 40 | if( touches[i].phase == TouchPhase.Began ) 41 | _trackingTouches.Add( touches[i] ); 42 | } 43 | 44 | if( _trackingTouches.Count > 0 ) 45 | { 46 | state = TKGestureRecognizerState.Began; 47 | 48 | // call through to touchesMoved so we set the value and set the state to RecognizedAndStillRecognizing which triggers the recognized event 49 | touchesMoved( touches ); 50 | } 51 | } 52 | 53 | return false; 54 | } 55 | 56 | 57 | internal override void touchesMoved( List touches ) 58 | { 59 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing || state == TKGestureRecognizerState.Began ) 60 | { 61 | var currentLocation = touchLocation(); 62 | value = currentLocation - boundaryFrame.Value.center; 63 | 64 | // normalize from 0 - 1 and clamp 65 | value.x = Mathf.Clamp( value.x / ( boundaryFrame.Value.width * 0.5f ), -1f, 1f ); 66 | value.y = Mathf.Clamp( value.y / ( boundaryFrame.Value.height * 0.5f ), -1f, 1f ); 67 | 68 | // apply our inputCurve 69 | value.x = inputCurve.Evaluate( Mathf.Abs( value.x ) ) * Mathf.Sign( value.x ); 70 | value.y = inputCurve.Evaluate( Mathf.Abs( value.y ) ) * Mathf.Sign( value.y ); 71 | 72 | state = TKGestureRecognizerState.RecognizedAndStillRecognizing; 73 | } 74 | } 75 | 76 | 77 | internal override void touchesEnded( List touches ) 78 | { 79 | // remove any completed touches 80 | for( var i = 0; i < touches.Count; i++ ) 81 | { 82 | if( touches[i].phase == TouchPhase.Ended ) 83 | _trackingTouches.Remove( touches[i] ); 84 | } 85 | 86 | // if we had previously been recognizing fire our complete event 87 | if( state == TKGestureRecognizerState.RecognizedAndStillRecognizing ) 88 | { 89 | if( gestureCompleteEvent != null ) 90 | gestureCompleteEvent( this ); 91 | } 92 | 93 | value = Vector2.zero; 94 | state = TKGestureRecognizerState.FailedOrEnded; 95 | } 96 | 97 | 98 | public override string ToString() 99 | { 100 | return string.Format( "[{0}] state: {1}, value: {2}", this.GetType(), state, value ); 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /Assets/TouchKit/Recognizers/TKTouchPadRecognizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 884f51553239d423d859e6adb04b1fc8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/TouchKit/TouchKit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e065ffc7dbca743ee9cef1b5106b0d26 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MaxstARSDK_Unity_Sample 2 | MaxstARSDK Unity extra samples for Unity3d. 3 | 4 | You can find extra samples from link below. 5 | https://github.com/maxstdev/MaxstARSDK_Unity_Sample/tree/master/Assets/ExtraSample/Scenes 6 | 7 | * MaxstSDK must download at https://developer.maxst.com/MD/downloadsdk. 8 | --------------------------------------------------------------------------------