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. How to load 3D objects in scene3D dynamically QML?
Forum Updated to NodeBB v4.3 + New Features

How to load 3D objects in scene3D dynamically QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 484 Views 1 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.
  • J Offline
    J Offline
    jxgeoffrey
    wrote on last edited by
    #1

    In my QML project, I have a Scene3D component in which I load my 3D model. This part is a single QML file and likewise I have different QML files for different screens and use StackView to navigate between them.

    But, whenever I navigate to the QML which hosts the Scene3D component the transition lags/gets stuck for few seconds half way through the transition and then loads.

    How to avoid this chock up? I thought Loader might be of help. But Loader doesn't work in Scene3D.

    Below is the extract of what I am trying to do currently:

    Scene3D
    {
         id: scene3d
         anchors.fill: parent
         anchors.margins: 10
         focus: true
         aspects: ["input", "logic"]
         enabled: false
         cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
    
    
        //This is an entity file which has the 3D model
        ThreeDObj
        {
    
        }
    
    }
    
    This works fine but there is that choke up issue. Is there any efficient way to avoid that?
    
    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