Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtquick3d-effects.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\qmlmodule QtQuick3D.Effects \QtVer
6
\title Qt Quick 3D Effects QML Types
7
\brief Provides QML types for the effects included in the Qt Quick 3D
8
effect library.
9
10
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
11
\l[QML]{MultiEffect}, or user-defined effects via the \l
12
Effect type instead.
13
14
\warning All pre-made standalone effects in QtQuick3D.Effects are
15
considered deprecated starting with Qt 6.5. Instead, to get high quality,
16
high performing implementations of post-processing effects performed by the
17
3D renderer, such as depth of field, glow and bloom, lens flare, vignette,
18
color adjustments and grading, fog, or ambient occlusion, use \l
19
ExtendedSceneEnvironment. It offers better performance, better visual
20
quality, better interoperation when combining effects, for instance proper
21
support for tonemapping, and is a better fit for visual design tools such
22
as Qt Design Studio. For 2D effects that do not need to be performed within
23
the 3D scene, such as bluring the content of a \l View3D item, use
24
\l[QML]{MultiEffect} on the \l View3D (or a parent of it).
25
If none of these are suitable, applications can provide their own
26
post-processing effects via the \l Effect type.
27
28
\warning All pre-made, standalone effects in QtQuick3D.Effects are
29
incompatible with the \l{Multiview Rendering}{multiview rendering mode} of
30
Qt Quick 3D XR that is often used in VR/AR applications. New application
31
should always use \l ExtendedSceneEnvironment or application-provided custom
32
effects via the \l Effect type, which are fully compatible with multiview
33
rendering as well.
34
*/
35
36
/*!
37
\qmltype AdditiveColorGradient
38
\inqmlmodule QtQuick3D.Effects
39
\brief A gradient with additive color effect.
40
41
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
42
43
\warning All pre-made standalone effects in QtQuick3D.Effects are
44
considered deprecated starting with Qt 6.5. To perform color adjustments
45
and color grading, use \l ExtendedSceneEnvironment instead.
46
47
\image effect_additive_color_gradient.png
48
49
This effect adds a vertical gradient to the whole scene, then additively blends it with all
50
other elements on the layer. Additive blending adds the pixel values of the gradient and the
51
layer, making the result lighter. White areas do not change, and black areas are the same color
52
as the gradient.
53
*/
54
/*!
55
\qmlproperty vector3d AdditiveColorGradient::bottomColor
56
The color to be used at the bottom of the screen for the gradient.
57
The default is \c {Qt.vector3d(0.0, 0.0, 0.0)} (i.e. black).
58
*/
59
/*!
60
\qmlproperty vector3d AdditiveColorGradient::topColor
61
The color to be used at the top of the screen for the gradient. The default value
62
is \c {Qt.vector3d(1.0, 1.0, 1.0)} (i.e. white).
63
*/
64
65
/*!
66
\qmltype Blur
67
\inqmlmodule QtQuick3D.Effects
68
\brief A one-pass blur effect.
69
70
\deprecated [6.5] Use \l[QML]{MultiEffect} instead.
71
72
\warning All pre-made standalone effects in QtQuick3D.Effects are
73
considered deprecated starting with Qt 6.5. To perform blur, use Qt Quick's
74
\l[QML]{MultiEffect} on the \l View3D item (or a parent of
75
it).
76
77
\image effect_blur.png
78
79
This effect provides a simple one-pass blur. It is less expensive than GaussianBlur, but
80
does not give the same quality result.
81
*/
82
/*!
83
\qmlproperty real Blur::amount
84
The strength of the blur. Sensible values are in the range \c {[0...0.01]}. The default value is \c {0.01}.
85
*/
86
87
/*!
88
\qmltype BrushStrokes
89
\inqmlmodule QtQuick3D.Effects
90
\brief A brush strokes noise effect.
91
92
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
93
\l[QML]{MultiEffect}, or user-defined effects via the \l
94
Effect type instead.
95
96
\warning All pre-made standalone effects in QtQuick3D.Effects are
97
considered deprecated starting with Qt 6.5. Applications are advised to use
98
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
99
instead, when applicable, or alternatively provide their own custom
100
post-processing effect via the \l Effect type.
101
102
\image effect_brush_strokes.png
103
104
The BrushStrokes effect simulates an artistic painting of the image.
105
*/
106
/*!
107
\qmlproperty TextureInput BrushStrokes::noiseSample
108
The brush noise texture map. Default is a \l Texture with source \c {"maps/brushnoise.png"}.
109
*/
110
/*!
111
\qmlproperty real BrushStrokes::brushLength
112
How far to offset the image with the brush. Sensible values are in the range \c {[0...3]}.
113
The default value is \c {1}.
114
*/
115
/*!
116
\qmlproperty real BrushStrokes::brushSize
117
The scale of the brush. Smaller values yield larger sizes. Sensible values are in the range
118
\c {[10...200]}. The default value is \c {100}.
119
*/
120
/*!
121
\qmlproperty real BrushStrokes::brushAngle
122
The amount to rotate the brush noise texture, in degrees. The default value is \c {45}.
123
*/
124
125
/*!
126
\qmltype ChromaticAberration
127
\inqmlmodule QtQuick3D.Effects
128
\brief A chromatic aberration effect.
129
130
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
131
\l[QML]{MultiEffect}, or user-defined effects via the \l
132
Effect type instead.
133
134
\warning All pre-made standalone effects in QtQuick3D.Effects are
135
considered deprecated starting with Qt 6.5. Applications are advised to use
136
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
137
instead, when applicable, or alternatively provide their own custom
138
post-processing effect via the \l Effect type.
139
140
\image effect_chromatic_aberration.png
141
142
The ChromaticAberration effect simulates an imperfection of optical lenses. In real life,
143
chromatic aberration is an optical phenomenon causing color fringes in high contrast
144
areas. These color fringes are caused by different colors refracting at different angles
145
splitting white light into a spectrum. This is called dispersion.
146
*/
147
/*!
148
\qmlproperty TextureInput ChromaticAberration::maskTexture
149
A grayscale texture to control the position and strength of the effect. The effect is strongest in
150
white areas, and weakest in black areas.
151
The default is a \l Texture with source \c {"maps/white.png"}.
152
*/
153
/*!
154
\qmlproperty real ChromaticAberration::aberrationAmount
155
The strength of the aberration effect. A negative value inverses the effect. The default value is \c {50}.
156
*/
157
/*!
158
\qmlproperty real ChromaticAberration::focusDepth
159
The distance to the focus plane. The dispersion scales in relation to the distance from this
160
value. The default value is \c {600}.
161
*/
162
163
/*!
164
\qmltype ColorMaster
165
\inqmlmodule QtQuick3D.Effects
166
\brief A color adjustment effect.
167
168
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
169
170
\warning All pre-made standalone effects in QtQuick3D.Effects are
171
considered deprecated starting with Qt 6.5. To perform color adjustments,
172
use \l ExtendedSceneEnvironment instead.
173
174
\image effect_color_master.png
175
176
The ColorMaster effect adjusts the color balance and saturation of the scene.
177
*/
178
/*!
179
\qmlproperty real ColorMaster::redStrength
180
A multiplication factor for the red color channel. The range is \c {[0...2]}. The default value is \c {1}.
181
*/
182
/*!
183
\qmlproperty real ColorMaster::greenStrength
184
A multiplication factor for the green color channel. The range is \c {[0...2]}. The default value is \c {1.5}.
185
*/
186
/*!
187
\qmlproperty real ColorMaster::blueStrength
188
A multiplication factor for the blue color channel. The range is \c {[0...2]}. The default value is \c {1}.
189
*/
190
/*!
191
\qmlproperty real ColorMaster::saturation
192
The strength of all the colors in the scene. The range is \c {[-1...1]}, where \c {-1} is fully desaturated,
193
\c {0} is unmodified, and \c {1} is heavily oversaturated. The default value is \c {0}.
194
*/
195
196
/*!
197
\qmltype DepthOfFieldHQBlur
198
\inqmlmodule QtQuick3D.Effects
199
\brief A depth-based blur effect.
200
201
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
202
203
\warning All pre-made standalone effects in QtQuick3D.Effects are
204
considered deprecated starting with Qt 6.5. To apply a depth-of-field
205
effect to the scene, use \l ExtendedSceneEnvironment instead.
206
207
\image effect_depth_of_field_hq_blur.png
208
209
The DepthOfFieldHQBlur effect performs a gradient blur on regions of the image based on their
210
deviation from a specified distance from the camera.
211
212
For this effect to work well, you need to adjust the \l {PerspectiveCamera::clipFar}{clipFar}
213
and \l {PerspectiveCamera::clipNear}{clipNear} properties of the camera for the scene to frame
214
the content. You ideally want the largest possible value for
215
\l {PerspectiveCamera::clipNear}{clipNear} and the smallest possible value for
216
\l {PerspectiveCamera::clipFar}{clipFar}. Next, adjust the properties of the effect for the
217
desired result.
218
219
For example, a \l focusDistance of \c 100 and a \l focusRange of \c 20 means that everything
220
that is between 90 and 110 units away from the camera will be entirely in focus, items at a
221
distance of 70-90 and 110-130 units will experience variable blurring, and everything closer
222
than 70 or farther than 130 will be entirely blurred.
223
224
\sa TiltShift
225
*/
226
/*!
227
\qmlproperty real DepthOfFieldHQBlur::focusDistance
228
The distance from the camera where the content is in perfect focus. The default value is \c {600}.
229
*/
230
/*!
231
\qmlproperty real DepthOfFieldHQBlur::focusRange
232
The distance around the \l focusDistance where items are fully in focus. The focus then
233
fades away to fully blurred by the same distance on both the near and far sides.
234
The default value is \c {100}.
235
*/
236
/*!
237
\qmlproperty real DepthOfFieldHQBlur::blurAmount
238
The strength of blur when out of focus. Sensible values are in the range \c {[1...10]}.
239
The default value is \c {4}.
240
*/
241
242
/*!
243
\qmltype Desaturate
244
\inqmlmodule QtQuick3D.Effects
245
\brief A desaturating effect.
246
247
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
248
249
\warning All pre-made standalone effects in QtQuick3D.Effects are
250
considered deprecated starting with Qt 6.5. To perform color adjustments
251
and color grading, use \l ExtendedSceneEnvironment instead.
252
253
\image effect_desaturate.png
254
255
The Desaturate effect allows decreasing the intensity of all colors in the scene.
256
*/
257
/*!
258
\qmlproperty real Desaturate::amount
259
The strength of desaturation. The range is \c {[0...1]}, with \c 0 being fully saturated and \c 1
260
being fully grayscale. The default value is \c {0.5}.
261
*/
262
263
/*!
264
\qmltype DistortionRipple
265
\inqmlmodule QtQuick3D.Effects
266
\brief A ripple distortion effect.
267
268
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
269
\l[QML]{MultiEffect}, or user-defined effects via the \l
270
Effect type instead.
271
272
\warning All pre-made standalone effects in QtQuick3D.Effects are
273
considered deprecated starting with Qt 6.5. Applications are advised to use
274
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
275
instead, when applicable, or alternatively provide their own custom
276
post-processing effect via the \l Effect type.
277
278
\image effect_distortion_ripple.png
279
280
The DistortionRipple effect adds a wavelike distortion of circular ripples around a center point.
281
*/
282
/*!
283
\qmlproperty real DistortionRipple::radius
284
How far the ripples extend from the center point. Sensible values are in the range \c {[0...100]}.
285
The default value is \c {100}.
286
*/
287
/*!
288
\qmlproperty real DistortionRipple::distortionWidth
289
The width of a ripple. Sensible values are in the range \c {[2...100]}. The default value is \c {10}.
290
*/
291
/*!
292
\qmlproperty real DistortionRipple::distortionHeight
293
The distortion amount. Sensible values are in the range \c {[0...100]}. The default value is \c {10}.
294
*/
295
/*!
296
\qmlproperty real DistortionRipple::distortionPhase
297
The offset of each wave. Animate this property to see the waves move. Sensible values are in
298
the range \c {[0...360]}. The default value is \c {0}.
299
*/
300
/*!
301
\qmlproperty vector2d DistortionRipple::center
302
The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
303
*/
304
305
/*!
306
\qmltype DistortionSphere
307
\inqmlmodule QtQuick3D.Effects
308
\brief A sphere distortion effect.
309
310
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
311
\l[QML]{MultiEffect}, or user-defined effects via the \l
312
Effect type instead.
313
314
\warning All pre-made standalone effects in QtQuick3D.Effects are
315
considered deprecated starting with Qt 6.5. Applications are advised to use
316
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
317
instead, when applicable, or alternatively provide their own custom
318
post-processing effect via the \l Effect type.
319
320
\image effect_distortion_sphere.png
321
322
The DistortionSphere effect creates a 3D effect of wrapping the scene around a spherical shape.
323
*/
324
/*!
325
\qmlproperty real DistortionSphere::radius
326
How far the distortion extends from the center point. The range is \c {[0...1]}. The default value is \c {0.25}.
327
*/
328
/*!
329
\qmlproperty real DistortionSphere::distortionHeight
330
The distortion amount. The range is \c {[-1...1]}, where positive values distort towards the
331
camera, and negative values distort away from the camera. The default value is \c {0.5}.
332
*/
333
/*!
334
\qmlproperty vector2d DistortionSphere::center
335
The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
336
*/
337
338
/*!
339
\qmltype DistortionSpiral
340
\inqmlmodule QtQuick3D.Effects
341
\brief A spiral distortion effect.
342
343
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
344
\l[QML]{MultiEffect}, or user-defined effects via the \l
345
Effect type instead.
346
347
\warning All pre-made standalone effects in QtQuick3D.Effects are
348
considered deprecated starting with Qt 6.5. Applications are advised to use
349
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
350
instead, when applicable, or alternatively provide their own custom
351
post-processing effect via the \l Effect type.
352
353
\image effect_distortion_spiral.png
354
355
The DistortionSpiral effect creates a twirl-shaped distortion.
356
*/
357
/*!
358
\qmlproperty real DistortionSpiral::radius
359
How far the distortion extends from the center point. The range is \c {[0...1]}. The default value is \c {0.25}.
360
*/
361
/*!
362
\qmlproperty real DistortionSpiral::distortionStrength
363
The distortion amount. The range is \c {[-10...10]}. The default value is \c {1.0}.
364
*/
365
/*!
366
\qmlproperty vector2d DistortionSpiral::center
367
The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
368
*/
369
370
/*!
371
\qmltype EdgeDetect
372
\inqmlmodule QtQuick3D.Effects
373
\brief An edge highlighting effect.
374
375
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
376
\l[QML]{MultiEffect}, or user-defined effects via the \l
377
Effect type instead.
378
379
\warning All pre-made standalone effects in QtQuick3D.Effects are
380
considered deprecated starting with Qt 6.5. Applications are advised to use
381
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
382
instead, when applicable, or alternatively provide their own custom
383
post-processing effect via the \l Effect type.
384
385
\image effect_edge_detect.png
386
387
The EdgeDetect effect turns smooth, unchanging areas of the scene darker, while areas of the
388
scene with sharp color changes are brightened to highlight the edges.
389
*/
390
/*!
391
\qmlproperty real EdgeDetect::edgeStrength
392
The strength of the edge highlighting. The range is \c {[0...1]}. The default value is \c {0.5}.
393
*/
394
395
/*!
396
\qmltype Emboss
397
\inqmlmodule QtQuick3D.Effects
398
\brief An emboss effect.
399
400
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
401
\l[QML]{MultiEffect}, or user-defined effects via the \l
402
Effect type instead.
403
404
\warning All pre-made standalone effects in QtQuick3D.Effects are
405
considered deprecated starting with Qt 6.5. Applications are advised to use
406
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
407
instead, when applicable, or alternatively provide their own custom
408
post-processing effect via the \l Effect type.
409
410
\image effect_emboss.png
411
412
The Emboss effect replaces each pixel either by a highlight or a shadow, depending on light/dark
413
boundaries on the scene. Low contrast areas are replaced by a gray background. The embossed
414
result represents the rate of color change at each location.
415
*/
416
/*!
417
\qmlproperty real Emboss::amount
418
The strength of the emboss effect. Sensible values are in the range \c {[0...0.01]}. The default value is \c {0.003}.
419
*/
420
421
/*!
422
\qmltype Flip
423
\inqmlmodule QtQuick3D.Effects
424
\brief A scene flipping effect.
425
426
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
427
\l[QML]{MultiEffect}, or user-defined effects via the \l
428
Effect type instead.
429
430
\warning All pre-made standalone effects in QtQuick3D.Effects are
431
considered deprecated starting with Qt 6.5. Applications are advised to use
432
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
433
instead, when applicable, or alternatively provide their own custom
434
post-processing effect via the \l Effect type.
435
436
\image effect_flip.png
437
438
The Flip effect flips the whole scene either horizontally, vertically, or in both directions.
439
*/
440
/*!
441
\qmlproperty bool Flip::flipHorizontally
442
This property determines whether the scene is flipped horizontally. The default value is \c {true}.
443
*/
444
/*!
445
\qmlproperty bool Flip::flipVertically
446
This property determines whether the scene is flipped vertically. The default value is \c {true}.
447
*/
448
449
/*!
450
\qmltype Fxaa
451
\inqmlmodule QtQuick3D.Effects
452
\brief A fast approximate anti-aliasing effect.
453
454
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
455
456
\warning All pre-made standalone effects in QtQuick3D.Effects are
457
considered deprecated starting with Qt 6.5. To apply FXAA to the scene, use
458
\l ExtendedSceneEnvironment instead.
459
460
\image effect_fxaa.png
461
462
The FXAA effect applies fast approximate anti-aliasing to the scene. FXAA is a high-speed
463
anti-aliasing technique that removes some of the artifacts from the image without impacting
464
performance as heavily as super-sampling would.
465
466
\table
467
\header
468
\li
469
Pros
470
\li
471
Cons
472
\row
473
\li
474
\list
475
\li
476
Easy fix for many aliasing problems.
477
\li
478
Works with moving images.
479
\endlist
480
\li
481
\list
482
\li
483
Can blur and distort fine text details.
484
\li
485
As a screen-space heuristic technique, it can sometimes leave
486
sharp edges that ideally would be anti-aliased.
487
\endlist
488
\endtable
489
490
Fxaa does not have adjustable properties.
491
*/
492
493
/*!
494
\qmltype GaussianBlur
495
\inqmlmodule QtQuick3D.Effects
496
\brief A two-pass gaussian blur effect.
497
498
\deprecated [6.5] Use \l[QML]{MultiEffect} instead.
499
500
\warning All pre-made standalone effects in QtQuick3D.Effects are
501
considered deprecated starting with Qt 6.5. To perform blur, use Qt Quick's
502
\l[QML]{MultiEffect} on the \l View3D item (or a parent of
503
it).
504
505
\image effect_gaussian_blur.png
506
507
The GaussianBlur effect blurs all objects in the scene evenly. To keep the effect performant,
508
a large blur \l amount will not produce a perfectly smooth blur, but rather a mosaic result.
509
*/
510
/*!
511
\qmlproperty real GaussianBlur::amount
512
The strength of the blur. Sensible values are in the range \c {[0...10]}. The default value is \c {2}.
513
*/
514
515
/*!
516
\qmltype HDRBloomTonemap
517
\inqmlmodule QtQuick3D.Effects
518
\brief A bloom with tonemapping effect.
519
520
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
521
522
\warning All pre-made standalone effects in QtQuick3D.Effects are
523
considered deprecated starting with Qt 6.5. To apply glow and bloom to the
524
scene, use \l ExtendedSceneEnvironment instead.
525
526
\image effect_hdr_bloom_tonemap.png
527
528
The HDRBloomTonemap effect provides two features:
529
530
\list
531
\li
532
Adjusting the gamma and exposure of the high-dynamic range rendered
533
content to achieve the image quality you want.
534
\li
535
Applying an adjustable bloom effect to bright areas (like the sun
536
glinting off a car).
537
\endlist
538
*/
539
/*!
540
\qmlproperty real HDRBloomTonemap::gamma
541
Affects the non-linear curve of the lighting. Higher values increase the exposure of mid tones,
542
lightening the image and decreasing the contrast. A value of \c{1.0} causes no
543
adjustment to the image. Sensible values are in the range \c {[0.1...4]}. The default value is \c {1}.
544
*/
545
/*!
546
\qmlproperty real HDRBloomTonemap::exposure
547
Sets a linear multiplier on the lighting, brightening, or darkening the image overall. A value of
548
\c{0.0} causes no adjustment to the image. The range is \c {[-9...9]}. The default value is \c {0}.
549
*/
550
/*!
551
\qmlproperty real HDRBloomTonemap::bloomThreshold
552
Sets the threshold for the bloom effect. Any part of the scene brighter than this value will bloom.
553
A value of \c{1.0} corresponds to white. Lowering this value causes more areas of the rendered scene to bloom.
554
At a value of \c{0.0} everything in the scene blooms. The range is \c {[0...1]}. The default value is \c {1}.
555
*/
556
/*!
557
\qmlproperty real HDRBloomTonemap::blurFalloff
558
Adjusts the amount of bloom. Lower values result in a stronger bloom effect, and higher values
559
make the effect more subtle. The range is \c {[0...10]}. The default value is \c {0}.
560
*/
561
/*!
562
\qmlproperty real HDRBloomTonemap::tonemappingLerp
563
Specifies the strength of the overall bloom effect. There is usually no need to adjust this. The range is
564
\c {[0...1]}, with \c 0 being no blur and \c 1 being full bloom. The default value is \c {1}.
565
*/
566
/*!
567
\qmlproperty real HDRBloomTonemap::channelThreshold
568
Specifies the white point for the image. There is usually no need to adjust this. The range is \c {[0...1]}.
569
The default value is \c {1}.
570
*/
571
572
/*!
573
\qmltype MotionBlur
574
\inqmlmodule QtQuick3D.Effects
575
\brief A motion blur effect.
576
577
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
578
\l[QML]{MultiEffect}, or user-defined effects via the \l
579
Effect type instead.
580
581
\warning All pre-made standalone effects in QtQuick3D.Effects are
582
considered deprecated starting with Qt 6.5. Applications are advised to use
583
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
584
instead, when applicable, or alternatively provide their own custom
585
post-processing effect via the \l Effect type.
586
587
\image effect_motion_blur.png
588
589
The MotionBlur effect creates a trailing streak for rapidly moving objects in the scene.
590
591
\note The \l {SceneEnvironment::backgroundMode}{background mode} must be
592
\c {SceneEnvironment.Transparent} for MotionBlur to work.
593
*/
594
/*!
595
\qmlproperty real MotionBlur::fadeAmount
596
How fast the trail fades. The range is \c {[0...1]}, with \c 0 meaning that the object trail persists
597
indefinitely, and \c 1 meaning that the object trail fades out immediately. The default value is \c {0.25}.
598
*/
599
/*!
600
\qmlproperty real MotionBlur::blurQuality
601
The quality of the blur used to create the trail. Increasing quality will have impact on performance.
602
The range is \c {[0...1]}. The default value is \c {0.25}.
603
*/
604
605
/*!
606
\qmltype Scatter
607
\inqmlmodule QtQuick3D.Effects
608
\brief A scatter noise effect.
609
610
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
611
\l[QML]{MultiEffect}, or user-defined effects via the \l
612
Effect type instead.
613
614
\warning All pre-made standalone effects in QtQuick3D.Effects are
615
considered deprecated starting with Qt 6.5. Applications are advised to use
616
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
617
instead, when applicable, or alternatively provide their own custom
618
post-processing effect via the \l Effect type.
619
620
\image effect_scatter.png
621
622
Scatters the pixels in a scene, creating a blurry or smeared appearance. Without changing the
623
color of each individual pixel, the Scatter effect redistributes the pixels randomly, but in
624
the same general area as their original positions.
625
*/
626
/*!
627
\qmlproperty TextureInput Scatter::noiseSample
628
The scatter noise texture map. The default is a \l Texture with source \c {"maps/brushnoise.png"}.
629
*/
630
/*!
631
\qmlproperty real Scatter::amount
632
Determines how much to scatter. The range is \c {[0...127]}. The default value is \c {10}.
633
*/
634
/*!
635
\qmlproperty int Scatter::direction
636
The direction in which to scatter the pixels. Set to \c 0 for both horizontal and vertical,
637
\c 1 for horizontal, and \c 2 for vertical. The default value is \c 0.
638
*/
639
/*!
640
\qmlproperty bool Scatter::randomize
641
Specifies whether the scattering pattern changes for each frame. The default value is \c {true}.
642
*/
643
644
/*!
645
\qmltype SCurveTonemap
646
\inqmlmodule QtQuick3D.Effects
647
\brief A tonemapping effect.
648
649
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
650
651
\warning All pre-made standalone effects in QtQuick3D.Effects are
652
considered deprecated starting with Qt 6.5. To control tonemapping, use
653
\l ExtendedSceneEnvironment instead.
654
655
\image effect_scurve_tonemap.png
656
657
The SCurveTonemap effect maps the luminance of each pixel in the Scene
658
according to an s-shaped curve:
659
660
\image effect_scurve_graph.png
661
662
The curve has three parts. The \e {toe area} determines the shadows, and
663
is governed by \l toeSlope and \l toeEmphasis. The middle part determines
664
overall contrast, and is changed by \l contrastBoost. The \e {shoulder
665
area} determines the highlights, and is governed by \l shoulderSlope and
666
\l shoulderEmphasis.
667
668
*/
669
/*!
670
\qmlproperty real SCurveTonemap::shoulderSlope
671
Sets the slope of the \e shoulder part of the s-curve. The shoulder defines
672
where highlights lose contrast.
673
674
The range is \c {[0...3]}. The default value is \c {1}.
675
676
\sa shoulderEmphasis
677
*/
678
/*!
679
\qmlproperty real SCurveTonemap::shoulderEmphasis
680
Modifies the shape of the \e shoulder part of the s-curve.
681
The range is \c {[-1...1]}. The default value is \c {0}.
682
683
\sa shoulderSlope
684
*/
685
/*!
686
\qmlproperty real SCurveTonemap::toeSlope
687
Sets the slope of the \e toe part of the s-curve. The toe defines where
688
shadows lose contrast.
689
690
The range is \c {[0...3]}. The default value is \c {1}.
691
692
\sa toeEmphasis
693
*/
694
/*!
695
\qmlproperty real SCurveTonemap::toeEmphasis
696
Modifies the shape of the \e toe part of the s-curve.
697
The range is \c {[-1...1]}. The default value is \c {0}.
698
699
\sa toeSlope
700
*/
701
/*!
702
\qmlproperty real SCurveTonemap::contrastBoost
703
Enhances or reduces the overall contrast of the tonemap. This changes
704
the slope of the middle part of the s-curve.
705
706
The range is \c {[-1...2]}. The default value is \c {0}.
707
*/
708
/*!
709
\qmlproperty real SCurveTonemap::saturationLevel
710
Sets the overall saturation level of the tonemap effect. The range is \c {[0...2]}, with \c 0 being fully
711
grayscale and \c 2 being very oversaturated. The default value is \c {1}.
712
*/
713
/*!
714
\qmlproperty real SCurveTonemap::gammaValue
715
Sets the gamma value for the tonemap effect. Sensible values are in the range \c {[0.1...8]}. The default value is \c {2.2}.
716
*/
717
/*!
718
\qmlproperty bool SCurveTonemap::useExposure
719
Makes the effect use \l whitePoint instead of \l exposureValue for luminance calculations.
720
The default value is \c {false}.
721
*/
722
/*!
723
\qmlproperty real SCurveTonemap::whitePoint
724
Sets the white point of the tonemap. This value is only used if \l useExposure is \c {false}.
725
The range is \c {[0.01...128]}. The default value is \c {1}.
726
*/
727
/*!
728
\qmlproperty real SCurveTonemap::exposureValue
729
Specifies the exposure for the tonemap effect. This value is only used if \l useExposure is \c {true}.
730
The range is \c {[0.01...16]}. The default value is \c {1}.
731
*/
732
733
/*!
734
\qmltype TiltShift
735
\inqmlmodule QtQuick3D.Effects
736
\brief A tilt shift blur effect.
737
738
\deprecated [6.5] Use \l ExtendedSceneEnvironment,
739
\l[QML]{MultiEffect}, or user-defined effects via the \l
740
Effect type instead.
741
742
\warning All pre-made standalone effects in QtQuick3D.Effects are
743
considered deprecated starting with Qt 6.5. Applications are advised to use
744
\l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
745
instead, when applicable, or alternatively provide their own custom
746
post-processing effect via the \l Effect type.
747
748
\image effect_tilt_shift.png
749
750
The TiltShift effect simulates depth of field in a simple and performant manner.
751
Instead of blurring based on the depth buffer, it blurs everything outside a horizontal
752
or vertical strip of the scene.
753
754
\sa DepthOfFieldHQBlur
755
*/
756
/*!
757
\qmlproperty real TiltShift::focusPosition
758
The placement of the focus bar in normalized coordinates. The range is \c {[0...1]}.
759
The default value is \c {0.5}, corresponding to the middle of the scene.
760
*/
761
/*!
762
\qmlproperty real TiltShift::focusWidth
763
Specifies the width of the in-focus area in normalized coordinates.
764
Objects within this range of \l focusPosition will be in focus.
765
The range is \c {[0...1]}. The default value is \c {0.2}.
766
*/
767
/*!
768
\qmlproperty real TiltShift::blurAmount
769
Specifies the strength of the blur effect. Values above 4 may cause artifacts.
770
The range is \c {[0...10]}. The default value is \c {4}.
771
*/
772
/*!
773
\qmlproperty bool TiltShift::isVertical
774
Makes the effect work vertically instead of horizontally. The default value is \c {false}.
775
*/
776
/*!
777
\qmlproperty bool TiltShift::isInverted
778
Inverts the blur area, so the center is blurred instead. The default value is \c {false}.
779
*/
780
781
/*!
782
\qmltype Vignette
783
\inqmlmodule QtQuick3D.Effects
784
\brief A vignette effect.
785
786
\deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
787
788
\warning All pre-made standalone effects in QtQuick3D.Effects are
789
considered deprecated starting with Qt 6.5. To apply a vignette effect to
790
the 3D scene, use \l ExtendedSceneEnvironment instead.
791
792
\image effect_vignette.png
793
*/
794
/*!
795
\qmlproperty real Vignette::vignetteStrength
796
Specifies the strength of the vignetting. The range is \c {[0...15]}. The default value is \c {15}.
797
*/
798
/*!
799
\qmlproperty real Vignette::vignetteRadius
800
Specifies the size of the vignetting. The range is \c {[0...5]}. The default value is \c {0.35}.
801
*/
802
/*!
803
\qmlproperty vector3d Vignette::vignetteColor
804
Sets the color to use for the vignetting. The default value is \c {Qt.vector3d(0.5, 0.5, 0.5)}.
805
*/
qtquick3d
src
quick3d
doc
src
qtquick3d-effects.qdoc
Generated on
for Qt by
1.14.0