| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch includes a new scene parser plugin which enables the loading
of glTF files (using the 0.8 spec) into Qt3D scenes. The gltf example
has been updated to work with the current APIs and the asset files it
used have been updated to match the glTF 0.8 spec requrements.
Previously an unused copy of the GLTF scene parser was located in
render/io. It was being built, but not used as only plugin based
sceneloaders were loaded by the renderer. Now it should be usable and
always available.
Change-Id: Ic2e31e2b63a871559aad9bad90ec2820988a1571
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
|
|
|
|
|
|
|
| |
Also added a dataSize property to know the number of components per vertice (1 - 4)
Change-Id: Iaa7cee2a53958ed2ec2f603f3ffc7971c027991d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I94ad9870a819af165fbbeae3a51db05c043d40ca
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
Demonstrate how to use the Buffer API to create a custom tetrahedron mesh.
Change-Id: Ie30458c8a6dc3e2d8b1c6aef4a95a57f4cc63de9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Switch QAbstractAttribute and QAbstractBuffer to QNode subclasses
- Get rid of all shared pointer when dealing with these (needed to expose to
QML and use the QObject ownership)
- Introduce QGeometryRender, QGeometry, QAttributeProvider,
QAttributeAggregator.
A QMesh component now is:
a QGeometryRenderer which specifies its QGeometry.
The QGeometry refererences n attributes. Each attribute references a QAbstractBuffer.
Change-Id: I49a10c11a605e5fe7c180af86a404f622e763f48
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The meaning of exclusiveFocus is not set in stone for now. We know some kind
of exclusive focus will be needed but defining it precisely will be done as
the input aspect takes shape.
QMouseController -> dispatch events to QMouseInput, specify the camera to be
used to perform the picks.
QMouseInput -> Component that offers a way to react to mouse events
Q3DMouseEvent/Q3DWheelEvent -> Qt3D mapping of QMouseEvent/QWheelEvent
Change-Id: I462bea2932d4bad6595d04a75ea1e0a67c7c8ba0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
| |
Change-Id: I03db64634c05aec91a60e7ca607e367039e4047b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Demonstrates use of:
-StencilOp / StencilTest
-StateSet and nested StateSet
-ClipPlane
-Multiple render passes with different shaders
-Use of layers
Change-Id: I2d3f87e99e1fdbf9ed22e81838d6cc1744b6b8c1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
| |
Finding and possibly modifying the named parts of the loaded scene
is essential in many cases. Therefore it is highly beneficial to
have an example showing how to do this from C++.
Change-Id: I3fefb80103b7e2f631464460c95067d414e4819f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce a QAbstractFunctor class which QAbstractMeshFunctor and
QTextureDataFunctor subclass
Make all QAbstractFunctor subclasses implement an id() function (using
QT3D_FUNCTOR(Class)).
Use this id to compare to other QAbstractMeshFunctor and eventually
static_cast into right type if possible using the functor_cast member
function.
Change-Id: Iface956e6cd818cbef204d8fa7bf2bc23c6ffa3f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
| |
Helps ensure that property updates and complex nodes such as Materials are
properly created and updated dynamically
Change-Id: I126f971d2c94bcc45e368e9b2a15d0d1e7d456d4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I54e08df02a85a0019b53b9adbb3bc718709b1eb7
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I3f7cfc5459dbb07e395a15920cd80786689cb2e1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
Will help spot regressions on the Scene3DItem
Change-Id: I603b2950382b1a65dbc4cb36af1c140e85b67679
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
|
| |
Shader failed to compile on some android targets without the
precision defined.
Change-Id: I1953f62594dc931f40186963add1ff8df6867975
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
| |
Shader failed to compile on some android targets without the
precision defined.
Change-Id: Ie46a8a42acda5394f503b2445003cb96b2b1d59d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I35df4232d327b7fc816642b968c0590fa34c9544
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
| |
Does the same thing as transparency-qml, allows to verify there's nothing
wrong with QtQuick 2 premultiplied alpha
Change-Id: Ia85a9759eace636e13d2e1b4a0e7f65fb96171e1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
| |
Change-Id: Iddf70866fb99e4e4b92e365a55cd84428eeaa1e0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
| |
Change-Id: I5e55597a165cac4e55782c92aae07b3e6848d061
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
| |
Some examples can be opened from creator's welcome screen and then
we need to have also check on example's own pro file for android, ios and winrt.
The basicshapes and assimp uses widgets so those won't work properly
on these devices. Give a warning when trying to build.
Change-Id: Id05e306813c38b1e8704d5dd7af17f5690ea08d6
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: I7a400f75a945b16d78da885ffc576c82f836a076
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
| |
Edge inking will come later. So many techniques to choose from.
Change-Id: Ibbea66c09c158bebba5d8efaf08d18417fa9b161
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use standard structure for example docs.
Refer to an include file in qtbase\doc\global that
describes building and running from Qt Creator.
Fix grammar and style issues according to the Qt
writing guidelines.
Change-Id: I515561325da34bee3ceeb522d35d2f38ea23256a
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
|
|
|
|
|
| |
Change-Id: Iae85d9637eac8735837bcbced6b89dde158b22aa
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ib4bf6b5b90b633903037084daeb70799da23f30b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|
|
|
|
| |
Change-Id: Id22a7e93989a9ec264e1d6bbc5810ff7ca537ad0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
examples/qt3d/planets-qml/CloudEffectDS.qml
examples/qt3d/planets-qml/PlanetButton.qml
examples/qt3d/planets-qml/PlanetEffectD.qml
examples/qt3d/planets-qml/PlanetEffectDB.qml
examples/qt3d/planets-qml/PlanetEffectDS.qml
examples/qt3d/planets-qml/PlanetEffectDSB.qml
examples/qt3d/planets-qml/PlanetMaterial.qml
examples/qt3d/planets-qml/PlanetsMain.qml
examples/qt3d/planets-qml/SolarSystem.qml
examples/qt3d/planets-qml/doc/src/planets-qml.qdoc
examples/qt3d/planets-qml/main.cpp
examples/qt3d/planets-qml/planets-qml.pro
examples/qt3d/planets-qml/planets-qml.qrc
Change-Id: I9f311f3104c8fcf9d49e12b14f8bfad9ca8cf199
|
| |
| |
| |
| |
| |
| | |
Change-Id: I2d645189ed50567195f4fc1df8ec3e468037fb92
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
| |
| |
| |
| |
| |
| | |
Change-Id: Iea29c9f654fc57518bf3d428b30fa5955aa1230d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add information about materials and shaders in the
overview topic.
Add file extensions to the configuration file to have
all the example files listed in the example docs.
Change-Id: I709f91fb854ca18fb3a56caf656c191fa15e99ef
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Change-Id: Iee3f1dc54231a8cf67d934025c1a8ff72dcc8b28
Task-number: QTBUG-46699
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ic5208d2149efbd03b82417ce3af17747375663f5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Change-Id: I07734c6a30f49b05cd7815d3c3412cd867a09836
Task-number: QTBUG-46602
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
(cherry picked from commit fc662e5a4597b568561c3a19abb24151086a229d)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
+ Improved earth clouds
- Some weirdness with alpha, easily visible with rings. Might be the
textures, although the alpha on them seems fine with image viewer.
- Earth clouds seem to have the alpha issue as well.
Change-Id: Ibdfa49472790d3fc797e269b52986b71d93876f2
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
(cherry picked from commit 30f9015933957eaf9533229f94b1bcd48a8ce3ed)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move the image to the top.
Use standard phrasing to introduce the example.
Add a reference to an include file from qtbase/doc/global/includes
that describes building and running examples from Qt Creator.
Add an Oxford comma.
Change-Id: I2595b4901754ad0181a607f74e31a56673bf5259
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|
|\|
| |
| |
| |
| |
| |
| | |
Conflicts:
src/input/qkeyboardcontroller.cpp
Change-Id: Ifb0b5af165fb11dbe07849f34d3b93d9cc78eeaa
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add the documentation for the basic shapes example.
Change-Id: I9a69198ddbd188ddaa7bd4ab0fae0dc2315719a9
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
So as to avoid public header without a QPrefix. Real integration
points will be added later.
Also removed it from the Qt3D namespace and fixed linkage.
Task-number: QTBUG-46617
Change-Id: I1bea09f45f5fdba3d658b57b86b907ab57164479
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This should make the documentation and code terminology consistent
throughout. We can rename the source directories at a later date if
needed.
Task-number: QTBUG-46622
Change-Id: I2737e54192341808f4a0270ad19ba70f6c4af589
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Leave the cylinder-cpp example to show minimal code for setting up
a basic element. Reshape torus-cpp to show several shapes available.
Change-Id: Ic9dd7cb54258b5eb442ee0492ef4fc2e4b30f836
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
gltf/LICENSE.md is from 4fb289da,
https://github.com/KhronosGroup/glTF/blob/master/LICENSE.md
(excluding third-party licenses - only glTF graphical assets
are used in the examples).
Task-number: QTBUG-45612
Change-Id: I66c7d7d3ef2ae8ad10feb74a1e7be41d6ac281ad
Reviewed-by: Sami Makkonen <sami.makkonen@digia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I03987b5189949e95452a5882bd5c58b26d885a2c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When using a number as a model, when the model changes,
a new model is recreated which induces all delegates to
be cleared and recreated.
Using a ListModel however, the model reference remains
the same, only its content is updated which implies that
already created delegates are kept which is much more
efficient.
This example could further be improved by making the
delegate more lightweight by defining components in the
scene root and referencing those as components in the
delegate. However this would complexify this example
which is there rather as a how to than a performance
oriented one.
Change-Id: I542889a25b65f5de4579288b00b56c9c52667764
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I55732831bb6a08297939da4c2d4a002bb0e120b9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- introduce QNode::setParent(QNode *)
- QNode created with explicit parent now invoke
QNodePrivate::_q_addChild
- QNode::cleanup introduces, need to be added to the
dtor of every QT3D_CLONABLE QNode subclass. Handles
proper destruction.
- QNode::cleanup added to all classes that should have it.
- Updated unit tests of Nodes, Entity, Scene
Change-Id: Id2c2784122a78edaae5580fe5976d88be5a1921c
Task-number: QTBUG-45947
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Change-Id: I07734c6a30f49b05cd7815d3c3412cd867a09836
Task-number: QTBUG-46602
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
+ Improved earth clouds
- Some weirdness with alpha, easily visible with rings. Might be the
textures, although the alpha on them seems fine with image viewer.
- Earth clouds seem to have the alpha issue as well.
Change-Id: Ibdfa49472790d3fc797e269b52986b71d93876f2
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|/
|
|
|
| |
Change-Id: I4592e1366651fd7cc9790267a57b692b80b95320
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
Added examples.pri to examples folder to help deployment to devices.
Change-Id: Ib7b6514d5b5a31dee9a3b7f6f79277550fb77502
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
|