Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-4929

ModelParticle3D - 3D particles not visible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • QDS 2.2 Beta1
    • Particle Editor
    • None
    • Windows
    • 1
    • Qt Quick 3D - 2021 Week 33/34

    Description

      Output error and unable to configure ModelParticle3D correctly to view 3D cubes as particles.  SpriteParticle3D renders correctly and w/o issue

      App Output message
      -  QQmlEngine::setContextForObject(): Object already has a QQmlContext
      -  8:17: Unable to assign QQuick3DModel to QQmlComponent

       

      View3D {
      id: view3D
      anchors.fill: parent
      SceneEnvironment

      { id: sceneEnvironment antialiasingMode: SceneEnvironment.MSAA antialiasingQuality: SceneEnvironment.High }

      DirectionalLight

      { id: directionalLight x: 0 y: 0 z: 290.18155 }

      }
      Node {
      id: scene

      PerspectiveCamera

      {   id: camera x: 0 y: 63 eulerRotation.x: -8 fieldOfView: 25 z: 190.34 }

      Model {
      id: cubeParticle3D
      source: "#Cube"
      scale.z: 0.2
      scale.y: 0.2
      scale.x: 0.2
      DefaultMaterial

      { id: cubeMaterial diffuseColor: "#55ada5" }

      materials: cubeMaterial

      }
      ParticleSystem3D {
      id: particleSystem
      eulerRotation.z: -0.0001
      eulerRotation.y: 0.00009
      eulerRotation.x: -84.40091

      //SpriteParticle3D {
      //id: spriteParticle
      //color: "#8b1515"
      //sprite: particleSystem
      //particleScale: 1
      //maxAmount: 15000

      // Texture

      { // id: textureLaser // source: "images/laserGraphic.svg" // }

      }

      ModelParticle3D

      {id: modelParticle // maxAmount: 15000 // delegate: cubeParticle3D // }

       

      ParticleEmitter3D {
      id: emitter
      particleScale: 5
      system: particleSystem
      emitRate: 61
      lifeSpan: 2500
      particle: modelParticle
      velocity: VectorDirection3D

      { id: vectorDirection directionVariation.z: 15 directionVariation.y: 17 directionVariation.x: 15 direction.y: 149 }

      particleRotationVariation: Qt.vector3d(0,0,180)
      particleRotationVelocityVariation: Qt.vector3d(100,0,100)
      }

      Gravity3D

      { id: gravity direction.y: 5 magnitude: -100 }

      }

      }

      }

       

      Attachments

        1. particleTestBed.zip
          14 kB
          Shawn Dorsey
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            shawndorsey Shawn Dorsey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes