| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Ia5a7dfb860317b3fa4b5a56ad6e9351ddb979b3b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
| |
Change-Id: I64f815587947ad2f63462bb38027c533c7aa4bdc
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I51d8068d9f910981db89fc26e4bd29b928faad56
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
| |
Useful for testing more of the lighting shader code paths.
Change-Id: Iae1403bbe8562cfc8a0d22784069080a421153f5
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I88344e2eabeb4a9598338d50b4a1874aeed6d522
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Change-Id: Icc1e688ffb44431841054324fddecb2b6402d94b
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
Also removed duplicate code and made some rearrangements in entities.
Change-Id: I7f588672a1694fc440318f66bcfbe33d5ebcf0ab
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I4ded0d2497175648b16dd95337826138c362ec26
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
| |
Change-Id: I3a79b809477c27b13f25fb579beef3d6fc4c856f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: Ibcdbf91fc35659c21346147462b426f16b6f376e
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
|
|\
| |
| |
| | |
Change-Id: Ie0fc178d3c0f818ea32aac0e98c97861d4c0f671
|
| |
| |
| |
| |
| | |
Change-Id: Ib5819aa0f90bbb418fce29ff91a29969fd69c682
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I1abf679795f7cdc23922880e598a742e58d9aa0a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Iaa7fd720fd4f16e15186d529cde32991e50a559d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I44b7a843a7b32ef03857df9b19fde71d990785d8
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Ie142144a848bfec271fa9a0779e07a022fe79911
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I80f5927b91a31f86ac92cf357604783948c34a30
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I31593b7e81d261eb919f6fb3055a878bfce01fd1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I2f23a68dcc712b9dcf2c3448e8e3ad258ed88b3e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I79cfd451ce1f96938359c3b048523b3687864c48
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I234ae5587242b3ec61f4c4d37bd5e6c92a7e95b8
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Iaf8783fc456990a36d664540da9aa07ea05f6eb2
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Ib77fedcfc75b5b48a2e1618f90a995b2d9e392ad
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Id3563ea8e0afa03a2becf787be9cddb83130778e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: If5ed03e83908ba551169d290f51271aaacd73243
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Ie2cb3ea51d66b7716b401bf0f131e6712e37f262
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Id1bee587dd97adcca7bba3f6b4afcf5bd9339c1a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I98d682c84f42ecbd98467bb25a254985fc4bec0d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Ib2154b36f91093bb248b37a1e41a4cfc51c52880
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: If2fe4646b5a57269516f615b0c6d5097723fdb2e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I91c84820af24350b8db96fdb8aaceb38627d2db7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Id293f78a414cfbdc1f1f8796ec0485aacc06a906
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: Ic32242b2f9594546fe9a1eed5755e0771d214f15
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I80d7a41ade520c9253cb7e6d93ea40cef816d531
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I582bcad801efe6a09ceb8ade53ec5e6df858990f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I3b95590bef2261b1a4701b9b3fc35e9e909a0283
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Part of an examples cleanup
Change-Id: I5bb3d9a0bcc2c68167c3a8ce8175081274c62554
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|