Open ghost opened 5 years ago
When you assign your renderable to the node it is null. The ModelRenderable Builder return a future callback wich means the renderable is build async. Just assign the renderable to the node in the 'thenAccept' callback.
You'll also need to forward onPause/onResume to the sceneView which starts and stops the Choreographer which controls the drawing . I implemented the scenview in a fragment, but you can see how I ended up doing it in https://github.com/googlesamples/sceneform-poly-browser/blob/master/app/src/main/java/com/google/devrel/ar/sample/polygallery/SceneformFragment.java
When you assign your renderable to the node it is null. The ModelRenderable Builder return a future callback wich means the renderable is build async. Just assign the renderable to the node in the 'thenAccept' callback.
can you please elaborate
Though it seems personal but spent 3 days but unable to figure why sceneform is not rendered package com.example.onkar.sceneform1;
import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity;
import com.google.ar.sceneform.Node; import com.google.ar.sceneform.Scene; import com.google.ar.sceneform.SceneView; import com.google.ar.sceneform.math.Vector3; import com.google.ar.sceneform.rendering.ModelRenderable;
public class MainActivity extends AppCompatActivity {
} using sceneform 1.6.0
thanks for help in advance