Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Sceneform SDK v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictornvictor committed May 7, 2019
1 parent d7a504a commit 4b24cff
Show file tree
Hide file tree
Showing 22 changed files with 7,332 additions and 7,325 deletions.
7,301 changes: 7,301 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

7,300 changes: 0 additions & 7,300 deletions NOTICE

This file was deleted.

4 changes: 2 additions & 2 deletions samples/animation/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

// Sceneform
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform:animation:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
implementation "com.google.ar.sceneform:animation:1.9.0"
implementation 'com.android.support:design:28.0.0'
}

Expand Down
2 changes: 1 addition & 1 deletion samples/animation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
4 changes: 2 additions & 2 deletions samples/augmentedfaces/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ android {
dependencies {

// Provides ArFragment, and other Sceneform UX resources:
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"

// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
//api project(":sceneformux")

// Alternatively, use ArSceneView without the UX dependency.
//implementation "com.google.ar.sceneform:core:1.8.0"
//implementation "com.google.ar.sceneform:core:1.9.0"

implementation "com.android.support:appcompat-v7:28.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ protected void onCreate(Bundle savedInstanceState) {
public static boolean checkIsSupportedDeviceOrFinish(final Activity activity) {
if (ArCoreApk.getInstance().checkAvailability(activity)
== ArCoreApk.Availability.UNSUPPORTED_DEVICE_NOT_CAPABLE) {
Log.e(TAG, "Augmented Faces requires ArCore.");
Toast.makeText(activity, "Augmented Faces requires ArCore", Toast.LENGTH_LONG).show();
Log.e(TAG, "Augmented Faces requires ARCore.");
Toast.makeText(activity, "Augmented Faces requires ARCore", Toast.LENGTH_LONG).show();
activity.finish();
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/augmentedfaces/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion samples/augmentedimage/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation 'com.android.support:design:28.0.0'

// Use the Sceneform UX Package pre-built from Maven.
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"

// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
//api project(":sceneformux")
Expand Down
2 changes: 1 addition & 1 deletion samples/augmentedimage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion samples/chromakeyvideo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
implementation "com.android.support:design:28.0.0"

// Use the Sceneform UX Package pre-built from Maven.
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"

// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
//api project(":sceneformux")
Expand Down
2 changes: 1 addition & 1 deletion samples/chromakeyvideo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
4 changes: 2 additions & 2 deletions samples/hellosceneform/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ android {
dependencies {

// Provides ArFragment, and other Sceneform UX resources:
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"

// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
//api project(":sceneformux")

// Alternatively, use ArSceneView without the UX dependency.
//implementation "com.google.ar.sceneform:core:1.8.0"
//implementation "com.google.ar.sceneform:core:1.9.0"

implementation "com.android.support:appcompat-v7:28.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion samples/hellosceneform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion samples/solarsystem/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ android {
}

dependencies {
implementation "com.google.ar.sceneform:core:1.8.0"
implementation "com.google.ar.sceneform:core:1.9.0"
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:design:28.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion samples/solarsystem/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
4 changes: 2 additions & 2 deletions samples/videorecording/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ android {
dependencies {

// Provides ArFragment, and other Sceneform UX resources:
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"


// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
//api project(":sceneformux")

// Alternatively, use ArSceneView without the UX dependency.
//implementation "com.google.ar.sceneform:core:1.8.0"
//implementation "com.google.ar.sceneform:core:1.9.0"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
Expand Down
2 changes: 1 addition & 1 deletion samples/videorecording/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion sceneformux/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.ar.sceneform:plugin:1.8.0'
classpath 'com.google.ar.sceneform:plugin:1.9.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion sceneformux/ux/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ android {
}

dependencies {
api "com.google.ar.sceneform:core:1.8.0"
api "com.google.ar.sceneform:core:1.9.0"
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:design:28.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import com.google.ar.sceneform.rendering.Texture;
import com.google.ar.sceneform.rendering.Vertex;
import com.google.ar.sceneform.rendering.Vertex.UvCoordinate;
import java.nio.CharBuffer;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;

Expand Down Expand Up @@ -372,7 +372,7 @@ private void updateFaceMeshVerticesAndTriangles() {
vertices.remove(vertices.size() - 1);
}

CharBuffer indicesBuffer = augmentedFace.getMeshTriangleIndices();
ShortBuffer indicesBuffer = augmentedFace.getMeshTriangleIndices();
indicesBuffer.rewind();

// Only do this if the size doesn't match.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public float gapDeltaInches() {
return gesturePointersUtility.pixelsToInches(getGapDelta());
}

/** Cancels the gesture in progress. */
@Override
public void cancel() {
super.cancel();
}

@Override
protected boolean canStart(HitTestResult hitTestResult, MotionEvent motionEvent) {
if (gesturePointersUtility.isPointerIdRetained(pointerId1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onActivated(Node node) {

@Override
public void onUpdated(Node node, FrameTime frameTime) {
if (isTransforming()) {
if (isTransforming() || !isEnabled()) {
return;
}

Expand Down

0 comments on commit 4b24cff

Please sign in to comment.