Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
QDS 2.2 Beta1
-
None
-
-
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
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
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
particleRotationVariation: Qt.vector3d(0,0,180)
particleRotationVelocityVariation: Qt.vector3d(100,0,100)
}
Gravity3D
{ id: gravity direction.y: 5 magnitude: -100 }}
}
}