[Interest] Drawing Frustum on Scene3D
joao morgado
joaodeusmorgado at yahoo.com
Fri Mar 5 12:30:10 CET 2021
Hi
That frustum is just a group of lines in cube shape, you see it as a frustum because the camera is in perspective mode.I never used Qt3D so cannot help with scene3d. But in quick3D that would be done with a class derived from QQuick3DGeometry with primitives set to lines "setPrimitiveType(QQuick3DGeometry::PrimitiveType::Lines)"to construct a cube. Then register that class to qml and use it in your View3D. Hope it helps.
João Em sexta-feira, 5 de março de 2021 09:46:15 GMT, Alex john <blackbriar153 at gmail.com> escreveu:
Hello Qt
I like to render a frustum as here https://imgur.com/a/BzmCQ2D on
Scene3d. Can you let me know how it can be done? If I have to get the
custom QML ,do I have to get it from the C++ and then push it to the
QML context? Any pointers to basic code is appreciated.
Thanks.
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210305/f276c385/attachment.html>
More information about the Interest
mailing list