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. Is there a way to load a STL or VRML(.wrl) file and show it with Qt Quick 3D?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to load a STL or VRML(.wrl) file and show it with Qt Quick 3D?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 556 Views 2 Watching
  • 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.
  • T Offline
    T Offline
    TobiasFalk42
    wrote on last edited by TobiasFalk42
    #1

    I want to load a STL(.stl or .step) or VRML(.wrl) file and display it as a model with Qt Quick 3D.
    I know that I need to convert it to the .mesh formate that Qt can use but is it possible to do this all in code dynamicly, without the balsam tool, and do it from a STL or VRML file? If yes how because I didn't find anything?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      AFAIK, Qt3D uses Assimp to load 3D resources so if the library supports the format, it'a likely going to be usable.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TobiasFalk42
        wrote on last edited by TobiasFalk42
        #3

        ok, but when I understand that the documentation right I still need to convert it in to the right mesh formate of the engin
        https://doc.qt.io/qt-5/qml-qtquick3d-model.html#mesh-format-and-built-in-primitives
        and I have no Idea how I can do that dynamicly(so that I can take any .obj file while the program is running and load it)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Sorry, that's one of the corner of Qt I do not have much experience with.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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