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. Moving meshes in Qt 3D
Qt 6.11 is out! See what's new in the release blog

Moving meshes in Qt 3D

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.6k 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.
  • C Offline
    C Offline
    Carolinabustillo
    wrote on last edited by A Former User
    #1

    Hi, I have a 3d scene that has different objects . This objects are qml items that I have created with Mesh from .obj files. One of these objects is a mouth. I want to be able to move just the corner of the lips, not all the mouth. I don't know if there is an easy way to do be able to that. Any idea?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi! There is no easy way, unfortunately. You have to implement a custom Geometry and a custom Geometry Renderer.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Carolinabustillo
        wrote on last edited by
        #3

        Thank you! Do you have any guide or example of Geometry Renderer. I'm new to Qt and I am finding difficult to program in both C++ and QML

        ? 1 Reply Last reply
        0
        • C Carolinabustillo

          Thank you! Do you have any guide or example of Geometry Renderer. I'm new to Qt and I am finding difficult to program in both C++ and QML

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by A Former User
          #4

          I don't have example code at hand right now, sorry. But Qt3D Extras includes a couple of Geometries and their corresponding Geomertry Renderers. The source code can be found here: http://code.qt.io/cgit/qt/qt3d.git/tree/src/extras/geometries. I'd suggest to study...

          • qplanegeometry.cpp
          • qplanegeometry.h
          • qplanegeometry_p.h

          to understand how to implement a Geometry, and ...

          • qplanemesh.cpp
          • qplanemesh.h

          for the Geometry Renderer.

          Please note that throughout all the sources, classes that implement a Geometry Renderer use the word "mesh" in the class name.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved