diff options
Diffstat (limited to 'tests/manual/model3ds')
-rw-r--r-- | tests/manual/model3ds/README | 12 | ||||
-rw-r--r-- | tests/manual/model3ds/main.cpp | 63 | ||||
-rw-r--r-- | tests/manual/model3ds/model3ds.pro | 10 | ||||
-rw-r--r-- | tests/manual/model3ds/model3ds.qrc | 10 | ||||
-rw-r--r-- | tests/manual/model3ds/qml/meshes/hazard.png | bin | 64685 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/qml/meshes/lunar-lander.3ds | bin | 23456 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/qml/meshes/monkey.3ds | bin | 13886 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/qml/meshes/penguin.3ds | bin | 36301 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/qml/meshes/robot.3ds | bin | 76250 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/qml/tst_model3ds.qml | 199 | ||||
-rw-r--r-- | tests/manual/model3ds/qtquick3d.png | bin | 4050 -> 0 bytes | |||
-rw-r--r-- | tests/manual/model3ds/tst_submesh_qml.desktop | 7 |
12 files changed, 0 insertions, 301 deletions
diff --git a/tests/manual/model3ds/README b/tests/manual/model3ds/README deleted file mode 100644 index 63630c78..00000000 --- a/tests/manual/model3ds/README +++ /dev/null @@ -1,12 +0,0 @@ - -This test renders a series of 3ds files to exercise currently supported functionality. - -The first model is comprised of a single mesh with no materials. - -The second model is a single mesh with coloured materials. - -The third mesh is a heirarchic mesh with no materials. - -The fourth mesh is a heirarchic mesh with colours/textures. - -All meshes should be lit & shaded, and can be manually rotated etc. as per QtQuick3D norms. diff --git a/tests/manual/model3ds/main.cpp b/tests/manual/model3ds/main.cpp deleted file mode 100644 index 2b2276c1..00000000 --- a/tests/manual/model3ds/main.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include <QtGui/QApplication> -#include "qdeclarativeview3d.h" - -#include "../../shared/qmlres.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QDeclarativeView3D view; - QString qml = q_get_qmldir(QLatin1String("qml/tst_model3ds.qml")); - view.setSource(QUrl::fromLocalFile(qml)); - - if (QApplication::arguments().contains(QLatin1String("-maximize"))) - view.showMaximized(); - else if (QApplication::arguments().contains(QLatin1String("-fullscreen"))) - view.showFullScreen(); - else - view.show(); - - return app.exec(); -} diff --git a/tests/manual/model3ds/model3ds.pro b/tests/manual/model3ds/model3ds.pro deleted file mode 100644 index bc19365e..00000000 --- a/tests/manual/model3ds/model3ds.pro +++ /dev/null @@ -1,10 +0,0 @@ -TEMPLATE = app -TARGET = tst_model3ds -CONFIG += qt warn_on - -INSTALL_DIRS = qml -CONFIG += qt3d_deploy_qml qt3dquick_deploy_pkg -include(../../../pkg.pri) -qtcAddDeployment() - -SOURCES += main.cpp diff --git a/tests/manual/model3ds/model3ds.qrc b/tests/manual/model3ds/model3ds.qrc deleted file mode 100644 index 6dbd8edd..00000000 --- a/tests/manual/model3ds/model3ds.qrc +++ /dev/null @@ -1,10 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>qml/tst_model3ds.qml</file> - <file>qml/meshes/lunar-lander.3ds</file> - <file>qml/meshes/monkey.3ds</file> - <file>qml/meshes/penguin.3ds</file> - <file>qml/meshes/robot.3ds</file> - <file>qml/meshes/hazard.png</file> - </qresource> -</RCC> diff --git a/tests/manual/model3ds/qml/meshes/hazard.png b/tests/manual/model3ds/qml/meshes/hazard.png Binary files differdeleted file mode 100644 index a7c0b7fe..00000000 --- a/tests/manual/model3ds/qml/meshes/hazard.png +++ /dev/null diff --git a/tests/manual/model3ds/qml/meshes/lunar-lander.3ds b/tests/manual/model3ds/qml/meshes/lunar-lander.3ds Binary files differdeleted file mode 100644 index 7403fdef..00000000 --- a/tests/manual/model3ds/qml/meshes/lunar-lander.3ds +++ /dev/null diff --git a/tests/manual/model3ds/qml/meshes/monkey.3ds b/tests/manual/model3ds/qml/meshes/monkey.3ds Binary files differdeleted file mode 100644 index e9a007b2..00000000 --- a/tests/manual/model3ds/qml/meshes/monkey.3ds +++ /dev/null diff --git a/tests/manual/model3ds/qml/meshes/penguin.3ds b/tests/manual/model3ds/qml/meshes/penguin.3ds Binary files differdeleted file mode 100644 index 26c09ac0..00000000 --- a/tests/manual/model3ds/qml/meshes/penguin.3ds +++ /dev/null diff --git a/tests/manual/model3ds/qml/meshes/robot.3ds b/tests/manual/model3ds/qml/meshes/robot.3ds Binary files differdeleted file mode 100644 index ed872c82..00000000 --- a/tests/manual/model3ds/qml/meshes/robot.3ds +++ /dev/null diff --git a/tests/manual/model3ds/qml/tst_model3ds.qml b/tests/manual/model3ds/qml/tst_model3ds.qml deleted file mode 100644 index 7a24ae67..00000000 --- a/tests/manual/model3ds/qml/tst_model3ds.qml +++ /dev/null @@ -1,199 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 1.0 -import Qt3D 1.0 -import Qt3D.Shapes 1.0 - -// QTBUG-17392 / QTBUG-17391 -Item { - id: screen - width: 720 - height: 480 - - //ITEM 1: Simple model without materials - Rectangle { - id: panel1 - x: 0; y:0 - width: screen.width/4 - height: screen.height - border.width: 3 - color: "#3333aa" - - Viewport { - anchors.fill: parent - camera: Camera { eye: Qt.vector3d(0,3,15)} - - Item3D { - scale: 2 - position: Qt.vector3d(0,-1,0) - mesh: Mesh {source: "meshes/monkey.3ds"} - } - } - - Rectangle { - border.width: 3; radius: 5 - width: parent.width - height: text1.height + 10 - Text { - id: text1 - width: parent.width - wrapMode: "WordWrap" - text: " MULTI-COMPONENT: No\n MATERIALS: None\n\n A grey shaded monkey head\n should be visible.\n\n Use mouse to rotate/zoom." - anchors.centerIn: parent - } - } - } - - //ITEM 2: Simple model with materials - Rectangle { - id: panel2 - anchors.left: panel1.right - anchors.top: parent.top - width: screen.width/4 - height: screen.height - border.width: 3 - color: "#3333aa" - - Viewport { - anchors.fill: parent - camera: Camera { eye: Qt.vector3d(0,3,15)} - - Item3D { - scale: 0.8 - position: Qt.vector3d(0,-1,0) - mesh: Mesh {source: "meshes/penguin.3ds"} - } - } - - Rectangle { - border.width: 3; radius: 5 - width: parent.width - height: text2.height + 10 - Text { - id: text2 - width: parent.width - wrapMode: "WordWrap" - text: " MULTI-COMPONENT: No\n MATERIALS: Yes\n\n A coloured, lit penguin\n should be visible.\n\n Use mouse to rotate/zoom." - anchors.centerIn: parent - } - } - } - - //ITEM 3: A complex model without materials - Rectangle { - id: panel3 - anchors.left: panel2.right - anchors.top: parent.top - width: screen.width/4 - height: screen.height - border.width: 3 - color: "#3333aa" - - Viewport { - anchors.fill: parent - camera: Camera { eye: Qt.vector3d(0,0,10)} - - Item3D { - scale: 0.4 - position: Qt.vector3d(0,-1,0) - mesh: Mesh {source: "meshes/lunar-lander.3ds"} - } - } - //text for item3 - Rectangle { - border.width: 3; radius: 5 - width: parent.width - height: text3.height + 10 - Text { - id: text3 - width: parent.width - wrapMode: "WordWrap" - text: " MULTI-COMPONENT: Yes\n MATERIALS: None\n\n A grey shaded lunar lander\n should be visible.\n\n Use mouse to rotate/zoom." - anchors.centerIn: parent - } - } - } - //ITEM 4: A Complex model with materials - Rectangle { - id: panel4 - anchors.left: panel3.right - anchors.top: parent.top - width: screen.width/4 - height: screen.height - border.width: 3 - color: "#3333aa" - - Viewport { - anchors.fill: parent - camera: Camera { eye: Qt.vector3d(0,0,10)} - - Item3D { - scale: 0.4 - position: Qt.vector3d(0,-2,0) - - transform: [ - Rotation3D {id: correct; angle: 90; axis: Qt.vector3d(0,1,0)}, - Rotation3D {id: pitch; angle: -90; axis: Qt.vector3d(0,0,1)}, - Rotation3D {id: roll; angle: 0; axis: Qt.vector3d(1,0,0)}, - Rotation3D {id: yaw; angle: 0; axis: Qt.vector3d(0,1,0)} - ] - - mesh: Mesh {source: "meshes/robot.3ds"} - } - } - //text for item4 - Rectangle { - border.width: 3; radius: 5 - width: parent.width - height: text4.height + 10 - Text { - id: text4 - width: parent.width - wrapMode: "WordWrap" - text: " MULTI-COMPONENT: Yes\n MATERIALS: Yes\n\n A lit, coloured, textured robot\n should be visible.\n\n Use mouse to rotate/zoom." - anchors.centerIn: parent - } - } - } -} - - diff --git a/tests/manual/model3ds/qtquick3d.png b/tests/manual/model3ds/qtquick3d.png Binary files differdeleted file mode 100644 index 8351083e..00000000 --- a/tests/manual/model3ds/qtquick3d.png +++ /dev/null diff --git a/tests/manual/model3ds/tst_submesh_qml.desktop b/tests/manual/model3ds/tst_submesh_qml.desktop deleted file mode 100644 index 7bd7fd92..00000000 --- a/tests/manual/model3ds/tst_submesh_qml.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Type=Application -Name=tst_submesh -Icon=/usr/share/icons/hicolor/80x80/apps/qtquick3d.png -Exec=/usr/bin/invoker --type=e -s /usr/bin/tst_submesh -fullscreen -OnlyShowIn=X-MeeGo; -X-MeeGo-Logical-Id=qtn_comm_appname_tst_submesh_qml |