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. Qt3D question for sub-entities of obj data file
Forum Updated to NodeBB v4.3 + New Features

Qt3D question for sub-entities of obj data file

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

    I am loading an obj file, and I am trying to apply texture on it's parts or sub-entities but I am unsuccessful.

    Here's my code snippet

    Qt3DCore::QComponentVector m_components = m_root->components();

    I am trying to get components from the root entity, and from each of this components I am trying to get sub-entities as follows.

    for(int i=0; i<m_components.size(); i++)
    {
    QVector<Qt3DCore::QEntity *> vecEntities = m_components.at(i)->entities();
    }

    But my vecEntities having only one element and component also have one element.

    My file is a restaurent with sofa, table, chair, glasses etc and many more. How can I get individual objects as entities and apply texture on it.

    Please help me with your suggestions whether its doable or not.

    Thanks a lot in advance.

    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