summaryrefslogtreecommitdiffstats
path: root/examples/materials
Commit message (Collapse)AuthorAgeFilesLines
* Move the examples under a qt3d subdirLaszlo Agocs2015-03-0412-821/+0
| | | | | | | | Modules cannot have their examples in the top-level examples directory because in the pre-built packages all modules' examples are merged together. Change-Id: I80fdbb8f1ec6f3d8fd793e4d856e705000237127 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Copyright header change.Mika Salmela2015-02-0910-190/+140
| | | | | | | | 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>
* material-qml: updated to use sortingPaul Lemire2015-01-243-2/+8
| | | | | Change-Id: I134a0ed43473d9b04f6cc049e6bbe60bd059cb02 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* RenderCommand sortingPaul Lemire2015-01-241-0/+0
| | | | | | | | | | Builds a Key of 3 values (shader, state change cost, depth) Uses the program DNA for the shader comparison. The key is configured by the FrameGraph QSortMethod/QSortCriterion nodes. Change-Id: I9fa57ac456b81daac2cc4673446778da1948ef92 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>
* Remove the now useless QuickWindowKevin Ottens2015-01-231-2/+3
| | | | | Change-Id: I714cf941230fdd83f0de37125bf44b4888662b25 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move CameraController in the input aspectKevin Ottens2015-01-232-1/+3
| | | | | | | | | | | | | | | 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>
* material-qml: correct scale values for plantsPaul Lemire2015-01-191-2/+2
| | | | | Change-Id: Iee7e88dd9320a875a8986d89dfc5ecc512a389ff Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Added default QML MaterialsPaul Lemire2015-01-1017-1053/+8
| | | | | | | | | Use them in material-qml example. Chest, Barrel and HousePlant simplified. Change-Id: I4161c79869d79a7bcacadd1d82e5b282deac7df0 Task-number: QTBUG-41548 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Default cpp materials + material-cpp examplePaul Lemire2014-12-314-6/+6
| | | | | | | | | | | | | | | | | | | | | QDiffuseMapMaterial QDiffuseSpecularMapMaterial QNormalDiffuseMapMaterial QNormalDiffuseAlphaMapMaterial QNormalDiffuseSpecularMapMaterial material-cpp is mostly inspired from materials (QML) but nicer :). Note: there seems to be an issue with qrc and QUrl. The behavior is different between QML and C++. -In C++ we need to prefix with have qrc:/ and convert that to :/ (passing :/ directly returns "" when QUrl toString is called) -From QML no prefix is needed. -For QImage path, :/ should be used. Change-Id: Ib56fb9546c95c2872686a46ed048a290ab4a5b6f Task-number: QTBUG-41548 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Qt3D::Window simplifiedPaul Lemire2014-11-141-8/+10
| | | | | | | | | | | | | | 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>
* Add an example demonstrating more materialsSean Harmer2014-11-1324-0/+1905
Change-Id: I02c17262812fbfbd94287a0449027d985a2fe7ae Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>