title: QML 3D basic example
body: <p>I am trying to create a basic QML application that will load a 3D model from a .obj file and display it on the screen and be able to rotate it along its axes during runtime. I went through some of the Qt examples and came up with the below code - most of which was borrowed from the working examples. But when I run it the model is not rendered properly.</p>
  
  <p>The actual model looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/L3kCm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L3kCm.jpg" alt="enter image description here"></a></p>
  
  <p>and currently my app shows up like </p>
  
  <p><img src="https://i.imgur.com/JnxiWWq.png" alt="this">.</p>
  
  <p>Here is the QML code -</p>
  
  <pre><code>import Qt3D.Core 2.12
  import Qt3D.Render 2.12
  import Qt3D.Extras 2.12
  
  Entity {
      id: sceneRoot
  
      Camera {
          id: camera
          projectionType: CameraLens.PerspectiveProjection
          fieldOfView: 45
          aspectRatio: 1820 / 1080
          nearPlane: 0.1
          farPlane: 1000.0
          position: Qt.vector3d(0.014, 0.956, 2.178)
          upVector: Qt.vector3d(0.0, 1.0, 0.0)
          viewCenter: Qt.vector3d(0.0, 0.7, 0.0)
      }
  
      Entity {
          components: [
              DirectionalLight {
                  intensity: 0.9
                  worldDirection: Qt.vector3d(0, 0.6, -1)
              }
          ]
      }
  
      RenderSettings {
          id: external_forward_renderer
          activeFrameGraph: ForwardRenderer {
              camera: camera
              clearColor: "transparent"
          }
      }
  
      Mesh {
          id: roboMesh
          source: "images/robo-obj-pose4/source/d2f0cff60afc40f5afe79156ec7db657.obj"
      }
  
      Entity {
          id: circleEntity
          property Material roboMaterial: PhongAlphaMaterial {
              alpha: 0.4
              ambient: "black"
              diffuse: "black"
              specular: "black"
              shininess: 10000
          }
  
          components: [roboMesh, roboMaterial]
      }
  }
  </code></pre>
  
  <p>What am I missing here? Sorry for a really silly question but I am totally new to Qt3D and am confused as to what else needs to go in my code.</p>