summaryrefslogtreecommitdiffstats
path: root/examples/bigscene-cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use Qt wrappers for math functionsLaszlo Agocs2015-02-141-2/+2
| | | | | | | | | Make sure it builds on obscure platforms like WinCE. Functions like cosf live in some unexpected headers there. Best is to avoid the issue altogether by using the qmath functions. Change-Id: I3cbf0f811aef36997ad38db431426e9eb582198b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Copyright header change.Mika Salmela2015-02-091-19/+14
| | | | | | | | As for preparation for Qt5.5 release the copyright header is updated to correspond the current license requirements. Change-Id: I36632918b66f455539453b42c369689fb11298ec Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* The input aspect don't need QWindow anymoreKevin Ottens2015-01-231-1/+1
| | | | | | | | | This aspect doesn't need to depend on a QWindow, any QObject can do as long as we can have an event filter on it and we see input events on it. Rename the whole concept to "view" in the process. Change-Id: Idce2fcc37c5679fe0f7915d27793685167dd59a6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move CameraController in the input aspectKevin Ottens2015-01-232-2/+5
| | | | | | | | | | | | | | | With this move it also becomes a private class. As a result I had to touch all the examples as you won't get camera navigation anymore if the input aspect is not registered. Quick3DConfiguration doesn't depend on the QuickWindow singleton hack anymore, it tries to get back to the aspects and set the camera on the ones having a corresponding property. It also mostly empties Window and QuickWindow. Change-Id: Ife1644bd338e51929bad1e99089bd5e4c68ebc68 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* bigscene-cpp: use QForwardRendererPaul Lemire2015-01-181-17/+5
| | | | | Change-Id: I7638fbfbff4fe472fd4fd4b85fb2fb230159614b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add --bench argument to bigscene demo.Milian Wolff2015-01-131-0/+5
| | | | | | | | | It stops the demo after 25 seconds to make it slightly more deterministic during profiling runs. The thread usage internal to Qt3D makes a real deterministic run impossible though. Change-Id: Ia959245067facd6487efe41bac697295dad04b7f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* bigscene-cpp: use QPhongMaterial which reduces code sizePaul Lemire2014-12-311-28/+6
| | | | | Change-Id: I18beff0430a13f40112adf1c026949a59774e0ee Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* bigscene-cpp: Added Material for each entityPaul Lemire2014-12-091-2/+40
| | | | | Change-Id: I5eb658a7464afaac08e25ebbe75626ab614c7dec Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Qt3D::Window simplifiedPaul Lemire2014-11-141-3/+9
| | | | | | | | | | | | | | The Qt3D::Window doesn't contain the QAspectEngine anymore. This will allow to to pass any kind of surface to the QAspectEngine. We could still have a wrapper like QQuickView around the QQmlAspectEngine if needed but if it weren't for the camera controller that we need to keep a little longer, a simple QWindow could be used in every example. All examples were updated. Change-Id: I4921df0df6f1066cd409ea886faf41d7e8834ef6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Show all rotating cylinders and don't flicker due to the animation.Milian Wolff2014-11-051-14/+14
| | | | | | | | | | | Also align the cylinders on a spiral for some hypnotic effect. I find it simpler that way to figure out whether I see flickering or whether everything is smooth. Change-Id: Ia43f82f2c9aea8ace179984d96cfdc0cd82e88a1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAspectEngine owns the root of the sceneSean Harmer2014-11-021-1/+1
| | | | | | | | | | | The scene root is now also enforced to be a QEntity as that is what we were checking for in the backend anyway as it is impossible to create a plain QNode. This is another step towards solving the shutdown crashing bug. Change-Id: I8508afa80ec9e99954ab867be1ed28bc35405e79 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add bigscene examplePaul Lemire2014-11-022-0/+149
Change-Id: I03be69b5f0307cc15158ecd8b150c24fedb53f40 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>