Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c31c686
add ARCore, ARKit, UnityARInterface
wilhelmberg Feb 20, 2018
4bef4a7
Mapbox AR code and examples
wilhelmberg Feb 20, 2018
b92ba88
add KalmanFilter
wilhelmberg Feb 21, 2018
9beee2d
some updated metas
wilhelmberg Feb 21, 2018
a431c0d
fix .gitignore to not ignore parts of ARCore
wilhelmberg Feb 21, 2018
c539488
add AR prefabs
wilhelmberg Feb 21, 2018
c605d33
fix .gitignore for .metas from temp files from docs generation
wilhelmberg Feb 21, 2018
d94d81f
add additional properties to `Location`
wilhelmberg Feb 21, 2018
01825ed
add helper class for onscreen console
wilhelmberg Feb 21, 2018
159bc4a
[wip] integrate AR
wilhelmberg Feb 22, 2018
7b4ca80
more logging for caching
wilhelmberg Feb 23, 2018
f6fdd6e
MBTilesCache: Windows fix for path and filenames with +260 chars
wilhelmberg Feb 26, 2018
e537ce6
add some logging to AbstractMap.cs
wilhelmberg Feb 26, 2018
8538f04
add editorconfig
wilhelmberg Feb 27, 2018
6d9e92c
debug messages around telem lib initialization
wilhelmberg Feb 27, 2018
6c79657
ARTableTop: test in Vienna
wilhelmberg Feb 28, 2018
65aa03d
ProjectSettings: enable AR on Android
wilhelmberg Feb 28, 2018
d11dc7d
remove Debug messages
wilhelmberg Feb 28, 2018
7976e72
fix typo in TelemetryAndroid.cs file name
wilhelmberg Feb 28, 2018
fd61dfd
add layers needed for AR demo to the project settings
wilhelmberg Feb 28, 2018
5a082ef
fix Unity's byte stripping for .Net 4.6 and IL2CPP
wilhelmberg Feb 28, 2018
df995d1
throw out uncessary stuff that comes with UnityARInterface and ARCore
wilhelmberg Feb 28, 2018
8fb8bd3
Merge branch 'develop' of github.com:mapbox/mapbox-unity-sdk into int…
wilhelmberg Mar 1, 2018
ff82ac2
update readme, add AR readme.
wilhelmberg Mar 1, 2018
5288cd1
update CHANGELOG
wilhelmberg Mar 1, 2018
cf6bc6a
wip integrate ar
wilhelmberg Mar 2, 2018
819289e
Throw away unused ARKit stuff.
abhishektrip Mar 5, 2018
d109b19
Merge branch 'develop' of github.com:mapbox/mapbox-unity-sdk into int…
wilhelmberg Mar 5, 2018
5464f07
Merge branch 'develop' of github.com:mapbox/mapbox-unity-sdk into int…
wilhelmberg Mar 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ sdkproject/Assets/WSATestCertificate.pfx.meta
# Documentation
docfx.zip
/docfx
api
#api
_site
src/Documentation/log.txt
obj.meta

# build
.vs/
Expand Down
204 changes: 204 additions & 0 deletions README-AR.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Mapbox-unity-sdk
### For Unity 2017.1+

**AR support requires Unity 2017.3+, Android 7+ (Nougat), iOS 11.3**

Find the [AR specific README here](README-AR.md).

If AR support is not needed these subfolders of `sdkproject/Assets/` maybe deleted:
* MapboxAR
* UnityARInterface
* GoogleARCore
* UnityARKitPlugin

(for 5.4x compatible versions, please use [this commit](https://github.com/mapbox/mapbox-unity-sdk/releases/tag/Last-official-Unity5x-support))

Tools for using Mapbox APIs with C# / Unity. If you'd like to contribute to the project, [read CONTRIBUTING.md](CONTRIBUTING.md).
Expand Down
1 change: 1 addition & 0 deletions documentation/docs/05-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#####
- Included EditorConfig file to enforce coding style
- Integration of previously seperate AR support https://github.com/mapbox/mapbox-unity-sdk/pull/544

### v.1.3.0
*12/18/2017*
Expand Down
10 changes: 10 additions & 0 deletions sdkproject/Assets/GoogleARCore.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions sdkproject/Assets/GoogleARCore/Configurations.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 53ac32fab2599402fb6d154adf4c1e40, type: 3}
m_Name: DefaultSessionConfig
m_EditorClassIdentifier:
m_matchCameraFramerate: 1
m_enablePlaneFinding: 1
m_enableLightEstimation: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions sdkproject/Assets/GoogleARCore/Examples.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions sdkproject/Assets/GoogleARCore/Examples/ComputerVision.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
Shader "AREdgeDetectionBackground"
{
Properties
{
_OverlayPercentage ("Overlay Percentage", Range (0.0, 1.0)) = 0.5
}

// For GLES3
SubShader
{
Pass
{
ZWrite Off

GLSLPROGRAM

#pragma only_renderers gles3

#ifdef SHADER_API_GLES3
#extension GL_OES_EGL_image_external_essl3 : require
#endif

uniform vec4 _UvTopLeftRight;
uniform vec4 _UvBottomLeftRight;

#ifdef VERTEX

#define kPortrait 1.0
#define kPortraitUpsideDown 2.0
#define kLandscapeLeft 3.0
#define kLandscapeRight 4.0

varying vec2 textureCoord;

void main()
{
#ifdef SHADER_API_GLES3
vec2 uvTop = mix(_UvTopLeftRight.xy, _UvTopLeftRight.zw, gl_MultiTexCoord0.x);
vec2 uvBottom = mix(_UvBottomLeftRight.xy, _UvBottomLeftRight.zw, gl_MultiTexCoord0.x);
textureCoord = mix(uvTop, uvBottom, gl_MultiTexCoord0.y);

gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
#endif
}

#endif

#ifdef FRAGMENT
varying vec2 textureCoord;
uniform samplerExternalOES _MainTex;
uniform sampler2D _ImageTex;
uniform float _OverlayPercentage;

void main()
{
#ifdef SHADER_API_GLES3
if (textureCoord.x < _OverlayPercentage)
gl_FragColor = texture(_MainTex, textureCoord);
else
{
vec4 color = texture2D(_ImageTex, textureCoord);
gl_FragColor.xyz = color.xxx;
}
#endif
}

#endif

ENDGLSL
}
}

FallBack Off
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading