Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AR Pet Showcase updated to match GearVRf PR #2005 #652

Open
wants to merge 363 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
a014c01
gvr-arpet: Link between some views and bluetooth connection
rachellimaa Sep 12, 2018
6e338e8
Fix load model issue
ragner Sep 12, 2018
de589c4
Code refactoring
andrenaveca Sep 12, 2018
7493add
Change initialization of app connection manager
andrenaveca Sep 12, 2018
e6c072e
Fix plane detection issue
ragner Sep 12, 2018
b668846
Fix pet loading delay
ragner Sep 12, 2018
311d956
Pre-load 3D model
ragner Sep 12, 2018
3a3195b
Update packages
andrenaveca Sep 13, 2018
176b869
Rename classes
andrenaveca Sep 13, 2018
c5d810b
Update framekwork
ragner Sep 13, 2018
2f7f912
Connection manager adjustments
andrenaveca Sep 13, 2018
41293ef
Rename method
andrenaveca Sep 13, 2018
c369522
Adjust synchronized method
andrenaveca Sep 14, 2018
3443786
gvr-arpet: adjusted views bluetooth connection
rachellimaa Sep 14, 2018
2fd2bbf
Use ConnectionMode to check which mode is being used
acosta Sep 14, 2018
5f7f7e4
Create TAG to be used in ShareAnchorMode debug messages
acosta Sep 14, 2018
0196b9c
Use PetContext in CloudAnchorManager
acosta Sep 14, 2018
7fb404b
Set progress bar duration according to guest or host mode
acosta Sep 14, 2018
040631e
Enable touch screen
ragner Sep 17, 2018
d73effc
Check the Cloud Anchor API key inside CloudAnchorManager
acosta Sep 17, 2018
f63ca5f
Disable cursor icon when touch is enabled
acosta Sep 17, 2018
e4cbdee
adjusted positions hud and edit views
rachellimaa Sep 17, 2018
62c6cbc
activated on hud the ball and edit modes
rachellimaa Sep 17, 2018
48713b5
Adjust physics
ragner Sep 18, 2018
0808309
Connection manager improvement
andrenaveca Sep 18, 2018
411b124
Disable call to connection test method in main class
andrenaveca Sep 18, 2018
64b1e88
Fix paired view and update border in status anchor mode
acosta Sep 18, 2018
bef284f
Adjust manager interface
andrenaveca Sep 18, 2018
a4e974e
adjusted text in center in views share anchor mode
rachellimaa Sep 18, 2018
9ec1450
Close hud in ball mode
rachellimaa Sep 18, 2018
e122b68
adjusted buffer size in views
rachellimaa Sep 19, 2018
0885b12
Make the host and clients be paired using Cloud Anchor and Connection…
acosta Sep 19, 2018
fd27221
Ajust pet position after plane's merge
ragner Sep 20, 2018
a56b51f
adjusted position of views in shared anchor mode
rachellimaa Sep 20, 2018
57cbd1d
Handle failure responses in host and resolve processes
acosta Sep 20, 2018
68dd0e7
Adjust connection interface
andrenaveca Sep 20, 2018
7d14064
Add message service
andrenaveca Sep 20, 2018
f8941f4
Adjust connection interface and move classes
andrenaveca Sep 20, 2018
6557b5b
Improve edit mode
ragner Sep 20, 2018
f1c85d8
Fix crash when reading string value
andrenaveca Sep 20, 2018
47b613c
Increase bluetooth discovery time
andrenaveca Sep 20, 2018
81c19df
Fix server device finder
andrenaveca Sep 20, 2018
fb2c6d4
Adjust connection interface
andrenaveca Sep 21, 2018
8fb60e1
Clear all scene objects when the Share Anchor is started in Guest mode
acosta Sep 21, 2018
183df62
Add connection manager and service usage examples in PetMain
andrenaveca Sep 21, 2018
30aca03
Add collision object to the pet
ragner Sep 21, 2018
eda9fd5
Use SharingService to send commands to the guests
acosta Sep 21, 2018
cfc6cf0
Delete unused code
andrenaveca Sep 21, 2018
e554521
Remove unused BTMessages
acosta Sep 21, 2018
396e95a
Fix view position
ragner Sep 22, 2018
d9f0846
Improvements to avoid null pointers
ragner Sep 22, 2018
c9d39e5
Rename receiving methods of sharing service
andrenaveca Sep 24, 2018
869b53d
Make the first detected plane be horizontal upward facing
acosta Sep 24, 2018
dd5b9f0
Don't use planes that are downward facing
acosta Sep 24, 2018
b12c783
adjusted positions in views
rachellimaa Sep 21, 2018
37909fc
Adjusted positions in Edit and Hud Modes
rachellimaa Sep 24, 2018
5b01e08
added ripple effect by clicking the hud buttons
rachellimaa Sep 24, 2018
25dedd3
fixed view scene object when added in view share anchor mode
rachellimaa Sep 24, 2018
f3a78a7
Enable dragging at long press
ragner Sep 24, 2018
483b0fb
Move the CloudAnchorManager's code to the managers folder
acosta Sep 24, 2018
66421e1
Show 'stay in position' view only after hosting the anchors
acosta Sep 24, 2018
a3576c5
Fix service error handling when a remote has been disconnected
andrenaveca Sep 24, 2018
cef1fce
Improve edit debug messages
ragner Sep 25, 2018
7fc9383
Handle error when resolving and loading shared cloud anchor
andrenaveca Sep 25, 2018
515ea2b
Show invitation view using thread UI
acosta Sep 25, 2018
b233484
Improve the progress bar
acosta Sep 25, 2018
0b2ea02
Adjust code
andrenaveca Sep 26, 2018
297b25b
Make the host send a message to show the 'pairing view' in the guests
acosta Sep 26, 2018
c8511a0
Change logic to resolve anchors to cloud anchor manager
andrenaveca Sep 26, 2018
72fff2e
Code adjustment
andrenaveca Sep 27, 2018
34f3707
Code adjustment
andrenaveca Sep 27, 2018
a8ae7c4
Handle error when resolving anchors
andrenaveca Sep 27, 2018
9ebfa5f
excluded scales in views
rachellimaa Sep 27, 2018
ace5b3f
Add roboto-bold font to project
andrenaveca Sep 27, 2018
da0bd76
Adjust view elements alignment
andrenaveca Sep 27, 2018
cf515a9
Set roboto_bold font to buttons of sharing view
andrenaveca Sep 27, 2018
82b4e6e
Set roboto_medium font to text of sharing view
andrenaveca Sep 27, 2018
f1b1e56
Delete unused file
andrenaveca Sep 28, 2018
eb5bfc0
Add missing copyright text to files
andrenaveca Sep 28, 2018
5511ae2
Add missing copyright text to files
andrenaveca Sep 28, 2018
d89dc9b
Delete unused file
andrenaveca Sep 28, 2018
3afa2d4
improvements in views
rachellimaa Sep 28, 2018
7380304
Fix service logic that handles remote responses
andrenaveca Oct 1, 2018
50e34dd
Rename package
andrenaveca Oct 1, 2018
e591355
Move Task class to common package
andrenaveca Oct 1, 2018
79ff07a
Add an interface for message service
andrenaveca Oct 1, 2018
83dac49
Adjust code
andrenaveca Oct 1, 2018
361f070
Delete unused file
andrenaveca Oct 1, 2018
e2f386d
Change int constants to string constants
andrenaveca Oct 1, 2018
d02c5a4
Adjust message service interface
andrenaveca Oct 1, 2018
750f81d
Fix message service responses handling
andrenaveca Oct 1, 2018
7e5ebfd
Set the pet's inital scale
acosta Oct 1, 2018
f0ca064
Create a constant for texture buffer size
acosta Oct 1, 2018
8a7ad83
improvements in hud view
rachellimaa Oct 1, 2018
a1da58a
centralized share anchor view
rachellimaa Oct 1, 2018
6047c72
Update message service interface
andrenaveca Oct 1, 2018
52a424c
Added back button in share anchor view
rachellimaa Oct 1, 2018
c480300
Changed UI in edit view
rachellimaa Oct 1, 2018
004f05b
improvements in views
rachellimaa Oct 2, 2018
e77e10b
Adjust message service interface
andrenaveca Oct 2, 2018
a41455f
Add SharedMixedReality
ragner Oct 2, 2018
034c5f3
Added border in play ball button
rachellimaa Oct 2, 2018
e9536ae
adjusted assets sizes in different devices
rachellimaa Oct 3, 2018
4912759
Make id generation synchronized
andrenaveca Oct 4, 2018
9e46a42
Add id property to shared object
andrenaveca Oct 4, 2018
9740d17
Add Shring loop
ragner Oct 4, 2018
f91a2b3
Don't start the dragging when it is already in dragging mode
acosta Oct 5, 2018
c061188
Create and set the material color only when the collision debug is ac…
acosta Oct 5, 2018
24a5dd8
Create global constants identifying all scene object types
andrenaveca Oct 5, 2018
73cca88
Delete unused file
andrenaveca Oct 5, 2018
f5e92e6
added icon in application
rachellimaa Oct 5, 2018
e0a3ab6
added splash screen
rachellimaa Oct 5, 2018
8606da6
Update Android SDK version to 7 (API 24), the minimum required by AR …
andrenaveca Oct 5, 2018
7610388
Adjust message service interface
andrenaveca Oct 8, 2018
a7889a5
Fix return when resolving CloudAnchor for an anchored object
andrenaveca Oct 8, 2018
098b05f
Fix connection manager initialization.
andrenaveca Oct 8, 2018
d984824
Add direction to throw the ball
ragner Oct 8, 2018
f9e6450
Fix message receiver methods handler
andrenaveca Oct 8, 2018
778fd4c
Adjust sharing interface
andrenaveca Oct 8, 2018
6865a3f
added views of the exception "no found guest or host"
rachellimaa Oct 8, 2018
f0a5adc
gvr-arcore: Fix compile error
ragner Oct 9, 2018
012844f
Fix crash when calling message service
andrenaveca Oct 9, 2018
74055ec
Replace map with sparse array
andrenaveca Oct 9, 2018
787e602
Adjust message service interface
andrenaveca Oct 9, 2018
423b55f
Implement shared objects layer
andrenaveca Oct 10, 2018
e289936
Improvement in Splash Screen
rachellimaa Oct 11, 2018
e5be0e4
added assets in views share anchor mode
rachellimaa Oct 11, 2018
2027d23
added view "point to same local"
rachellimaa Oct 11, 2018
d5d7b41
Adjust server finder return
andrenaveca Oct 11, 2018
dfe1d5e
Adjust message service receiver
andrenaveca Oct 11, 2018
76a8ca0
Increase time of connection phase
andrenaveca Oct 11, 2018
1c4adf4
Remove loading of pet model after pet model resolved
andrenaveca Oct 11, 2018
680f968
Adjust code
andrenaveca Oct 11, 2018
19c5364
Set pet mode to idle after its initialization
andrenaveca Oct 11, 2018
2cb206d
Improve movement functions
ragner Oct 15, 2018
8fa7531
Change message service API
andrenaveca Oct 15, 2018
6db2a5b
Add player object as camera child
andrenaveca Oct 15, 2018
33a95f0
Request location permission when the application starts
acosta Oct 15, 2018
71eda11
Change ball handler to initialize ball in player position instead camera
andrenaveca Oct 15, 2018
55cb2cd
Detach released object anchor from AR core
andrenaveca Oct 15, 2018
3965c77
Create ball throw handler event class to replace ball wrapper
andrenaveca Oct 15, 2018
02c1f2e
Don't check bouding at guest mode
ragner Oct 15, 2018
d7845e7
Disable planes detection when the app is in Guest mode
acosta Oct 16, 2018
e6f2306
Fix edit mode
ragner Oct 16, 2018
174f5b8
fix pet actions
ragner Oct 16, 2018
b73f67e
Use gvrf modelmatrix to set initial scale instead of arcore pose
Oct 16, 2018
8af222c
Add class to help debug with function to log a 4x4 matrix
Oct 16, 2018
1a86db8
added news views in share anchor mode
rachellimaa Oct 16, 2018
7e7f445
Shader to infinity plan
ragner Oct 17, 2018
b947433
added background save button
rachellimaa Oct 17, 2018
8a31916
Don't clean the objects when the app is in Guest mode anymore
acosta Oct 17, 2018
7d45a27
Send command to throw ball on remote
andrenaveca Oct 17, 2018
fd6cd12
improvements in hud view
rachellimaa Oct 17, 2018
97f4f29
Fix view layouts
ragner Oct 17, 2018
9e1aa6a
Fix compile error
ragner Oct 17, 2018
f088b68
Create other thread to fire callback errors in Resolve Anchors
acosta Oct 17, 2018
e4f0dcb
Replace Runnable with lambda functions in ShareAnchorMode
acosta Oct 17, 2018
725e2ec
Using rigid body reset to adjust planes transform
crbozz Oct 17, 2018
3e17ab2
Fix editing button size
ragner Oct 18, 2018
6264ab9
Change save text to upercase
ragner Oct 18, 2018
1b613a9
Let CloudAnchorManager informs the application that the hosting proce…
acosta Oct 18, 2018
05297c9
improvements in edit mode layout
rachellimaa Oct 18, 2018
7f18b84
Use gvrf model matrix instead of arcore pose to move and vereify if p…
Oct 18, 2018
16d4573
Update connection manager flow according UX guide
andrenaveca Oct 17, 2018
216d4bc
Free movement when guest or host
ragner Oct 18, 2018
8c0b400
Change to use model matrix on shared mode
Oct 18, 2018
077a7d0
Back to Hud after sharing anchor
ragner Oct 18, 2018
43afe00
Use anchor at shared mixed reality
ragner Oct 18, 2018
d5b3043
Show toast alerting cloud anchor API not configured
andrenaveca Oct 19, 2018
d3992f0
Create an anchor from the actual Pet's position
acosta Oct 19, 2018
4e3e0f7
Show toast related to Cloud Anchor API key in debug mode only
acosta Oct 19, 2018
900b411
Removed physics root
crbozz Oct 19, 2018
7b4bc20
Change hud according to pet mode
ragner Oct 19, 2018
e9b8f76
Adjust plane handler to post a typed event representing the detected …
andrenaveca Oct 19, 2018
030c640
Add service message to represent pet actions
andrenaveca Oct 19, 2018
4835782
Fix invitation finder when there is no host's invite available
acosta Oct 19, 2018
7564164
Handle 'no internet connection' in ShareAnchorMode
acosta Oct 19, 2018
230068c
Add missed method in SimpleMessageReceiver
acosta Oct 19, 2018
599c29e
Organize toasts in ShareAnchorMode
acosta Oct 19, 2018
6542e1d
added exception host view
rachellimaa Oct 19, 2018
bfaa77d
added main view when the host lose all connections
rachellimaa Oct 19, 2018
a7780b5
Checking if the internet has the "try again" button on host and resolve
rachellimaa Oct 19, 2018
11ab47e
Set guest pet state when host pet state changes
andrenaveca Oct 22, 2018
b755147
improvements when entering share anchor mode
rachellimaa Oct 22, 2018
b4bf12f
Fix guest movement
ragner Oct 22, 2018
799f281
Remove unused method from MixedReality API
acosta Oct 22, 2018
e39c14e
Remove unused interface (TargetObject)
acosta Oct 22, 2018
c0ad280
Exposes disconnect method of connection manager
andrenaveca Oct 22, 2018
8c192f8
Adjust UI
andrenaveca Oct 22, 2018
6f6262f
Use different visibility time for debug build
acosta Oct 23, 2018
1a07ce9
Layout for each button at edit
ragner Oct 23, 2018
6cd2346
Split sharing anchor layout into different views
andrenaveca Oct 23, 2018
88b3b27
Split hud layout view
ragner Oct 24, 2018
fd23719
Fix compile error
ragner Oct 24, 2018
a661600
Fix Hud animations
ragner Oct 25, 2018
409d6d2
Partial refactoring of sharing anchor mode
andrenaveca Oct 25, 2018
8b9052a
Fix resource reference id
andrenaveca Oct 25, 2018
4f2754b
Fix exit from Share mode when there is no connection/sharing
acosta Oct 25, 2018
ff3e8e4
Add disconnect view (host and guest) to HudView
acosta Oct 25, 2018
4456fea
Partial refactoring of sharing anchor mode
andrenaveca Oct 26, 2018
5000c6b
Add idle animation
ragner Oct 26, 2018
476e080
Add walk and run animations
ragner Oct 26, 2018
1344645
Add event listener to model's loader
ragner Oct 26, 2018
4163474
Fix splash screen
ragner Oct 26, 2018
7ef6e12
Add animations
ragner Oct 27, 2018
0acc614
Adjust walking animation
ragner Oct 28, 2018
f834eb5
Add touch handler to Main
ragner Oct 29, 2018
ba5de77
Add go to tap action
ragner Oct 29, 2018
3ea32a5
Fix go to tap at idle mode only
ragner Oct 29, 2018
ee17c32
Replace ball by bone
ragner Oct 29, 2018
8f65bce
Partial refactoring of sharing anchor mode
andrenaveca Oct 29, 2018
ef21a4b
Added missing import
crbozz Oct 30, 2018
a8a8d84
Pet takes the bone to player
ragner Oct 30, 2018
c5f40cc
Add grab animation
ragner Oct 30, 2018
91a9882
Pet is not anchored anymore
ragner Oct 30, 2018
aee19a1
Revert "Pet is not anchored anymore"
ragner Oct 30, 2018
3313eff
added back navigation
rachellimaa Oct 30, 2018
fd195c7
Exit from application even if there is nothing detected yet
acosta Oct 30, 2018
af0feca
Changed pet movement to the ball (bone)
crbozz Oct 30, 2018
f0ef94d
Try again Pet is not anchored anymore
ragner Oct 31, 2018
574a6df
Fix sharing pet movement
ragner Oct 31, 2018
ab35b0b
added application new icon
rachellimaa Nov 1, 2018
c7ac188
added new splash view
rachellimaa Nov 1, 2018
94e0ff6
Adjust character Y offset
Nov 1, 2018
e5a9aed
Fix pet scaling
ragner Nov 1, 2018
bb70fe6
Anchor sharing screen flow refactoring
andrenaveca Nov 1, 2018
7b9c9a5
Fix collider of AR planes
Nov 1, 2018
4041984
Fix grab bone
ragner Nov 1, 2018
554d9fd
Adjust view layout
andrenaveca Nov 1, 2018
9019c45
Fix bug in BT disconnection
andrenaveca Nov 1, 2018
4afce9e
Improvements on dragging support
acosta Oct 31, 2018
0970659
added Application Output Screen
rachellimaa Nov 1, 2018
cc37890
fix XML file strings
rachellimaa Nov 1, 2018
160f995
Add physics to selected plane only
ragner Nov 2, 2018
877531f
Fix go to tap
ragner Nov 2, 2018
e7672f8
Fix plane merging
ragner Nov 2, 2018
0013e3a
Adjust initial scale
ragner Nov 2, 2018
abfb951
Use pet's volume to min distances
ragner Nov 3, 2018
f787935
Adjust speed acording to pet size
ragner Nov 3, 2018
cea2d0f
Adjust min distance to bone toy
ragner Nov 3, 2018
09a0320
Adjust Ccd of physics plane
ragner Nov 3, 2018
d37468f
Fix min bone toy distance to pet
ragner Nov 3, 2018
977599e
Reduce bony toy size
ragner Nov 3, 2018
2bc3a0f
Fix shared plane
ragner Nov 3, 2018
a69230f
Makes pet's plane not infinity
ragner Nov 4, 2018
90246ea
Merge branch 'feature_arpet' of https://github.com/sidia-dev-team/Gea…
NolaDonato Nov 4, 2018
4777112
Modified arpet for updated mixedreality apis
NolaDonato Nov 4, 2018
4fb6dec
Colliders working again
ragner Nov 4, 2018
ddc172d
Configure far clipping
ragner Nov 4, 2018
81f71ee
Merge pull request #4 from ragner/arpet2
NolaDonato Nov 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion common.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
project.ext.hasBackend = false
if (project.hasProperty("hasBackend"))
project.ext.hasBackend = true
else
project.ext.hasBackend = false

