summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-10-08 13:29:49 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-10-09 08:31:50 +0300
commit744d5bbdb462bb731bc6422c12645e24a57e6bd2 (patch)
treea0ca2da482200d83658978d2760a2975414d9d48
parent714c81d95e9a0bd91637a25fb20c54135c306442 (diff)
Add comment about far plane value affecting picking
Task-number: QTBUG-70589 Change-Id: I397d24f3d7fed25fe3612e481a3ee16d4e0fe1ab Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/picking/qobjectpicker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/picking/qobjectpicker.cpp b/src/render/picking/qobjectpicker.cpp
index f41ea06a6..d1a246c27 100644
--- a/src/render/picking/qobjectpicker.cpp
+++ b/src/render/picking/qobjectpicker.cpp
@@ -80,6 +80,9 @@ namespace Qt3DRender {
\note Instances of this component shouldn't be shared, not respecting that
condition will most likely result in undefined behavior.
+ \note The camera far plane value affects picking and produces incorrect results due to
+ floating-point precision if it is greater than ~100 000.
+
\since 5.6
*/
@@ -113,6 +116,9 @@ namespace Qt3DRender {
\note Instances of this component shouldn't be shared, not respecting that
condition will most likely result in undefined behavior.
+
+ \note The camera far plane value affects picking and produces incorrect results due to
+ floating-point precision if it is greater than ~100 000.
*/
/*!