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. Does Qml Qt3D support .obj with .mtl files?

Does Qml Qt3D support .obj with .mtl files?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 479 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.
  • -vix-- Offline
    -vix-- Offline
    -vix-
    wrote on last edited by -vix-
    #1

    I found some information on this topic, but quite outdated.
    I have a model exported from blender (obj + mtl files) and I would like using it in shadow-map-qml example supplied with Qt 5.13.1.
    When I replace trefoil.obj with my obj nothing is shown on the scene.
    Should I modify something else?

    1 Reply Last reply
    1
    • -vix-- Offline
      -vix-- Offline
      -vix-
      wrote on last edited by
      #2

      Sorry for pushing, but does someone know if this is possible or not in Qml?
      If not, I'm going to search for another approach

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HemaSaraswathi
        wrote on last edited by
        #3

        I am not sure about the .mtl file but you can change the .obj file. Make sure to add it to the resource. Also try giving scaleFactor as a property .
        property real scaleFactor: 15 ->this is what i gave.

        Try varying this value and see. Sometimes the 3D object will be small and sometimes it is big.

        I am also new to Qt so feel free to correct me if I am wrong.

        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