java.lang.IllegalStateException: Matrix is singular and cannot be inverted.

GitHub | rpicolet | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Can't render Object3D with zero position and scale

    GitHub | 5 months ago | rpicolet
    java.lang.IllegalStateException: Matrix is singular and cannot be inverted.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Matrix is singular and cannot be inverted.

      at org.rajawali3d.math.Matrix4.inverse()
    2. org.rajawali3d.math
      Matrix4.setToNormalMatrix
      1. org.rajawali3d.math.Matrix4.inverse(Matrix4.java:348)
      2. org.rajawali3d.math.Matrix4.setToNormalMatrix(Matrix4.java:726)
      2 frames
    3. org.rajawali3d.materials
      Material.setModelMatrix
      1. org.rajawali3d.materials.Material.setModelMatrix(Material.java:1076)
      1 frame
    4. org.rajawali3d
      Object3D.render
      1. org.rajawali3d.Object3D.render(Object3D.java:300)
      2. org.rajawali3d.Object3D.render(Object3D.java:343)
      3. org.rajawali3d.Object3D.render(Object3D.java:343)
      4. org.rajawali3d.Object3D.render(Object3D.java:343)
      5. org.rajawali3d.Object3D.render(Object3D.java:343)
      6. org.rajawali3d.Object3D.render(Object3D.java:343)
      7. org.rajawali3d.Object3D.render(Object3D.java:343)
      8. org.rajawali3d.Object3D.render(Object3D.java:343)
      9. org.rajawali3d.Object3D.render(Object3D.java:343)
      10. org.rajawali3d.Object3D.render(Object3D.java:343)
      11. org.rajawali3d.Object3D.render(Object3D.java:343)
      12. org.rajawali3d.Object3D.render(Object3D.java:184)
      12 frames
    5. org.rajawali3d.scene
      Scene.render
      1. org.rajawali3d.scene.Scene.render(Scene.java:1135)
      2. org.rajawali3d.scene.Scene.render(Scene.java:1002)
      2 frames
    6. org.rajawali3d.renderer
      Renderer.onRenderFrame
      1. org.rajawali3d.renderer.Renderer.render(Renderer.java:420)
      2. org.rajawali3d.renderer.Renderer.onRender(Renderer.java:410)
      3. org.rajawali3d.renderer.Renderer.onRenderFrame(Renderer.java:385)
      3 frames
    7. com.stupidhardgames.stuawki
      Scene3DRenderer.onRenderFrame
      1. com.stupidhardgames.stuawki.control.scene3d.impl.Scene3DRenderer.onRenderFrame(Scene3DRenderer.java:64)
      1 frame
    8. org.rajawali3d.view
      SurfaceView$RendererDelegate.onDrawFrame
      1. org.rajawali3d.view.SurfaceView$RendererDelegate.onDrawFrame(SurfaceView.java:235)
      1 frame
    9. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1249)
      2 frames