Skip to content

Commit

Permalink
glTF Sample cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed Apr 9, 2021
1 parent fc6a8e4 commit 503a4ad
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.filament.gltfio.Animator;
import com.google.ar.core.Anchor;
import com.google.ar.core.HitResult;
import com.google.ar.core.Plane;
Expand All @@ -30,22 +29,6 @@ public class MainActivity extends AppCompatActivity implements BaseArFragment.On
private Renderable model;
private ViewRenderable viewRenderable;

private static class AnimationInstance {
Animator animator;
Long startTime;
float duration;
int index;

AnimationInstance(Animator animator, int index, Long startTime) {
this.animator = animator;
this.startTime = startTime;
this.duration = animator.getAnimationDuration(index);
this.index = index;
}
}

// private final Set<AnimationInstance> animators = new ArraySet<>();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -126,26 +109,4 @@ public void onTapPlane(HitResult hitResult, Plane plane, MotionEvent motionEvent
tigerTitleNode.setRenderable(viewRenderable);
tigerTitleNode.setEnabled(true);
}
//
// arFragment
// .getArSceneView()
// .
//
// getScene()
// .
//
// addOnUpdateListener(
// frameTime ->
//
// {
// Long time = System.nanoTime();
// for (AnimationInstance animator : animators) {
// animator.animator.applyAnimation(
// animator.index,
// (float) ((time - animator.startTime) / (double) SECONDS.toNanos(1))
// % animator.duration);
// animator.animator.updateBoneMatrices();
// }
// });
//}
}

0 comments on commit 503a4ad

Please sign in to comment.