qt3d

QScreenRayCaster not finding entity. What am I doiong wrong?

冷暖自知 提交于 2019-12-04 13:10:43
The description of the new QScreenRayCaster in Qt3D looks like its exactly what I want to use, but I cannot get it to work for me. I guess that there is something I need to do in the initialization but I cannot find any examples online to point me in the right direction. I've written a very simple program to test the function. It draws a unit sphere in the center of a window and then triggers a QScreenRayCaster at the center point which as far as I can see should then return a list of hits, only in my program it doesn't. Any help or insight appreciated. MyQt3DWindow:: MyQt3DWindow(QScreen

How to setup QT Creator to use Autodesk FBX SDK as a library?

强颜欢笑 提交于 2019-12-04 05:16:04
问题 The Qt documentation for QMesh at the following link, https://doc.qt.io/qt-5.11/qt3drender-qmesh.html, shows that QMesh supports FBX when using the Autodesk FBX SDK. It provides no resource about how to go about setting this up, so I searched and found 1 resource on setting up the FBX SDK with Qt Creator at the following link: https://forums.autodesk.com/t5/fbx-forum/including-sdk-to-qt-creator/td-p/8184654 I tried the above solution, but when I try to load the QMesh I still get a Debug

2D meshes in QT3D

半世苍凉 提交于 2019-12-04 01:38:25
问题 It seems to me that Qt3D cannot render 2D meshes well. To see what I mean open the shadow map QML example and change the camera controller from FirstPersonCameraController to OrbitCameraController. Run the program and attempt to view the ground plane from below, you will see it disappear. So QT3D just renders 2D meshes from one side and makes them transparent from the other side. How can I fix this? i.e. render 2D meshes from both sides? EDIT: Now I know that I have to disable culling for the

Is Qt3D a part of Qt5?

怎甘沉沦 提交于 2019-12-03 23:28:26
I have installed Qt5 libraries in windows but there is no document about Qt3D in Qt assistant. Is Qt3D a part of Qt5 or it has been removed from release version 5? The other answer & comments were correct at the time, but the situation has now changed. As of Qt5.5 , Qt3D is now included as a "technology preview" (I interpret this phrase as an indication that it's not deployment-ready, so there could be some bugs and the API could change). It's very important to note that the Qt3D that was available for previous versions of Qt has been Qt3D 1.0, while the version included with Qt5.5 is v2.0,

Mouse controls over Qt 3D Window

空扰寡人 提交于 2019-12-02 10:11:58
问题 I have a QWidget containing a Qt3DWindow(). I'd like to be able to "zoom" in and out on a QtEntity, within the Qt3DWindow, using the mouse scroll wheel, while hovering over the window. I have the functionality working, but only when hovering the mouse outside of the Qt3DWindow frame. Here's my code for initializing the window and processing mouse wheel events. Window Initialization: mainView = new Qt3DExtras::Qt3DWindow(); mainView->defaultFramegraph()->setClearColor(QColor(QRgb(0x4d4d4f)));

Mouse controls over Qt 3D Window

二次信任 提交于 2019-12-02 07:26:52
I have a QWidget containing a Qt3DWindow(). I'd like to be able to "zoom" in and out on a QtEntity, within the Qt3DWindow, using the mouse scroll wheel, while hovering over the window. I have the functionality working, but only when hovering the mouse outside of the Qt3DWindow frame. Here's my code for initializing the window and processing mouse wheel events. Window Initialization: mainView = new Qt3DExtras::Qt3DWindow(); mainView->defaultFramegraph()->setClearColor(QColor(QRgb(0x4d4d4f))); QWidget *container = QWidget::createWindowContainer(mainView); Processing wheel events: void ModelView:

Importing objects in Qt3D doesn't work but there's not error message

浪子不回头ぞ 提交于 2019-12-02 06:42:13
I have a Qt3D application which imports STL file formats: m_sceneLoaderEntity = new Qt3DCore::QEntity(); m_sceneLoaderEntity->setObjectName("New imported entity"); Qt3DRender::QSceneLoader *sceneLoader = new Qt3DRender::QSceneLoader(m_sceneLoaderEntity); sceneLoader->setSource(fileUrl); // fileUrl is input m_sceneLoaderEntity->addComponent(sceneLoader); My application builds and runs without any problem with Qt 5.9.0, 5.9.1, 5.9.2, 5.9.3 and 5.9.4. So far so good. My application build fine with Qt 5.9.5, 5.9.6 and Qt 5.11.0, but when runs, it cannot import STL files and does NOT give any error

Show Qt3D stuff inside QWidget in Qt5

橙三吉。 提交于 2019-12-01 11:47:39
So I felt all warm and fuzzy inside after reading that Qt3D has re-emerged in a v2.0 and is in fact becoming a part of Qt5 soon and that parts of it is already available for testing as a tech preview. I set out with a simple plan, I would have Qt3D working inside a widget in my existing C++/widgets based application. However the only example I could find that shows how to use Qt3D from C++ is called basicshapes-cpp , and it shows some shapes rendered in a separate OpenGL/Qt3D prepared window (class that extends QWindow ) as opposed from a QWidget . Now I read about the role of QWindow vs.

Qt3d Using QSceneLoader with qt 5.8

依然范特西╮ 提交于 2019-12-01 09:28:57
I unsuccessfully try to use QSceneLoader to load a 3d scene created in an external editor. And always I get assertions at loading stage. I use the example of OBJ model qt, which is easily loaded as QMesh. test repo https://bitbucket.org/ibnz/test_qt3d #include <QApplication> #include <QEntity> #include <QSceneLoader> #include <Qt3DWindow> int main(int argc, char **argv) { QApplication app(argc, argv); Qt3DExtras::Qt3DWindow *view = new Qt3DExtras::Qt3DWindow(); Qt3DCore::QEntity *rootEntity = new Qt3DCore::QEntity(); Qt3DRender::QSceneLoader *loader = new Qt3DRender::QSceneLoader(rootEntity);

Qt3d Using QSceneLoader with qt 5.8

£可爱£侵袭症+ 提交于 2019-12-01 06:00:38
问题 I unsuccessfully try to use QSceneLoader to load a 3d scene created in an external editor. And always I get assertions at loading stage. I use the example of OBJ model qt, which is easily loaded as QMesh. test repo https://bitbucket.org/ibnz/test_qt3d #include <QApplication> #include <QEntity> #include <QSceneLoader> #include <Qt3DWindow> int main(int argc, char **argv) { QApplication app(argc, argv); Qt3DExtras::Qt3DWindow *view = new Qt3DExtras::Qt3DWindow(); Qt3DCore::QEntity *rootEntity =