<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thomas Gorisse on Medium]]></title>
        <description><![CDATA[Stories by Thomas Gorisse on Medium]]></description>
        <link>https://medium.com/@thomasgorisse?source=rss-91a07340f1b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QPoKcelZ2sixokWyrJJ32A.jpeg</url>
            <title>Stories by Thomas Gorisse on Medium</title>
            <link>https://medium.com/@thomasgorisse?source=rss-91a07340f1b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:07:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thomasgorisse/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[3D is just Compose UI — how SceneView 3.0 changed everything]]></title>
            <link>https://thomasgorisse.medium.com/3d-is-just-compose-ui-how-sceneview-3-0-changed-everything-84e62902bce7?source=rss-91a07340f1b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/84e62902bce7</guid>
            <dc:creator><![CDATA[Thomas Gorisse]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 16:16:05 GMT</pubDate>
            <atom:updated>2026-03-16T19:22:31.617Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fYNEwXbc4BIj-iu0ckp0iA.png" /></figure><p>You already know how to build a Compose screen. A Column with some children. A Box with overlapping layers. You&#39;ve done it a hundred times.</p><p>What if a 3D scene worked exactly the same way?</p><pre>// A Compose UI screen<br>Column {<br>    Text(&quot;Title&quot;)<br>    Image(painter = painterResource(R.drawable.cover), contentDescription = null)<br>    Button(onClick = { /* ... */ }) { Text(&quot;Open&quot;) }<br>}</pre><pre>// A 3D scene with SceneView 3.0<br>Scene(modifier = Modifier.fillMaxSize()) {<br>    ModelNode(modelInstance = helmet, scaleToUnits = 1.0f, autoAnimate = true)<br>    LightNode(type = LightManager.Type.SUN)<br>}</pre><p>Same pattern. Same Kotlin. Same mental model — now with depth.</p><p>That’s the idea behind SceneView 3.0, and I want to show you what it means in practice.</p><h3>The problem with 3D on Android</h3><p>Before SceneView 3.0, adding a 3D model to an Android app looked roughly like this:</p><ol><li>Create a SceneView in XML layout</li><li>Create an ArFragment or wire up lifecycle callbacks manually</li><li>Load your model in onResume, check if the engine is ready, handle the async response</li><li>Add child nodes imperatively — parentNode.addChildNode(modelNode)</li><li>Remember to remove them in onPause. Or was it onStop? Don&#39;t forget destroy().</li><li>Debug why the camera isn’t showing, why the model is black, why everything breaks on rotation</li></ol><p>Even experienced engineers would spend a full day on a basic AR model placement. And the result felt bolted on — a separate rendering system living alongside your Compose UI, not part of it.</p><h3>SceneView 3.0: nodes are composables</h3><p>The 3.0 rewrite starts from a different premise: <strong>the scene graph should work like the Compose tree</strong>.</p><p>Nodes are composable functions. They enter the scene on first composition. They’re destroyed when they leave. State drives everything. The Compose runtime handles the lifecycle.</p><pre>var showHelmet by remember { mutableStateOf(true) }</pre><pre>Scene(modifier = Modifier.fillMaxSize()) {<br>    if (showHelmet) {<br>        ModelNode(modelInstance = helmet, scaleToUnits = 1.0f)<br>    }<br>}</pre><p>Toggle showHelmet to false and the node disappears — and is properly destroyed — without a single line of imperative cleanup. Toggle it back and the node reappears. This is just Compose.</p><h3>Nesting works the same way</h3><p>In Compose UI you nest children inside a Column or Box. In SceneView you nest child nodes inside any node&#39;s trailing lambda:</p><pre>Scene {<br>    // A pivot node at 0.5m height<br>    Node(position = Position(y = 0.5f)) {<br>        ModelNode(modelInstance = helmet)   // child: attached to the Node above<br>        LightNode(type = LightManager.Type.POINT)  // sibling: also a child<br>    }<br>}</pre><p>The NodeScope trailing lambda is the 3D equivalent of a Column { } content block. Every node type — ModelNode, LightNode, CubeNode, SphereNode, CylinderNode, PlaneNode, ImageNode, ViewNode, MeshNode — accepts a content lambda for children.</p><h3>Async loading is automatic</h3><p>Loading a 3D model takes time. In 3.0, rememberModelInstance handles it the Compose way: it returns null while the file loads, then triggers recomposition when it&#39;s ready.</p><pre>Scene {<br>    // null while loading → node doesn&#39;t exist<br>    // non-null when ready → node appears<br>    rememberModelInstance(modelLoader, &quot;models/helmet.glb&quot;)?.let { instance -&gt;<br>        ModelNode(modelInstance = instance, scaleToUnits = 1.0f)<br>    }<br>}</pre><p>No callbacks, no loading states to manage, no isLoading boolean. The conditional let block means the node simply doesn&#39;t exist until the model is ready. When it&#39;s ready, Compose recomposes and the node appears.</p><h3>The entire resource lifecycle in remember</h3><p>Every Filament resource — the engine, loaders, environment, camera — is a remembered value with automatic cleanup:</p><pre>@Composable<br>fun ModelViewerScreen() {<br>    val engine = rememberEngine()<br>    val modelLoader = rememberModelLoader(engine)<br>    val environmentLoader = rememberEnvironmentLoader(engine)</pre><pre>    val modelInstance = rememberModelInstance(modelLoader, &quot;models/helmet.glb&quot;)<br>    val environment = rememberEnvironment(environmentLoader) {<br>        environmentLoader.createHDREnvironment(&quot;environments/sky_2k.hdr&quot;)!!<br>    }</pre><pre>    Scene(<br>        modifier = Modifier.fillMaxSize(),<br>        engine = engine,<br>        modelLoader = modelLoader,<br>        environment = environment,<br>        cameraManipulator = rememberCameraManipulator(),<br>        mainLightNode = rememberMainLightNode(engine) { intensity = 100_000.0f }<br>    ) {<br>        modelInstance?.let { ModelNode(modelInstance = it, scaleToUnits = 1.0f, autoAnimate = true) }<br>    }<br>}<br>// All resources are destroyed automatically when the composable leaves the tree</pre><p>Compare this to the setup code required in v2.x. The difference is measured in hundreds of lines.</p><h3>AR works the same way</h3><p>ARScene is Scene with ARCore wired in. The content block becomes an ARSceneScope with AR-specific node composables — AnchorNode, HitResultNode, AugmentedImageNode, and more.</p><p>AR state is just Compose state. The scene reacts to it automatically.</p><pre>var anchor by remember { mutableStateOf&lt;Anchor?&gt;(null) }</pre><pre>ARScene(<br>    modifier = Modifier.fillMaxSize(),<br>    planeRenderer = true,<br>    onSessionUpdated = { _, frame -&gt;<br>        if (anchor == null) {<br>            anchor = frame.getUpdatedPlanes()<br>                .firstOrNull { it.type == Plane.Type.HORIZONTAL_UPWARD_FACING }<br>                ?.let { frame.createAnchorOrNull(it.centerPose) }<br>        }<br>    }<br>) {<br>    anchor?.let { a -&gt;<br>        AnchorNode(anchor = a) {<br>            ModelNode(modelInstance = helmet, scaleToUnits = 0.5f)<br>        }<br>    }<br>}</pre><p>When the plane is detected, anchor becomes non-null. Compose recomposes. AnchorNode enters the composition. The model appears in the physical world. When anchor is cleared, everything is cleaned up. No session.detachAnchor(), no node.setParent(null), no node.destroy().</p><p>Pure Compose semantics, in AR.</p><h3>The use case nobody talks about: subtle 3D</h3><p>Most 3D library demos show a rotating helmet on a black background. Impressive, but it raises the obvious question: <em>who needs that in a real app?</em></p><p>The more interesting question is: <strong>what happens when 3D is easy enough to add to a screen where it’s not the main feature?</strong></p><p>SceneView 3.0 is small enough, and the API is familiar enough, that 3D becomes a finishing touch rather than a major feature. A few examples:</p><h3>Product image → product viewer</h3><p>Replace a static Image in your product detail screen with a Scene. The product rotates slowly. The user can orbit it with one finger. This is a better experience and it&#39;s about 10 extra lines of code.</p><pre>Box(modifier = Modifier.fillMaxWidth().height(300.dp)) {<br>    // Replace this Image:<br>    // Image(painter = painterResource(R.drawable.shoe), ...)</pre><pre>    // With this Scene:<br>    val modelInstance = rememberModelInstance(modelLoader, &quot;models/shoe.glb&quot;)<br>    Scene(modifier = Modifier.fillMaxSize(), cameraManipulator = rememberCameraManipulator()) {<br>        modelInstance?.let { ModelNode(modelInstance = it, scaleToUnits = 1.0f) }<br>    }<br>}</pre><h3>Data visualization</h3><p>A 3D bar chart or rotating globe inside a dashboard widget. The data is still Compose state — you’re just rendering it in 3D.</p><h3>Animated avatar</h3><p>A small animated character in a profile header or onboarding screen. The character breathes or waves. It’s made of CubeNode and CylinderNode composables driven by rememberInfiniteTransition.</p><h3>Augmented annotations</h3><p>A ViewNode renders Compose UI as a 3D billboard inside an AR scene. Show a product name and price floating next to the object in AR — a standard Text composable, just positioned in 3D space.</p><h3>Getting started</h3><p>Add the dependency:</p><pre>// 3D only<br>implementation(&quot;io.github.sceneview:sceneview:3.0.0&quot;)</pre><pre>// 3D + AR<br>implementation(&quot;io.github.sceneview:arsceneview:3.0.0&quot;)</pre><p>The minimal 3D scene:</p><pre>Scene(modifier = Modifier.fillMaxSize()) {<br>    rememberModelInstance(rememberModelLoader(rememberEngine()), &quot;models/helmet.glb&quot;)?.let {<br>        ModelNode(modelInstance = it, scaleToUnits = 1.0f)<br>    }<br>}</pre><p>That’s 3 lines. A photorealistic 3D model, rendered with Filament, in your Compose UI.</p><h3>Links</h3><ul><li><strong>GitHub</strong>: <a href="https://github.com/SceneView/sceneview-android">github.com/SceneView/sceneview-android</a></li><li><strong>API Reference (3D)</strong>: <a href="https://sceneview.github.io/api/sceneview-android/sceneview/">sceneview.github.io/api/sceneview-android/sceneview</a></li><li><strong>API Reference (AR)</strong>: <a href="https://sceneview.github.io/api/sceneview-android/arsceneview/">sceneview.github.io/api/sceneview-android/arsceneview</a></li><li><strong>Discord</strong>: <a href="https://discord.gg/UbNDDBTNqb">discord.gg/UbNDDBTNqb</a></li><li><strong>Migration guide</strong>: <a href="https://github.com/SceneView/sceneview-android/blob/main/MIGRATION.md">MIGRATION.md</a></li></ul><p><em>SceneView is open source. Built with Google Filament and ARCore.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84e62902bce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android View LifecycleOwner Extensions = Lifecycle + LifecycleScope on any View]]></title>
            <link>https://thomasgorisse.medium.com/android-view-lifecycleowner-extensions-lifecycle-lifecyclescope-on-any-view-b97d62d5201f?source=rss-91a07340f1b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b97d62d5201f</guid>
            <category><![CDATA[lifecycleowner]]></category>
            <category><![CDATA[coroutine]]></category>
            <category><![CDATA[lifecycle]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Thomas Gorisse]]></dc:creator>
            <pubDate>Tue, 19 Oct 2021 21:10:39 GMT</pubDate>
            <atom:updated>2021-10-23T20:36:27.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Dx7noO4Zo9KK7L6xCuIRg.png" /></figure><p>View Lifecycle has always been a big subject on Android. Comparing to Activity and Fragment which have well known lifecycle states (<strong><em>onCreate, onResume, …, onDestroy</em></strong>) the view states had never been very clear.</p><p>Even if you could say that we can deal with the top view container (Activity or Fragment) to manage child views states, they are a lot of cases where we need to know the view state independently from the Activity/Fragment like recycler items, custom views or just because some actions are linked to a view and should not be exposed at the Activity level (View animation start/stop, view countdown timer,…)</p><p>I know that you are maybe thinking</p><blockquote>Why not just using onAttachedToWindow() and onDetachedFromWindow()?</blockquote><p>First, because those two functions, just like their naming <em>(</em>w<em>hat is a Window on Android?)</em> are not clear and secondly because in 12 years of Android development using it, I never really understood when they are called and just used it just because there were no other callback on view states. Even if we can also add an <a href="https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener"><em>OnAttachStateChangeListener</em></a><em> </em>to every view without having to create a custom view, since the listener interface has two java functions, we have to create boilerplate code with an <em>object:OnAttachStateChangeListener </em>instead of just having a lambda callback.</p><h3>So, what can we do to have a clear reusable LifecycleOwner just like we have on Activity and Fragment and without having to extend every Android View we use?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5EOw3GwZb1w9OadI.jpg" /></figure><p>Thanks to Kotlin Extensions, we will be able to create some View extension functions in a separate file and use it everywhere in our project.</p><p>Kotlin extension functions are not perfect and should be used with caution but are exactly what we need here.</p><h3>How to retrieve the View LifecycleOwner and keep the reference to it on an extension function?</h3><ul><li>We will locate the <a href="https://developer.android.com/reference/android/arch/lifecycle/LifecycleOwner"><em>LifecycleOwner</em></a><em> </em>responsible for managing the <em>View</em> once the View is attach and apply the Fragment/Activity state to it.</li><li>To keep the Lifecycle reference without having access to a variable we put it on a view tag (Extension function do not have instances).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d15e53061a562448ce859df55e052126/href">https://medium.com/media/d15e53061a562448ce859df55e052126/href</a></iframe><p>And that’s it!!!</p><p>This function is calling the newly introduced <em>findViewTreeLifecycleOwner()</em> which goes up in the view tree to retrieve the first parent implementing <em>LifecycleOwner</em> <em>= First parent Fragment or parent Activity</em></p><p>Take care that the call to <em>findViewTreeLifecycleOwner() </em>is done after the view attachment else it will return null. But our function has it own lifecycle (<em>LifecycleRegistry </em>implementation of the abstract <em>Lifecycle </em>class) which is in state INITIALISE until attached.</p><p>You can also add more functions around this one in order to make a cleaner code reusing like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9da40b4954a476516f8f42f19aee1e11/href">https://medium.com/media/9da40b4954a476516f8f42f19aee1e11/href</a></iframe><p>The complete View extension class containing all you need is here:</p><h4><a href="https://github.com/ThomasGorisse/AndroidViewLifecycle/blob/dd1c0ead56d9d6a38c6e1b8b73d63b4f93168cb4/android-view-lifecycle/src/main/java/com/gorisse/thomas/lifecycle/View.kt">GitHub/ThomasGorisse/AndroidViewLifecycle/View.kt</a></h4><p>Fill free to copy/paste it and visit the repository for samples.</p><h4><strong>Or Just add the dependency if you use it in multiple projects</strong>:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d9e3347389c70eea421a9704ad203b6/href">https://medium.com/media/1d9e3347389c70eea421a9704ad203b6/href</a></iframe><h3>Now let’s talk about what a Lifecycle and LifecycleScope can help you doing:</h3><p>Remember, no need for custom view since all properties and functions are defined as View extensions.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7174fd8c468eceac792e04792db09c6c/href">https://medium.com/media/7174fd8c468eceac792e04792db09c6c/href</a></iframe><h3>Samples</h3><h4>View Lifecycle</h4><p>Listen or execute when a View lifecycle state occurred</p><ul><li>Invoke an action every time the view becomes resumed</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de78c1881e98bc2f59d981350aabf097/href">https://medium.com/media/de78c1881e98bc2f59d981350aabf097/href</a></iframe><ul><li>Invoke actions once, when the view is at least at a state</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/437183c8a49be44f542df28486943bc6/href">https://medium.com/media/437183c8a49be44f542df28486943bc6/href</a></iframe><p><em>= If the view is already resumed the action will be performed immediately, otherwise the action will be performed after the view is next resumed in all the cases, your action will be invoked only one time.</em></p><ul><li>Perform an action when the view is destroyed:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dc6f5e94705957ac67deb40c9494c9e/href">https://medium.com/media/7dc6f5e94705957ac67deb40c9494c9e/href</a></iframe><h4>View LifecycleScope</h4><p>Launch a coroutine and auto cancel it when the view sate is destroyed</p><ul><li>Launch and run a given block when the view Lifecycle state is at least resumed. The returned Job will be cancelled when the view is destroyed</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be0741408f5e3eb5b18a83c2367f92f8/href">https://medium.com/media/be0741408f5e3eb5b18a83c2367f92f8/href</a></iframe><p><em>= When the view is detached or the Fragment or FragmentActivity container is destroyed, if loadNetworkData() is not finished, the network call is cancelled.</em></p><ul><li>Launch a repeating call and auto cancel it when the view is destroyed (<strong>TimerTask Coroutine equivalent</strong>). The returned Job will be cancelled when the view is destroyed.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6ec423664ffbc3f214cdc6e133dc28c/href">https://medium.com/media/c6ec423664ffbc3f214cdc6e133dc28c/href</a></iframe><p><em>= When the view is detached or the Fragment or FragmentActivity container is destroyed, the while loop stops.</em></p><p>GitHub Repository: <a href="https://github.com/ThomasGorisse/AndroidViewLifecycle/">https://github.com/ThomasGorisse/AndroidViewLifecycle/</a></p><p>Author: <a href="https://github.com/ThomasGorisse">https://github.com/ThomasGorisse/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b97d62d5201f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make an Android AR (Augmented Reality) app in 2022]]></title>
            <link>https://medium.com/make-an-android-ar-augmented-reality-app-for/make-an-ar-augmented-reality-app-for-android-in-2022-48a1711562bb?source=rss-91a07340f1b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/48a1711562bb</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[sceneform]]></category>
            <category><![CDATA[ar]]></category>
            <dc:creator><![CDATA[Thomas Gorisse]]></dc:creator>
            <pubDate>Sun, 10 Oct 2021 13:26:54 GMT</pubDate>
            <atom:updated>2022-01-31T17:17:10.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCSiF0NqCbzFVdV3wEtKLA.png" /></figure><h3>Create an Android AR application</h3><p>You probably came here because you are an <strong>Android Developer</strong> who want to create an <strong>AR app for Android</strong> but can’t find the way to do it <strong>easily</strong> and <strong>freely </strong>just like you do with other <em>gradle dependencies</em> you already use.</p><h4>List of Android AR SDKs</h4><p>This article only concerns Android “standard” developers. I’m not saying that you shouldn’t use other ways to build your AR app. If you are or want to be:</p><ul><li><strong>OpenGL developer:</strong> You can directly go to the <a href="https://github.com/google-ar/arcore-android-sdk">ARCore SDK</a></li><li><strong>Unity/C# developer:</strong> The <a href="https://github.com/google-ar/arcore-unity-sdk">ARCore SDK for Unity</a> is for you</li><li><strong>Android Java/Kotlin developer: </strong>You are in the right place!!!</li></ul><p>Maybe you have already searched for it and seen some “<a href="https://www.infoq.com/articles/augmented-reality-best-skds/">Top 10 tools to build AR app</a>&quot; = private solutions with an obscure SDK to pay and install outside of Android Studio or just a company that sells AR apps to clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NhoI9Z1XDtpyyLSY_dedGg.png" /></figure><p>Or you clicked on the <a href="https://developers.google.com/ar/develop/java/quickstart"><strong>ARCore Android SDK</strong></a><strong> </strong>guide and decided to follow it until you discovered you have to use some strange code you have never seen before as an Android developer = <strong>OpenGL</strong> (low level complex 3D rendering)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0C9EnjZ-tCmuag7TUVOcmg.png" /></figure><p>You will have to deal with even more complex very low level coding languages like .vert and .frag asset files called <strong>Fragment Shaders </strong>which are programmatic screen pixels manipulation functions</p><p>Or you went to the <a href="https://github.com/google-ar/arcore-unity-sdk"><strong>ARCore SDK for Unity</strong></a> repository which is a good solution for things like gaming but requires to install/learn Unity/C# and that is not so simple to integrate as a “Standard&quot; Android application and even more as a subpart of your existing app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8mJa1S2vAFIJdOMcZT0aQ.png" /></figure><p>Even worst, your application will have to integrate the quite big Unity Engine and target different processor architectures (ARM, x86,…)</p><p>Testing and app debugging across Unity can also become a little bit annoying for a regular Android Studio user</p><p>If you are still interested, here is a good article from <a href="https://juliensalvi.medium.com/">Julien Salvi</a>: <a href="https://medium.com/swlh/unity-as-a-library-bring-unity-features-to-your-android-app-9936bea9b775">Unity as a Library: Bring Unity Features to Your Android App</a></p><p>Or you finally found the <a href="https://github.com/google-ar/sceneform-android-sdk"><strong>Sceneform SDK for Android</strong></a> which makes you think</p><blockquote>That’s exactly what I was looking for. A simple Gradle dependency that I can use just like other librairies I’m using when making an Android app with Android Studio and made by Google.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GrHwpGscqmIvqS9Hv8Tjw.png" /></figure><h3>But…</h3><h4>Why is this Google repository marked as archived and why did Google stopped working on it?</h4><p>The answer from Google IO 2021 ARCore team can be resumed as</p><blockquote>We no longer maintain Sceneform but the code is open sourced so do what you want with it. We won’t work on it anymore</blockquote><blockquote>If you want to make an Android AR app, you now must deal with OpenGL by using ARCore Android SDK or with Unity using ARCore SDK for Unity</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJrfZt9j2CNs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJrfZt9j2CNs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJrfZt9j2CNs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/18d2400bac54a1f929d2cdb8cfbd3921/href">https://medium.com/media/18d2400bac54a1f929d2cdb8cfbd3921/href</a></iframe><p>Ok, so at this point, you could think</p><blockquote>That is really discouraging but let’s give a try with the latest Sceneform archived version (1.16) since it’s the only confortable solution for my case.</blockquote><h3>But…</h3><h4>When following the archived Google Sceneform tutorials you will quickly discover that it’s not usable anymore since in 2 years a lot of things have changed in the Android Development world</h4><p><strong>The Google Sceneform Tools plugin is not compatible anymore with Android Studio</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*l33Rz8fYmLLexqQBbfNCEw.png" /></figure><p>You will face a “<em>Plugin error: Plugin ‘Google Sceneform Tools (Beta)’ is not compatible with your IntelliJ IDEA</em>” (Android Studio) when trying to install the plugin that Google Sceneform needs to convert your 3D models to SFB format. As describe in those issues:</p><ul><li><a href="https://github.com/google-ar/sceneform-android-sdk/issues/1057"><em>Google Sceneform Tools (Beta) plugin crashes Android Studio 3.6</em></a></li><li><a href="https://github.com/googlecodelabs/arcore-augmentedimage-intro/issues/6"><em>Getting error during Importing the maze model</em></a></li><li><a href="https://stackoverflow.com/questions/64573442/plugin-google-sceneform-tools-beta-is-incompatible-supported-only-in-intel"><em>Plugin “Google Sceneform Tools (Beta)” is incompatible (supported only in IntelliJ IDEA)</em></a></li></ul><p><strong>The Google Sceneform SDK is based on very old android libraries dependencies</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*-EZm7C84nOQ06JgzrJaczA.png" /></figure><p>If you have finally made your app with Sceneform Archived, you will probably discover an <strong>exception running it</strong> because<strong> </strong>it is <strong>based on Android Support </strong>library and<strong> not on AndroidX</strong> = Runtime Exception if your app is using AndroidX (AppCompat, Fragments,…)</p><p>Even if you go inside the Sceneform Archived code and make every changes to make it work with AndroidX, the usage of things like <strong>Augmented Face, Augmented Images, Depth,.. </strong>and all the stuff that ARCore has bring during last years are not there: Sceneform was archived with ARCore 1.16.0 (while ARCore current version is 1.27.0!!!!)</p><p><strong>That’s just because those ARCore functionalities were not implemented by latest Sceneform when the repository was archived.</strong></p><p>Even more problematic, some of the last phones added to ARCore compatibility list will not work with your app using Sceneform Archived.</p><h3>But don’t worry…</h3><h4>Everything has a solution thanks to the Android Developers Community</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Ah4m_FRVXZnNIQoT_ev0fg.png" /></figure><p><strong>As an old Android Developer when I saw the situation 2 years ago, I just thought</strong></p><blockquote>That’s a shame, AR apps seems to let me do so much cool things that I can quite quickly and easily integrate as an Android Developer using Sceneform.<br>Does anyone is going to do something about it?</blockquote><p>That’s where I found this discussion</p><p><a href="https://github.com/google-ar/arcore-android-sdk/issues/1049">Status of ARCore post sceneForm abandonment</a></p><p>After a long discussion thread of AR passionate developers just like me, we decided to continue making Sceneform alive here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fy9zaMuejNz-mQn0MWxWPQ.png" /></figure><h4><a href="https://github.com/SceneView/sceneform-android">https://github.com/SceneView/sceneform-android</a></h4><h4>We called it Sceneform Maintained and it should solve all your previous frustrations:</h4><ul><li>No Android Studio plugin needed: Use gltf and glb 3D models files directly from assets, res/raw, local file or http/https url instead of sfa, sfb, fbx, obj,…</li><li>Latest versions of <a href="https://github.com/google-ar/arcore-android-sdk">ARCore SDK</a> and <a href="https://github.com/google/filament">Google Filament</a></li><li>Latest gradle dependencies including AndroidX, LifecycleScope/Coroutines (SceneView only),…</li><li>Available as mavenCentral() dependency</li><li>Augmented Images supported</li><li>Augmented Faces supported</li><li>glb or gltf for 3D models (animations supported)</li><li>hdr or ktx for Environement (IndirectLight + Skybox)</li><li>3D only usage supported and single dependency without ARCore (SceneView only)</li><li>VideoNode for MediaPlayer (mp4, avi,…) Video 3D Node</li><li>Horizontal/Vertical Plane Placement</li><li>Depth occlusion and placement (SceneView only)</li><li>InstantPlacement (SceneView only)</li><li>HdrLightEstimation with adjustements between more Spectacular or Realistic</li><li>Simple Model Viewer for basic usage, with only ArSceneView parameters (SceneView only)</li><li>Less OpenGL knowlege needed</li></ul><p>The usage is as simple as this:</p><ol><li>Add the dependency</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d1814ce0d67a0640c7cf88cde62c70f5/href">https://medium.com/media/d1814ce0d67a0640c7cf88cde62c70f5/href</a></iframe><p>1. Update your AndroidManifest.xml</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1e3d2f347a119b95500042eec0128dc/href">https://medium.com/media/a1e3d2f347a119b95500042eec0128dc/href</a></iframe><p>2. Add the View to your layout</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/027acc127121128d6437485b59d9658d/href">https://medium.com/media/027acc127121128d6437485b59d9658d/href</a></iframe><p>3. Edit your Activity or Fragment</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/785c6d4240b38679578e062278ea29b4/href">https://medium.com/media/785c6d4240b38679578e062278ea29b4/href</a></iframe><h3>… And that’s it!!!</h3><h3>You are all done making an Android App with AR capabilities</h3><p>For a quick test of what it actually help you build, you can install the test app here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*FFgNsimHssOuIsVMjFyWQA.png" /><figcaption><a href="https://play.google.com/store/apps/details?id=com.gorisse.thomas.ar.environmentlights">https://play.google.com/store/apps/details?id=com.gorisse.thomas.ar.environmentlights</a></figcaption></figure><ul><li>3D Animated Models with Android layout view attached</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*gP03jTBKPcsDfz_bGNt6Pw.gif" /></figure><ul><li>Augmented Images</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOgqiW1C_ifnZhH2ViD8Ww.gif" /></figure><ul><li>Augmented Faces</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*JnuP2nfkGYeu5QfTEuW9gA.gif" /></figure><ul><li>Cloud Anchors</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Prh-_xW5UUx1Q3EN.png" /></figure><ul><li>Video Textures</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*ar74ckMq_JVQYh8tqIEkww.gif" /></figure><ul><li>HDR Environment Lights</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9QP43nOSItU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9QP43nOSItU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9QP43nOSItU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/43bb83c64b98240a7234d53c9eb50bd8/href">https://medium.com/media/43bb83c64b98240a7234d53c9eb50bd8/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjpmWjigA3Ms%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjpmWjigA3Ms&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjpmWjigA3Ms%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fda7d7e51db5bdc51790c114cb12d326/href">https://medium.com/media/fda7d7e51db5bdc51790c114cb12d326/href</a></iframe><h4>And so much coming next…</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48a1711562bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/make-an-android-ar-augmented-reality-app-for/make-an-ar-augmented-reality-app-for-android-in-2022-48a1711562bb">Make an Android AR (Augmented Reality) app in 2022</a> was originally published in <a href="https://medium.com/make-an-android-ar-augmented-reality-app-for">Android AR Core App with Sceneform Maintained</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>