This allows to remove dependencies and reduce deployment size when a given
aspect is not required.
Change-Id: I5aa90e4825b375cd446c47727aa11d03c40703c9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
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>
This can be reverted following the merge from dev -> 5.5.
Change-Id: I7b85e64aa91d9ed81e3ef4d866e531056314d72e
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Demonstrate the use of a CubeMapTexture
Note: cubemap textures added to the example resources assets as webp
Change-Id: I68256c204c3ccde7a4cc744238135dbd9b317198
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Tested on:
* Layer
* Material
* Mesh
* Transform
* CameraLens
This example will be completed later on to test the enabled flag on FrameGraph
node.
Change-Id: Ia128ea5e5c8624ef2b11d82bd541a635f349727f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Comes with an example to try the embedding and check that
transformations work on the Scene3D element.
Change-Id: I93b4690b7fac0c9c90f8a89c53ad6b83aa2c89a6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Demonstrate and ensure that dynamic element adding/removing from the scene is
working.
Change-Id: I83819fe813c3910c9a8e4460ef7147fc56421c74
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
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>
It also come with an example where we swap between two entities loaded
from QML files.
Change-Id: I09d5c5852ad5ea1e85d2acfffd51413de437ce22
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This is an example that shows how to make a nice backdrop in the spirit
of the PS3's XMB background.
Change-Id: I32e83d92246b65ffb143884a1bac7a9b869c7989
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
This will help test the keyboard inputs as the QInputsAspect gets completed
over time.
Change-Id: I8f8fe5dcd0ccf4c83f75297c2dcb95bb9e9eddb7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Because it's a playground and not simple at all...!
Change-Id: I9c40972695583b761f035e3f62b54cf3772dae9f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Also extended Renderer and friends to support setting the number
of vertices per patch with glPathParameteri(GL_PATCH_VERTICES, n).
To support this QMeshData now also stores the vertices per patch.
This demonstrates how to tessellate using quad tessellation mode.
Follow-up commits will add objects to show triangle and isoline
modes.
Change-Id: I68afb31815db430d0b4d8d9cc525efcfb9a216fc
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Needed to extend the set of standard uniforms to include the viewport
matrix.
We also don't seem to get the type information for uniforms from glsl
but rather infer it from QML. In this example it resulted in a bug
where the line.width was being set with glUniformi() instead of
glUniformf() when we used whole values such as 1.0 in the Parameter of
WireframeEffect.qml. Worked aroudn by using a typed property in
WireframeMaterial.qml for now but this needs fixing.
Change-Id: Ie07a81b1b0b6c176e188d9e489643b22e339192a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
At present it only exercises the renderer but it will be extended
to also cover the physics aspect too.
Change-Id: I83217f09eeb3471b8a508fa8a8948410ad1e1d58
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Unfortunately the Instantiator doesn't work yet (that is,
dynamically updating the scene has no effect)
Change-Id: I940c192440c9fb65e94e3b20a474022d2164bcda
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
At the moment, this example needs to be compiles against the QML module.
In the future a Window dedicated to C++ scenes without QML dependencies
could solve that issue.
Change-Id: I22624d275ff345c581dd1070f6598aabc0a4e40e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
The C++ implementation of Qt3D could not be compiled without also having
installed QtQML and QtQuick. This change allows the compilation of the
non-QML part of Qt3D separately.
Change-Id: I791a03a0f0e1118f3ec20b77be327786148b8923
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fill repo with some of the files from the research/qt3d project. At
present the new project builds under MacOSX. To-dos include getting it
building under linux, windows, harmattan and maemo/meego; updating the
documentation to reflect the new QtQuick focus; and fixing the issues
with private headers.