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
Forum Updated to NodeBB v4.3 + New Features

Loading an obj 3d model using Qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 636 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 30 Jun 2024, 11:06 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
    • J Offline
      J Offline
      johngod
      wrote on 30 Jun 2024, 19:36 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 1 Jul 2024, 10:15 last edited by
        #3

        Thank you.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ram.peace
          wrote on 3 Jul 2024, 12:22 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

          1/4

          30 Jun 2024, 11:06

          • Login

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