summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
Commit message (Collapse)AuthorAgeFilesLines
* Use Qt3D.Renderer rather than RenderSean Harmer2015-06-1169-69/+69
| | | | | | | | | | | 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>
* Reshape torus-cpp example to be basicshapes-cppMika Salmela2015-06-106-35/+349
| | | | | | | | 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>
* Examples: added license filesLiang Qi2015-06-052-0/+38
| | | | | | | | | | | | 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>
* Target path definition for examplesMika Salmela2015-05-2432-31/+104
| | | | | | | Added examples.pri to examples folder to help deployment to devices. Change-Id: Ib7b6514d5b5a31dee9a3b7f6f79277550fb77502 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Examples: Remove shared resource library.Friedemann Kleint2015-05-2039-286/+110
| | | | | | | | | | Split example-assets.qrc into smaller resource files per directory and add those to the examples as required. Task-number: QTBUG-45990 Change-Id: I0a5a6cee64dc23560e9e093f272ff0d90a6e2e97 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix property name for skybox exampleSean Harmer2015-05-201-1/+1
| | | | | Change-Id: I22389f9a904f203b91ee291f1fc7e9e8e059f31b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Remove exampleresources library from examples that do not use it.Friedemann Kleint2015-05-135-14/+0
| | | | | | | | | | Enable the examples to run stand-alone (when launched from Qt Creator's welcome screen). Task-number: QTBUG-45990 Change-Id: Idc53d8342e75faf962410a91c3b2fe26a02610e5 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* assimp-cpp example addedPaul Lemire2015-05-133-1/+110
| | | | | | | Allow to select a mesh file and load it with the assimp scene loader. Change-Id: I0018fbbdbcf76c65f35b0670c1b1082e304cc9df Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add an example demonstrating inline and in separate file shadersPaul Lemire2015-05-127-1/+331
| | | | | Change-Id: I9ded38f9d65e8b528abc729f0eb6f35558b0ce6d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* anaglyph-3d examplePaul Lemire2015-05-129-61/+510
| | | | | | | Note: you need red/cyan glasses to fully enjoy the experience Change-Id: Ic823831eea0f4658c2ab9116eb1505893847b6e8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Controls exampleMika Salmela2015-05-087-1/+4430
| | | | | | | An example to demonstrate how to use Quick controls for model properties. Change-Id: Ia182716fcd5f11ad78b385507f5da783a232d90a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Examples: fixed to work with QAbstractTransform as QObjectPaul Lemire2015-04-275-82/+84
| | | | | | | | Also fixed QTransform to copy proper transformation matrix to work when loaded in the backend and sent to the frontend. Change-Id: Iec417fd49092b5e3d7971784327ff4bbfb75549b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add precision for sampler2DShadow in ES3 shaderLaszlo Agocs2015-04-221-1/+1
| | | | | | | | | As per GLSL ES 3.0 spec there is no default precision for this type, similarly to float. Therefore some drivers (f.ex. newer Mali ones) reject the shader without specifying the precision. Change-Id: Ib5e9a2d47924da84d6a74dde0b9e894fc4b580e4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Doc: Add skeleton documentation for the examplesTopi Reinio2015-03-1727-0/+864
| | | | | | | | | | | | Add a skeleton version of the example documentation for each example, create a group page for them and link to it from the module landing pages. This allows browsing the example code from the docs and also enables listing them in Qt Creator's Welcome mode. Change-Id: I1ba16399b115bb8c5503bc91d2a8dee46417cd01 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Remove copyright headers from the ES3-specific shadow map shadersLaszlo Agocs2015-03-134-144/+0
| | | | | | | | | | | | | | | | Not having the headers is fine since the built-in shaders do not have them either, neither in Quick nor in Qt3D. The main issue with ES is that in ESSL3 the spec states that the version directive is only allowed in the first line and no comments are allowed before. This is not true for standard GLSL where the spec states the comments and whitespace are allowed before. Mesa does not seem to enforce this, but we have already found at least one GL ES 3.0 implementation which does. Change-Id: I6ac3f949eeb44a005f69cc03f7d6f6eb5b577f2e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move the examples under a qt3d subdirLaszlo Agocs2015-03-04314-0/+138877
| | | | | | | | 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>
* Remove Qt3D 1.x sourcesSean Harmer2014-03-28120-11649/+0
| | | | | | Change-Id: Ic6c05d78f617155892b546721946ee2c5c9b660a Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Merge branch 'master' into newapiSean Harmer2014-02-0755-336/+323
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/threed/scene_ai/qailoader.cpp src/threed/scene_ai/qailoader_p.h src/threed/scene_ai/qaiscene.h src/threed/scene_ai/scene_ai.pri Change-Id: I4132b51ddddb43319a7fc1b4b9a8df692dc22411
| * Replaced Nokia copyrights in headerTeemu Kaukoranta2013-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced old Nokia copyrights with Digia copyrights. Removed "All rights reserved" strings without leading copyrights were removed (for example, 'Copyright SomeCompany, all rights reserved remain untouched). Did NOT touch contact details, will change them later. Excluded folders that have '3rdparty' in path. Used command: find . -path '*/3rdparty/*' -prune -o -exec grep -ilI -E '.*Copyright.*Nokia.*' {} \; | tee >(xargs sed -i -r '1,10 s/([ \t#*]*)(.*Copyright.*Nokia.*)/ \1Copyright \(C\) 2013 Digia Plc and\/or its subsidiary\(-ies\)\./I') >(xargs sed -i -r '1,10 s/(^[ \t#*]*)(all rights reserved.*)/\1/I') This excludes binary files and retains whitespace and #* characters in the beginning of the edited lines. Change-Id: Idbe2a510335385929a282bd70606b8841dff36a8 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
| * remove obsolete DEPENDPATH assignmentsOswald Buddenhagen2012-12-161-1/+0
| | | | | | | | | | | | | | | | qmake now add CONFIG+=depend_includepath by default, making manual DEPENDPATH setup unnecessary. Change-Id: I8f7144bbd53741a2e57f2b90a41a13aa16efc53e Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
| * remove some unnecessary CONFIG additionsOswald Buddenhagen2012-12-1610-10/+0
| | | | | | | | | | | | | | qt is already added by spec_pre.prf, warn_on by default_pre.prf. Change-Id: I362942adad909b718c0af7c7e44cd0c8688901c2 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
| * All QWindow properties that have "window" in them have been renamed.Shawn Rutledge2012-11-132-2/+2
| | | | | | | | | | | | | | Depends on patch Ie4424ec15fbdef6b29b137f90a2ae33f173edd21 in qtbase. Change-Id: I1c6c8a15f379768e0187d8dffd015cdb82c90c93 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
| * Change copyrights from Nokia to DigiaIikka Eklund2012-09-2343-258/+258
| | | | | | | | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ib09067b91869c2840710bffee104bc63c76b0bf7 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
| * Use float throughout the Qt3D module for consistency and performanceSean Harmer2012-09-168-57/+57
| | | | | | | | | | | | | | | | | | | | This commit changes the API of all classes in this module to use float rather than qreal. This makes the API consistent across platforms and improves floating point performance. Change-Id: I95ae65cb31428748e066d5efca059ce24087fafa Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Sarah Jane Smith <sez@storybridge.org>
| * Compile after Math3d was changed to use float instead of qreal.Friedemann Kleint2012-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduced by qtbase: 51d40d7e9bdfc63c5109aef5b732aa2ba10f985a . Fix warnings about truncation from double to float. Introduce qFuzzyCompare() and mark some tests as insignificant. Task-number: QTBUG-27189 Change-Id: Icc2038df5c4c25a7fa9a89ed906a934c2af60cec Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
| * Doc: Fixed usage of "Qt 3D", title names, and file names.Jerome Pasion2012-08-011-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixed usage of "Qt 3D" according to the Qt 5 product guidelines - created links - "Qt3D" -> "Qt 3D" - Renamed titles and used the titles for linking - previously linked to the .html files - Renamed the main page to qt3d-index.html for easier visibilty and to be consistent with other Qt modules - whitespace fix Change-Id: Iac794e5f2ded9d59e3c9e7407a60b430acc45665 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* | Object animations.Sergey Dubitskiy2012-07-2416-1/+4329
|/ | | | | | | | | | Animation tracks for object rotate/scale/translate can be loaded and played. A simple example illustrating this feature is also provided. Task-number: QTBUG-19906 Change-Id: I7a07c214f8ad7065b7f3f48d8929cb7d546af5f3 Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
* Licence header Quick3D -> Qt3D name change.Julian de Bhal2012-04-122-2/+2
| | | | | Change-Id: Idb9eaa260bbac4f7a1281900e683f97d74cadcb5 Reviewed-by: Danny Pope <daniel.pope@nokia.com>
* Refactor packaging and deployment.Sarah Smith2012-03-231-0/+2
| | | | | | | | | | | | | | | Updating Qt3D's packaging and deployment: remove some platform specific packaging references. These can be hidden away in the build scripts for those platforms and do no need to be in the generic package logic. To support this approach begin fixing qmlres and the main.cpp's. Fix and streamline the pkg.pri file, and add some much needed comments. Note that this change *will* break current packaging scripts - those can need to be fixed in seperate commits. Change-Id: I05c2081f61b91bc91673668f6e423a206ac026d5 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* New qt3d example to demonstrate model loading and rendering.Sergey Dubitskiy2012-03-2112-1/+2492
| | | | | Change-Id: Ia962df79bbb61374bb18afddc7a1b1a18cb99a01 Reviewed-by: Danny Pope <daniel.pope@nokia.com>
* Fix unit tests + builds on windows.Sarah Smith2012-02-291-1/+0
| | | | | | | | | | | | | | | | | | | Some of these unit test problems were not just windows, but the issues manifested most badly on windows. Create a mock view object that is similar to the real QGLView, but more specially designed for unit tests, and setup with sensible defaults. Use this for the main failing unit tests. This fixed some of the issues, but there is also a problem with window geometry on windows, and it is not going to be fixed as part of this change. See https://bugreports.qt-project.org/browse/QTBUG-24539 for more. Also fix a few other minor breaks including tutorials not being packaged properly, and places where literal strings were used. Change-Id: Iddd5058bc0aa4e20c4c8adc087e890e5fb5d1346 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Resource handling needs refactoring.Sergey Dubitskiy2012-02-1416-4/+70
| | | | | | | | | | | Phase Two: Fix all C++based demos/examples/tutorials. Call cleanupResources() for all textures created. Task-number: QTBUG-24043 Change-Id: I4bef23f7fe56e092de79bb91b41d6d691329b2cf Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com> Reviewed-by: Danny Pope <daniel.pope@nokia.com>
* Integrate Qt3D into Qt5 and fix some qdoc errors.Peter Yard2012-02-149-9/+9
| | | | | | | | | | | | | | | | This doc change by 'integrating into Qt5' also made some changes to the build system, so that now you need QT+=3d everywhere (instead of QT+=qt3d as it was previously). We have been asked to make this change, and it seems it is required for this doc system to work, so lets get it done. Note that the original change had a docsnippets target but that did not work at all and will have be done in a later commit. Change-Id: Icf4bc6b4be9494f1752e18ca1f5198c8fe8ecf53 Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Julian de Bhal <julian.debhal@nokia.com>
* Task: Resource handling needs refactoring.Sergey Dubitskiy2012-02-124-4/+4
| | | | | | | | | | | | | Phase One: 1. fixed lots of memory leaks related to Texture2D's not being deleted. 2. Texture2D now prints warning in destructor, if cleanupResources() was not properly called before. Task-number: QTBUG-24043 Change-Id: Ia6a8bbe38ad66778a38705e0a4464f24373d8846 Reviewed-by: Danny Pope <daniel.pope@nokia.com>
* Build qt3d/c++ based examples into qt3d/bin using pkg.priJulian de Bhal2012-02-1010-0/+23
| | | | | Change-Id: Ib3681004af81271994c467e477b2ee0969cf07fe Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Update of icons.dpope2012-02-102-6/+28
| | | | | | | Icons updated to the newer style - needs on device testing. Change-Id: I9ff198b378e1d00a7d6a4c91cc60b1d0e60e9237 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3040-40/+40
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Iaddf1e489f97d2b08894827c90e9e58cd02d2ef2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2040-40/+40
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I36e7a01dc458ad25afef2de46a5807f2983fac43 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove the graphics view example & support.Sarah Smith2012-01-1224-1865/+0
| | | | | | | | | | | | | This is not supported in qt5 so remove it. In the future we will encourage putting QML applications on the side of a cube or teapot using the FBO support. But doing this via QGraphics* code which really belongs to both the 4.8 days and the old imperative non-QML way of doing things - not a good idea. We can't recommend that as a viable approach. Change-Id: I70f69f17edd949e313758f930bb75cdaad3c46c5 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-122-2/+2
| | | | | | Change-Id: I6e681df7e4fac972a604531cecd9850cd9710935 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-1255-55/+55
| | | | | | | Update copyright headers from before 2011. Change-Id: Id5a16806e69c595b12cc761acfa0a0eaf0b99d72 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Make Qt3D buildable without widgets or opengl.Sarah Smith2011-12-2152-284/+41
| | | | | | | | | | | | | | | | Pull out all references to QGLContext, and QGLWidget and so on; and replace with the equivalent from the gui library. Where there is no equivalent, eg the BindOptions enum, then reimplement. Also get rid of the harmattan and symbian packaging goop. This had become completely unmaintainable, and was making it very hard to see what dependencies were being pull in by the various parts of the build system. In order to have any confidence that conditional compilation would not add in some problematic dependency, clean all this up. Task-number: QTBUG-23299 Change-Id: Ied92ca1397076986e455674b064d8540bb13c0df Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* New Repo: Updating all non-code references (comments and such) to Qt3D.Patrick Burke2011-12-1255-55/+55
| | | | | Change-Id: Icd7709d4fd91fc972d503f8e3f9de0e47f56ff96 Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
* More fixes to QtQuick3D namespace compilation.Toby Tomkins2011-11-2811-2/+26
| | | | | Change-Id: Ib648c9fbd613be1548c194fe6afd3d791c1ae368 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Compile with C++0xAlan Alpert2011-10-211-1/+1
| | | | | Change-Id: Ic8820362cdbc8fa662a5e97db841656cf38d1baa Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
* QtQuick3d: Compile on Windows.Friedemann Kleint2011-10-209-9/+9
| | | | | | | | | - Fix missing library specifications - Fix g++ string conversion warnings. Change-Id: I48f19ac0f33bea1154c31c9aeab1bbd83f8f3d84 Reviewed-by: Patrick Burke <patrick.burke@nokia.com> Reviewed-by: Julian de Bhal <julian.debhal@nokia.com>
* Remove legacy build system logic.Rohan McGovern2011-10-1810-10/+10
| | | | | | | | In Qt4, qtquick3d had to reinvent a lot of Qt's own build system logic. In Qt5, modularization makes this unnecessary, so remove it. Change-Id: I683acba659c1a3842e927262cacd9377cdac7c35 Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Fix skating viewport, and quit.Sarah Smith2011-10-141-0/+1
| | | | | | | | | | | | | | | | | Under qt 5 what seems to have been a long standing bug was exposed where glViewport was called with the first two arguments set to the x, y origin of the window. These have always been 0, 0 apparently but under xcb that is not the case and dragging the window of a running qt3d app across the desktop was causing the gl to scroll across inside the window. Looked pretty weird. Now set to 0, 0 as elsewhere and seems to have fixed the problem. Also fixed quit not working, and put a test for the new quit enabled viewport into basket app. Will need to be added to other apps also. Change-Id: I85651cc0df2fdbef466f843e12c046986f495b29 Reviewed-on: http://codereview.qt-project.org/6505 Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
* Fixes for surface vs QOpenGLContext & QWindow.Sarah Smith2011-10-0326-70/+247
| | | | | | | | | | | | | | | | | | | With the qt5 refactor branch going in the ability to get a QPaintDevice has gone away - this was really a "relic from the desktop days". Painting still applies for FBO's and so on, but in the case of QML we are on an SG view and there is no paint device there. So move the QGLView to using a QWindow and QOpenGLContext as well to follow suit and replace all the logic in surface stuff to cope with that. Also update all examples, demos, tutorials and tests. Change-Id: Ie8dbeb97c87ef0821326fb7ccf5d5d4b1f90fd06 Reviewed-on: http://codereview.qt-project.org/5900 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* Port to refactorGunnar Sletta2011-09-214-7/+7
| | | | | | Change-Id: I8e4f56577f708eea208c51538c77fd4b2c4fefb5 Reviewed-on: http://codereview.qt-project.org/5219 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>