Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Load a .obj mesh from a path as QCustom3DItem
QtWS25 Last Chance

Load a .obj mesh from a path as QCustom3DItem

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 348 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.
  • P Offline
    P Offline
    patman
    wrote on last edited by
    #1

    Hi, I'm trying to load a mesh file (.obj) with a path like:"C:/Users/.../", but when I run the program it immediately crashes. To test that, I took the "Custom Items Example", copied the used .obj-file to an other directory and changed the following line in "customitemgraph.cpp":

    QCustom3DItem *item = new QCustom3DItem(":/items/oilrig.obj", positionOne, QVector3D(0.025f, 0.025f, 0.025f), QQuaternion::fromAxisAndAngle(0.0f, 1.0f, 0.0f, 45.0f),color);

    Is it possible to load an .obj-file as a QCustom3DItem without adding it to the resource file?

    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