Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Loading an obj 3d model using Qt
Qt 6.11 is out! See what's new in the release blog

Loading an obj 3d model using Qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ram.peace
    wrote on last edited by
    #1

    I am new to Qt. I have a project where I want to load obj files. Could you point me to an example which loads obj file from the link: https://doc.qt.io/qt-6/quick3d-examples.html ?

    1 Reply Last reply
    0
    • johngodJ Offline
      johngodJ Offline
      johngod
      wrote on last edited by johngod
      #2

      Hi, it should be this one https://doc.qt.io/qt-6/qtquick3d-runtimeloader-example.html . Edit: Note this example uses gltf format, you may need to convert it. Also check the documentation regarding the balsam tool, that converts the assets to the quick 3d format. https://doc.qt.io/qt-6/qtquick3d-tool-balsam.html

      Also check this link https://www.qt.io/product/qt6/qml-book/ch12-qtquick3d-assets

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ram.peace
        wrote on last edited by
        #3

        Thank you.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ram.peace
          wrote on last edited by
          #4

          The example is very useful. It uses RuntimeLoader https://doc.qt.io/qt-6/qml-qtquick3d-assetutils-runtimeloader.html . The sample project loads obj files successfully. But if I want to load fbx files, I might want to use balsam tool. This sample loads the obj file directly from the source at runtime. Is there anyway I can load fbx files runtime without using balsam tool? I think Quick 3d internally uses assimp, which loads multiple formats?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved