A weird bug? Why is there no spatial depth in my 3D scene?
-
Honestly, I'd be surprised if there was a difference between using
cmake
andqmake
. And to be completely frank I don't know what might be the cause of the problem. My current best advice is to either bring the question to the mailing list, where hopefully one of the developers of Qt3D will pick it up (but after you check there's no open bugs on this), or try and wait for some other suggestion from other of our members here.Kind regards.
-
I tried it on my private MacBook Pro with MacOS Sierra 10.12.1 and installed Qt5 via
brew install qt5
. The result is still the same. What on earth can be the reason that it is working for you guys and not for me? Do I need some other libraries or build options? -
Sorry, as a noobie, I can't offer any insight, but I ran the code, and I'm getting the same as Finn. I'm on Qt 5.7 on Win 10.
Could it be CPU or GPU related? I'm on a 6coreAMD machine.
-
@Ian-Bray Thank you for your reply, this was very helpful! I would suggest that someone more experienced than me should report this as a bug.
-
@Finn said in A weird bug? Why is there no spatial depth in my 3D scene?:
this was very helpfu
Indeed, it was.
I would suggest that someone more experienced than me should report this as a bug.
There's nothing to it, you just describe the problem and attach the screenshots and the code from upstairs as a minimal reproducible example (preferably with a simple project file). As for the problem itself it may be helpful if we can squeeze some more information out. I may be running a newer (or older) version of Qt compared to you. Can you both state the full version (with patch number). I'm running Qt 5.7.2 built from git some time ago on a Linux 4.8.11 kernel.
-
I'm using qt-opensource-windows-x86-mingw530-5.7.0 on Win 10, if I get a chance I'll try it on Linux later.
-
Sorry, this isn't going to be helpful. Just to report that both slabs of code crashed on Qt 5.7.1 GCC 64 on latest Mint.
Possibly due to lack of RAM. Not sure. -
@Ian-Bray With Qt 5.7.1 the example works now perfectly fine for me.
-
@kshegunov Must have been quite a big one. I ran the 3d Materials Example on 5.7.0 two days ago - it was horrible. I updated to 5.7.1 yesterday and ran it again - works perfect now.
-
Well, 5.7.0 was Qt3D's first official release, and the code hasn't matured as much as the other modules, so some bumps along the road are expected. My biggest beef with Qt3D actually is its very thin documentation, but I'm sure that'll improve with time.:)