Open ArMaxik opened 5 years ago
i've just found out, that this bug also present in yours example. If you move any entity to 0 0 0 point, rotate and scale it, for example, like this:
// scenemodifier.cpp
cylinderTransform->setScale(1.0f);
cylinderTransform->setRotationX(13);
cylinderTransform->setRotationY(-6);
cylinderTransform->setRotationZ(-1);
cylinderTransform->setTranslation(QVector3D(0.0f, 0.0f, 0.0));
You see the same issue
I don't have time to look into this issue at the moment as I'm currently writing my master's thesis. One thing you could try is to add the objects in the same manner to the original basic shapes example.
I just read your issue again and feel like I've experienced this bug in other contexts (i.e. without offscreen rendering), too. Is there any update from your side on this? Might be fixed in newer Qt versions.
Tested on Qt 5.15.2 and the bug is still there. Some remarks:
Qt3DExtras::Qt3DWindow
draw correctlyI remember I had a similar issue somewhere else and the solution in the link you posted to add a QNoDraw
node worked back then but it doesn't seem to do the trick here in this case which.
I will prepare a PR. I think I have found a solution.
Hi, i'm trying to run your code, just replace
MainWidget::MainWidget(QWidget *parent)
like this:And i get big green strip over the plane image: It's doesn't work and with other rotations of plane. Can you help please? I've spent a lot of time and did't find what's wrong.