summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix orientation of textures on planes in audio vis exampleSean Harmer2016-10-102-0/+0
| | | | | | | | | | | | | | | | | | | | | | Due to 44f1a92338859f1cc043ec22e0142037b5f87936 we need to correct the orientation of the textures applied to the plane meshes in this example. There is a variety of ways to do this including: * Adapting the texture coordinates * Rotate plane other direction about x axis and swap face culling mode * Flip textures on disk This patch goes for the 3rd option. This can be reverted in 5.8 when we get new API to control whether texture images are flipped upon loading. None of these are ideal but is an intermediate step in getting to a fully consistent usage with 5.8. This follows the same approach as was used with the anaglph-rendering example skybox textures. Change-Id: I7fda41204625d7b30ac295ef789b6dea6018c2b8 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Basic shapes example is dark with default lightKevin Ottens2016-09-261-0/+10
| | | | | Change-Id: Ia5a7dfb860317b3fa4b5a56ad6e9351ddb979b3b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove excess slashes from include statementsMiikka Heikkinen2016-09-051-2/+2
| | | | | Change-Id: I64f815587947ad2f63462bb38027c533c7aa4bdc Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Qt3DWindow rename defaultFramegraph to defaultFrameGraphPaul Lemire2016-08-111-1/+1
| | | | | | | | | | For coherency with other function names. This kind of API change is allowed since Qt3DWindow is in the Extras module which is still in tech preview for 5.7 Change-Id: Ic67f96cfb2dfcb3b2d724c97f2cf472bfaf40a07 Task-number: QTBUG-54841 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Temporarily invert the cubemap imagesSean Harmer2016-08-0512-0/+0
| | | | | | | | | | | As a result of 44f1a92338859f1cc043ec22e0142037b5f87936 the cubemap texture images get mirrored. As we cannot add the api to control this until Qt 5.8, for now we temporarily mirror the textures on disk. We should revert this in 5.8 once the mirrored property is in. Task-number: QTBUG-54881 Change-Id: I675f4dc1576e076c63f8c592cdbc51707afb4cb7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Compute-Particles: use vec4 in the ParticlesData structurePaul Lemire2016-07-192-8/+9
| | | | | | | | | | Since vec3-vec4 padding is not always correctly implemented in all OpenGL GPU implementations, use vec4 in the struct declaration. Also slightly improve readibility of the buffer construction code. Change-Id: I9dfbeb2bcdc0a713e1e0a872f6a5e8cfe50c52a3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Lights: Fix animation in example and add anotherSean Harmer2016-07-121-6/+15
| | | | | | | | | | | | | Looks like QML doesn't like animating only a single element of a 3d vector. It seems to default the non-animating elements to 0. Instead use a Vector3DAnimation. Also added another animation to the transformation to make the spotlight move back and forth in addition to sweeping it's local direction angle. Change-Id: Ief490752107b2b618dcf8500cb87561b3baea0bb Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Lights: Use PhongMaterial now default material is goneSean Harmer2016-07-121-3/+9
| | | | | Change-Id: I51d8068d9f910981db89fc26e4bd29b928faad56 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add some more interesting lighting to the materials exampleSean Harmer2016-07-123-10/+155
| | | | | | | Useful for testing more of the lighting shader code paths. Change-Id: Iae1403bbe8562cfc8a0d22784069080a421153f5 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Adjust some parameters in the materials exampleSean Harmer2016-07-123-3/+4
| | | | | Change-Id: I88344e2eabeb4a9598338d50b4a1874aeed6d522 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add documentation for the Simple C++ exampleLeena Miettinen2016-06-092-0/+49
| | | | | | | | Without this change Qt Creator tags this example "broken" and hides it from the Examples tab in the Welcome mode. Change-Id: I276ddb3ea50f05695a6afa7fa34de682bdc944c2 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add documentation for the Simple QML exampleLeena Miettinen2016-06-092-0/+52
| | | | | | | | Without this change Qt Creator tags this example "broken" and hides it from the Examples tab in the Welcome mode. Change-Id: I4f0faa6b18c3f1ec2de673e3f6ced7e23b46c094 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add a skeleton for Scene 3D example docsLeena Miettinen2016-06-082-0/+24
| | | | | | | | Without this fix, Qt Creator tags the example as "broken" and hides it in the Examples tag in the Welcome screen. Change-Id: Ifebc926b17a7161abb49c61a2369f8c485532156 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* Doc: Add docs for Multi Viewport QML exampleLeena Miettinen2016-06-082-0/+41
| | | | | | | | | | | - Add a brief (needed by Qt Creator) - Add an image (needed by Qt Creator) - Add a standard include file about building and running examples - Copy instructions from the rendering overview (as applicable) Change-Id: I5342a7ad644acf97ecd247d47725d5978e5c6fb4 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* Doc: Add skeleton for Qt 3D Materials example docsLeena Miettinen2016-06-084-0/+14
| | | | | | | | | Without this fix, Qt Creator tags these examples "broken" and hides them in the Examples tab in the Welcome mode. More documentation should be added later. Change-Id: Iddfb78a8df30e38482e89e7a9ac87a5ef83966a3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add a skeleton for Wave example docsLeena Miettinen2016-06-082-0/+8
| | | | | | | | Without this fix, Qt Creator tags the example "broken" and hides it in the Examples tag in the Welcome mode. Change-Id: I96916d11327e066be10b15422d944d805a2ed988 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add docs for the Deferred Renderer exampleLeena Miettinen2016-06-081-0/+21
| | | | | | Change-Id: Icc1e688ffb44431841054324fddecb2b6402d94b Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix planets-qml inner planets shadingSean Harmer2016-06-0311-59/+185
| | | | | | | | | | | | | | | | | | | | | | * The shadow light was using the undefined matrix property which resulted in a matrix full of NaN's in the shader. This caused everything to be fully in shadows for the inner planets. Fixed to use the correct viewMatrix property. * After fixing the above, it became clear that the inner planets were being shadowed with lots of artifacts. The only shadow casters are the planets Saturn and Uranus and their rings. In this configuration it makes no sense to try to shadow the other planets as this leads to bad shadow acne due to the huge distances involved vs the limited precision of the shadow depth texture. Fixed these artifacts by only applying shadows to Saturn and Uranus. Task-number: QTBUG-53751 Change-Id: I96ab08117c9988c40f083a1345ec7f7d1b0f7ce6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fixed sun in planets-qmlTomi Korpipää2016-06-0313-526/+512
| | | | | | | Also removed duplicate code and made some rearrangements in entities. Change-Id: I7f588672a1694fc440318f66bcfbe33d5ebcf0ab Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix shadow-map-qml exampleSean Harmer2016-06-022-9/+6
| | | | | | | | | In the absence of the ParameterMapper type (removed) we need to directly specify the correct uniform names. Task-number: QTBUG-53737 Change-Id: I678ac6f5fab968ee2105f45c8e2d9db66da78293 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Unbreak qgltf example.Volker Krause2016-05-283-24/+10
| | | | | Change-Id: I4ded0d2497175648b16dd95337826138c362ec26 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix input in scene3d exampleSean Harmer2016-05-271-1/+3
| | | | | Change-Id: I3a79b809477c27b13f25fb579beef3d6fc4c856f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Scene3D example should use logic aspect too for input controllerSean Harmer2016-05-201-1/+1
| | | | | Change-Id: Ibcdbf91fc35659c21346147462b426f16b6f376e Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Merge branch '5.6' into 5.7Sean Harmer2016-05-191-0/+3
|\ | | | | | | Change-Id: Ie0fc178d3c0f818ea32aac0e98c97861d4c0f671
| * fix example installsOswald Buddenhagen2016-04-281-0/+4
| | | | | | | | | | Change-Id: Ib5819aa0f90bbb418fce29ff91a29969fd69c682 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Moved assimp-cpp example to manual testRobert Brock2016-05-153-178/+1
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I1abf679795f7cdc23922880e598a742e58d9aa0a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved transparency-qml-scene3d example to manual testRobert Brock2016-05-158-413/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Iaa7fd720fd4f16e15186d529cde32991e50a559d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved transparency-qml example to manual testRobert Brock2016-05-157-361/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I44b7a843a7b32ef03857df9b19fde71d990785d8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved transforms-qml example to manual testRobert Brock2016-05-158-438/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Ie142144a848bfec271fa9a0779e07a022fe79911 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved tessellation-modes example to manual testRobert Brock2016-05-1522-1237/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I80f5927b91a31f86ac92cf357604783948c34a30 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved skybox example to manual testRobert Brock2016-05-157-369/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I31593b7e81d261eb919f6fb3055a878bfce01fd1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved simple-shaders-qml example to manual testRobert Brock2016-05-157-351/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I2f23a68dcc712b9dcf2c3448e8e3ad258ed88b3e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved scene3d-loader example to manual testRobert Brock2016-05-158-481/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I79cfd451ce1f96938359c3b048523b3687864c48 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved plasma example to manual testRobert Brock2016-05-157-246/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I234ae5587242b3ec61f4c4d37bd5e6c92a7e95b8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved picking-qml example to manual testRobert Brock2016-05-156-399/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Iaf8783fc456990a36d664540da9aa07ea05f6eb2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved mouseinput-qml example to manual testRobert Brock2016-05-155-212/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Ib77fedcfc75b5b48a2e1618f90a995b2d9e392ad Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved loader-qml example to manual testRobert Brock2016-05-158-452/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Id3563ea8e0afa03a2becf787be9cddb83130778e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved keyboardinput-qml example to manual testRobert Brock2016-05-157-308/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: If5ed03e83908ba551169d290f51271aaacd73243 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved gooch-qml example to manual testRobert Brock2016-05-156-251/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Ie2cb3ea51d66b7716b401bf0f131e6712e37f262 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved gltf example to manual testRobert Brock2016-05-157-298/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Id1bee587dd97adcca7bba3f6b4afcf5bd9339c1a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved enabled-qml example to manual testRobert Brock2016-05-156-321/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I98d682c84f42ecbd98467bb25a254985fc4bec0d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved dynamicscene-cpp example to manual testRobert Brock2016-05-158-525/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Ib2154b36f91093bb248b37a1e41a4cfc51c52880 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved deferred-renderer-qml example to manual testRobert Brock2016-05-1510-965/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: If2fe4646b5a57269516f615b0c6d5097723fdb2e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved cylinder-qml example to manual testRobert Brock2016-05-156-225/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I91c84820af24350b8db96fdb8aaceb38627d2db7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved cylinder-cpp example to manual testRobert Brock2016-05-154-162/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Id293f78a414cfbdc1f1f8796ec0485aacc06a906 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved custom-mesh-qml example to manual testRobert Brock2016-05-155-326/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: Ic32242b2f9594546fe9a1eed5755e0771d214f15 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved custom-mesh-cpp example to manual testRobert Brock2016-05-153-262/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I80d7a41ade520c9253cb7e6d93ea40cef816d531 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved component-changes example to manual testRobert Brock2016-05-154-204/+1
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I582bcad801efe6a09ceb8ade53ec5e6df858990f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved deferred-renderer-cpp example to manual testRobert Brock2016-05-154-387/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I3b95590bef2261b1a4701b9b3fc35e9e909a0283 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Moved clip-planes-qml example to manual testRobert Brock2016-05-1517-1172/+0
| | | | | | | | | | | | | | Part of an examples cleanup Change-Id: I5bb3d9a0bcc2c68167c3a8ce8175081274c62554 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>