if (file("../../../extra_properties.gradle").exists()) {
apply from: '../../../extra_properties.gradle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void onTouchStart(GVRSceneObject sceneObj, GVRPicker.GVRPickedObject pick
return;
}

if (mDraggingObject == null) {
if (mDraggingObject == null && pickInfo.motionEvent != null) {
mDraggingObject = sceneObj;

mYaw = sceneObj.getTransform().getRotationYaw();
Expand Down Expand Up @@ -200,7 +200,7 @@ public void onInside(GVRSceneObject sceneObj, GVRPicker.GVRPickedObject pickInfo

if (mDraggingObject == null) {
return;
} else {
} else if (pickInfo.motionEvent != null){
// get the current x,y hit location
float hitLocationX = pickInfo.motionEvent.getX();
float hitLocationY = pickInfo.motionEvent.getY();
Expand Down Expand Up @@ -262,7 +262,8 @@ private void addVirtualObject(float[] pose, VirtualObject andy) {
GVRAnchor anchor;

if (mVirtObjCount < MAX_VIRTUAL_OBJECTS) {
anchor = mixedReality.createAnchor(pose, andy);
anchor = mixedReality.createAnchor(pose);
anchor.attachSceneObject(andy);

mainScene.addSceneObject(anchor);
mVirtualObjects.add(anchor);
Expand Down
68 changes: 68 additions & 0 deletions gvr-arpet/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

apply plugin: 'com.android.application'

System.setProperty("appName", "gvr-arpet")

project.ext.hasBackend = true
project.ext.backend_monoscopic = true

if (file("../../common.gradle").exists()) {
apply from: '../../common.gradle'
} else if (file("../../../../GearVRf-Demos/common.gradle").exists()) {
apply from: '../../../../GearVRf-Demos/common.gradle'
}

def getPropertyOrDefault(propertyName, defaultValue) {
return project.hasProperty(propertyName) ? project.property(propertyName) : defaultValue
}

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
manifestPlaceholders = [cloudAnchorApiKey: getPropertyOrDefault("cloudAnchorApiKey", "")]
minSdkVersion 24
targetSdkVersion 28
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets.main {
jni.srcDirs = [] // no auto generation of Android.mk
jniLibs.srcDir 'libs' // pre-compiled libraries
}
}

dependencies {
// ARCore library
implementation 'com.google.ar:core:1.5.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'org.greenrobot:eventbus:3.1.1'
debugImplementation(name: 'MixedReality-debug', ext: 'aar')
releaseImplementation(name: 'MixedReality-release', ext: 'aar')
debugImplementation(name: 'gvrf-physics-debug', ext: 'aar')
releaseImplementation(name: 'gvrf-physics-release', ext: 'aar')
}
66 changes: 66 additions & 0 deletions gvr-arpet/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--/* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.gearvrf.arpet"
android:versionCode="1"
android:versionName="1.0">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- This tag indicates that this application requires ARCore. This results in the application
only being visible in the Google Play Store on devices that support ARCore. -->
<uses-feature
android:name="android.hardware.camera.ar"
android:required="true" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">

<activity
android:name="org.gearvrf.arpet.PetActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<!-- This tag indicates that this application requires ARCore. This results in the Google Play
Store downloading and installing ARCore along with the application. -->
<meta-data
android:name="com.google.ar.core"
android:value="required" />

<!-- This API key is used to share anchor using Google Cloud Anchor API -->
<meta-data
android:name="com.google.android.ar.API_KEY"
android:value="${cloudAnchorApiKey}" />

</application>

</manifest>
62 changes: 62 additions & 0 deletions gvr-arpet/app/src/main/assets/gvr.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->


<!--
This is a configuration file with default settings. You can assume that using this
one will receive the same effect as gvr_note4_empty.xml.
-->

<lens name="N4" >

<vr-app-settings
framebufferPixelsHigh="DEFAULT"
framebufferPixelsWide="DEFAULT"
showLoadingIcon="true"
useProtectedFramebuffer="false"
useSrgbFramebuffer="false" >

<mono-mode-parms
monoFullScreen="false"
monoMode="false" />

<mode-parms
allowPowerSave="true"
resetWindowFullScreen="true" />

<performance-parms
cpuLevel="2"
gpuLevel="2" />

<eye-buffer-parms
colorFormat="COLOR_8888"
depthFormat="DEPTH_24"
fov-y="DEFAULT"
multiSamples="2"
resolutionWidth="DEFAULT"
resolutionHeight="DEFAULT"
resolveDepth="false" />

<head-model-parms
eyeHeight="DEFAULT"
headModelDepth="DEFAULT"
headModelHeight="DEFAULT"
interpupillaryDistance="DEFAULT" />
</vr-app-settings>

</lens>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.