diff options
Diffstat (limited to 'tests/auto/threed/load_model')
-rw-r--r-- | tests/auto/threed/load_model/load_model.pro | 10 | ||||
-rw-r--r-- | tests/auto/threed/load_model/load_model.qrc | 13 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.3ds | bin | 435 -> 0 bytes | |||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.blend | bin | 128232 -> 0 bytes | |||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.dae | 192 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.m3g | bin | 1188 -> 0 bytes | |||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.mtl | 22 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.obj | 27 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.ply | 43 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/basic-cube.x3d | 30 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/cube.dae | 146 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/teacup.bez | 280 | ||||
-rw-r--r-- | tests/auto/threed/load_model/models/wave.obj | 476 | ||||
-rw-r--r-- | tests/auto/threed/load_model/tst_load_model.cpp | 237 |
14 files changed, 0 insertions, 1476 deletions
diff --git a/tests/auto/threed/load_model/load_model.pro b/tests/auto/threed/load_model/load_model.pro deleted file mode 100644 index 41f728a2..00000000 --- a/tests/auto/threed/load_model/load_model.pro +++ /dev/null @@ -1,10 +0,0 @@ -TARGET = tst_load_model -CONFIG += testcase -TEMPLATE=app -QT += testlib qt3d -CONFIG += warn_on - -SOURCES += tst_load_model.cpp - -RESOURCES += \ - load_model.qrc diff --git a/tests/auto/threed/load_model/load_model.qrc b/tests/auto/threed/load_model/load_model.qrc deleted file mode 100644 index 5bb2fec0..00000000 --- a/tests/auto/threed/load_model/load_model.qrc +++ /dev/null @@ -1,13 +0,0 @@ -<RCC> - <qresource prefix="/data"> - <file>models/basic-cube.3ds</file> - <file>models/basic-cube.blend</file> - <file>models/basic-cube.mtl</file> - <file>models/basic-cube.obj</file> - <file>models/wave.obj</file> - <file>models/basic-cube.m3g</file> - <file>models/basic-cube.ply</file> - <file>models/basic-cube.x3d</file> - <file>models/basic-cube.dae</file> - </qresource> -</RCC> diff --git a/tests/auto/threed/load_model/models/basic-cube.3ds b/tests/auto/threed/load_model/models/basic-cube.3ds Binary files differdeleted file mode 100644 index fbd4c072..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.3ds +++ /dev/null diff --git a/tests/auto/threed/load_model/models/basic-cube.blend b/tests/auto/threed/load_model/models/basic-cube.blend Binary files differdeleted file mode 100644 index 663e17de..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.blend +++ /dev/null diff --git a/tests/auto/threed/load_model/models/basic-cube.dae b/tests/auto/threed/load_model/models/basic-cube.dae deleted file mode 100644 index 06167caf..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.dae +++ /dev/null @@ -1,192 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema"> - <asset> - <contributor> - <author>Illusoft Collada 1.4.0 plugin for Blender - http://colladablender.illusoft.com</author> - <authoring_tool>Blender v:249 - Illusoft Collada Exporter v:0.3.162</authoring_tool> - <comments></comments> - <copyright></copyright> - <source_data>file:///Users/sez/depot/research/qt3d_assimp/tests/auto/threed/load_model/models/basic-cube.blend</source_data> - </contributor> - <created>2010-12-15T02:14:49.600213</created> - <modified>2010-12-15T02:14:49.600247</modified> - <unit meter="0.01" name="centimeter"/> - <up_axis>Z_UP</up_axis> - </asset> - <library_effects> - <effect id="Red-fx" name="Red-fx"> - <profile_COMMON> - <technique sid="blender"> - <phong> - <emission> - <color>0.00000 0.00000 0.00000 1</color> - </emission> - <ambient> - <color>0.45937 0.07860 0.07860 1</color> - </ambient> - <diffuse> - <color>0.91873 0.15720 0.15720 1</color> - </diffuse> - <specular> - <color>0.50000 0.50000 0.50000 1</color> - </specular> - <shininess> - <float>12.5</float> - </shininess> - <reflective> - <color>1.00000 1.00000 1.00000 1</color> - </reflective> - <reflectivity> - <float>0.0</float> - </reflectivity> - <transparent> - <color>1 1 1 1</color> - </transparent> - <transparency> - <float>0.0</float> - </transparency> - </phong> - </technique> - </profile_COMMON> - </effect> - <effect id="SlateGray-fx" name="SlateGray-fx"> - <profile_COMMON> - <technique sid="blender"> - <phong> - <emission> - <color>0.00000 0.00000 0.00000 1</color> - </emission> - <ambient> - <color>0.18500 0.28000 0.30500 1</color> - </ambient> - <diffuse> - <color>0.37000 0.56000 0.61000 1</color> - </diffuse> - <specular> - <color>0.50000 0.50000 0.50000 1</color> - </specular> - <shininess> - <float>12.5</float> - </shininess> - <reflective> - <color>1.00000 1.00000 1.00000 1</color> - </reflective> - <reflectivity> - <float>0.0</float> - </reflectivity> - <transparent> - <color>1 1 1 1</color> - </transparent> - <transparency> - <float>0.0</float> - </transparency> - </phong> - </technique> - </profile_COMMON> - </effect> - </library_effects> - <library_materials> - <material id="Red" name="Red"> - <instance_effect url="#Red-fx"/> - </material> - <material id="SlateGray" name="SlateGray"> - <instance_effect url="#SlateGray-fx"/> - </material> - </library_materials> - <library_geometries> - <geometry id="CubeObject-Geometry" name="CubeObject-Geometry"> - <mesh> - <source id="CubeObject-Geometry-Position"> - <float_array count="24" id="CubeObject-Geometry-Position-array">1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000 1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000</float_array> - <technique_common> - <accessor count="8" source="#CubeObject-Geometry-Position-array" stride="3"> - <param type="float" name="X"></param> - <param type="float" name="Y"></param> - <param type="float" name="Z"></param> - </accessor> - </technique_common> - </source> - <source id="CubeObject-Geometry-Normals"> - <float_array count="18" id="CubeObject-Geometry-Normals-array">0.00000 0.00000 -1.00000 0.00000 -0.00000 1.00000 1.00000 -0.00000 0.00000 -0.00000 -1.00000 -0.00000 -1.00000 0.00000 -0.00000 0.00000 1.00000 0.00000</float_array> - <technique_common> - <accessor count="6" source="#CubeObject-Geometry-Normals-array" stride="3"> - <param type="float" name="X"></param> - <param type="float" name="Y"></param> - <param type="float" name="Z"></param> - </accessor> - </technique_common> - </source> - <vertices id="CubeObject-Geometry-Vertex"> - <input semantic="POSITION" source="#CubeObject-Geometry-Position"/> - </vertices> - <triangles count="10" material="Red"> - <input offset="0" semantic="VERTEX" source="#CubeObject-Geometry-Vertex"/> - <input offset="1" semantic="NORMAL" source="#CubeObject-Geometry-Normals"/> - <p>0 0 1 0 2 0 2 0 3 0 0 0 0 2 4 2 5 2 5 2 1 2 0 2 1 3 5 3 6 3 6 3 2 3 1 3 2 4 6 4 7 4 7 4 3 4 2 4 4 5 0 5 3 5 3 5 7 5 4 5</p> - </triangles> - <triangles count="2" material="SlateGray"> - <input offset="0" semantic="VERTEX" source="#CubeObject-Geometry-Vertex"/> - <input offset="1" semantic="NORMAL" source="#CubeObject-Geometry-Normals"/> - <p>4 1 7 1 6 1 6 1 5 1 4 1</p> - </triangles> - </mesh> - </geometry> - </library_geometries> - <library_visual_scenes> - <visual_scene id="Scene" name="Scene"> - <node layer="L1" id="CubeObject" name="CubeObject"> - <translate sid="translate">0.00000 0.00000 0.00000</translate> - <rotate sid="rotateZ">0 0 1 0.00000</rotate> - <rotate sid="rotateY">0 1 0 -0.00000</rotate> - <rotate sid="rotateX">1 0 0 0.00000</rotate> - <scale sid="scale">1.00000 1.00000 1.00000</scale> - <instance_geometry url="#CubeObject-Geometry"> - <bind_material> - <technique_common> - <instance_material symbol="Red" target="#Red"> - <bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/> - </instance_material> - <instance_material symbol="SlateGray" target="#SlateGray"> - <bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/> - </instance_material> - </technique_common> - </bind_material> - </instance_geometry> - </node> - </visual_scene> - </library_visual_scenes> - <library_physics_materials> - <physics_material id="CubeObject-PhysicsMaterial" name="CubeObject-PhysicsMaterial"> - <technique_common> - <dynamic_friction>0.5</dynamic_friction> - <restitution>0.0</restitution> - <static_friction>0.5</static_friction> - </technique_common> - </physics_material> - </library_physics_materials> - <library_physics_models> - <physics_model id="Scene-PhysicsModel" name="Scene-PhysicsModel"> - <rigid_body name="CubeObject-RigidBody" sid="CubeObject-RigidBody"> - <technique_common> - <dynamic>false</dynamic> - <mass>0</mass> - <instance_physics_material url="#CubeObject-PhysicsMaterial"/> - <shape> - <instance_geometry url="#CubeObject-Geometry"/> - </shape> - </technique_common> - </rigid_body> - </physics_model> - </library_physics_models> - <library_physics_scenes> - <physics_scene id="Scene-Physics" name="Scene-Physics"> - <instance_physics_model url="#Scene-PhysicsModel"> - <instance_rigid_body body="CubeObject-RigidBody" target="#CubeObject"/> - </instance_physics_model> - </physics_scene> - </library_physics_scenes> - <scene> - <instance_physics_scene url="#Scene-Physics"/> - <instance_visual_scene url="#Scene"/> - </scene> -</COLLADA> diff --git a/tests/auto/threed/load_model/models/basic-cube.m3g b/tests/auto/threed/load_model/models/basic-cube.m3g Binary files differdeleted file mode 100644 index 28962d8a..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.m3g +++ /dev/null diff --git a/tests/auto/threed/load_model/models/basic-cube.mtl b/tests/auto/threed/load_model/models/basic-cube.mtl deleted file mode 100644 index ce8c4b93..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.mtl +++ /dev/null @@ -1,22 +0,0 @@ -# Blender3D MTL File: basic-cube.blend -# Material Count: 2 -newmtl SlateGray -Ns 96.078431 -Ka 0.000000 0.000000 0.000000 -Kd 0.296000 0.448000 0.488000 -Ks 0.500000 0.500000 0.500000 -Ni 1.000000 -d 1.000000 -illum 2 - - -newmtl Red -Ns 96.078431 -Ka 0.000000 0.000000 0.000000 -Kd 0.734986 0.125756 0.125756 -Ks 0.500000 0.500000 0.500000 -Ni 1.000000 -d 1.000000 -illum 2 - - diff --git a/tests/auto/threed/load_model/models/basic-cube.obj b/tests/auto/threed/load_model/models/basic-cube.obj deleted file mode 100644 index 039b220e..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.obj +++ /dev/null @@ -1,27 +0,0 @@ -# Blender3D v249 OBJ File: basic-cube.blend -# www.blender3d.org -mtllib basic-cube.mtl -o CubeObject_CubeMesh -v 1.000000 -1.000000 -1.000000 -v 1.000000 -1.000000 1.000000 -v -1.000000 -1.000000 1.000000 -v -1.000000 -1.000000 -1.000000 -v 1.000000 1.000000 -1.000000 -v 0.999999 1.000000 1.000001 -v -1.000000 1.000000 1.000000 -v -1.000000 1.000000 -1.000000 -vn 0.000000 -1.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.000000 0.000000 1.000000 -vn -1.000000 0.000000 0.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 1.000000 0.000000 -usemtl Red -f 1//1 2//1 3//1 4//1 -f 1//2 5//2 6//2 2//2 -f 2//3 6//3 7//3 3//3 -f 3//4 7//4 8//4 4//4 -f 5//5 1//5 4//5 8//5 -usemtl SlateGray -f 5//6 8//6 7//6 6//6 - diff --git a/tests/auto/threed/load_model/models/basic-cube.ply b/tests/auto/threed/load_model/models/basic-cube.ply deleted file mode 100644 index ddb5be70..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.ply +++ /dev/null @@ -1,43 +0,0 @@ -ply -format ascii 1.0 -comment Created by Blender3D 249 - www.blender.org, source file: basic-cube.blend -element vertex 24 -property float x -property float y -property float z -property float nx -property float ny -property float nz -element face 6 -property list uchar uint vertex_indices -end_header -1.000000 1.000000 -1.000000 0.000000 0.000000 -1.000000 -1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 --1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 --1.000000 1.000000 -1.000000 0.000000 0.000000 -1.000000 -1.000000 0.999999 1.000000 0.000000 -0.000000 1.000000 --1.000000 1.000000 1.000000 0.000000 -0.000000 1.000000 --1.000000 -1.000000 1.000000 0.000000 -0.000000 1.000000 -0.999999 -1.000001 1.000000 0.000000 -0.000000 1.000000 -1.000000 1.000000 -1.000000 1.000000 -0.000000 0.000000 -1.000000 0.999999 1.000000 1.000000 -0.000000 0.000000 -0.999999 -1.000001 1.000000 1.000000 -0.000000 0.000000 -1.000000 -1.000000 -1.000000 1.000000 -0.000000 0.000000 -1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 -0.999999 -1.000001 1.000000 -0.000000 -1.000000 -0.000000 --1.000000 -1.000000 1.000000 -0.000000 -1.000000 -0.000000 --1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 --1.000000 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 --1.000000 -1.000000 1.000000 -1.000000 0.000000 -0.000000 --1.000000 1.000000 1.000000 -1.000000 0.000000 -0.000000 --1.000000 1.000000 -1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.999999 1.000000 0.000000 1.000000 0.000000 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 --1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 --1.000000 1.000000 1.000000 0.000000 1.000000 0.000000 -4 0 1 2 3 -4 4 5 6 7 -4 8 9 10 11 -4 12 13 14 15 -4 16 17 18 19 -4 20 21 22 23 diff --git a/tests/auto/threed/load_model/models/basic-cube.x3d b/tests/auto/threed/load_model/models/basic-cube.x3d deleted file mode 100644 index 0c52894d..00000000 --- a/tests/auto/threed/load_model/models/basic-cube.x3d +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd"> -<X3D version="3.0" profile="Immersive" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd"> -<head> - <meta name="filename" content="basic-cube.x3d" /> - <meta name="generator" content="Blender 249" /> - <meta name="translator" content="X3D exporter v1.55 (2006/01/17)" /> -</head> -<Scene> -<NavigationInfo headlight="FALSE" visibilityLimit="0.0" type='"EXAMINE","ANY"' avatarSize="0.25, 1.75, 0.75" /> -<Background groundColor="0.057 0.221 0.4" skyColor="0.057 0.221 0.4" /> - -<Collision enabled="false"> - <Transform DEF="CubeObject" translation="0.000000 0.000000 0.000000" scale="1.000000 1.000000 1.000000" rotation="-1.000000 0.000000 0.000000 1.570796"> - <Shape> - <Appearance> - <Material DEF="MA_Red" diffuseColor="0.919 0.157 0.157" specularColor="0.401 0.401 0.401" emissiveColor="0.0 0.0 0.0" - ambientIntensity="0.167" shininess="0.098" transparency="0.0" /> - </Appearance> - <IndexedFaceSet solid="true" coordIndex="0 1 2 -1, 0 2 3 -1, 4 7 6 -1, 4 6 5 -1, 0 4 5 -1, 0 5 1 -1, 1 5 6 -1, 1 6 2 -1, 2 6 7 -1, 2 7 3 -1, 4 0 3 -1, 4 3 7 -1, "> - <Coordinate DEF="coord_CubeObject" - point="1.000000 1.000000 -1.000000, 1.000000 -1.000000 -1.000000, -1.000000 -1.000000 -1.000000, -1.000000 1.000000 -1.000000, 1.000000 0.999999 1.000000, 0.999999 -1.000001 1.000000, -1.000000 -1.000000 1.000000, -1.000000 1.000000 1.000000, " /> - </IndexedFaceSet> - </Shape> -</Transform> -</Collision> - - -</Scene> -</X3D> diff --git a/tests/auto/threed/load_model/models/cube.dae b/tests/auto/threed/load_model/models/cube.dae deleted file mode 100644 index cda4d16c..00000000 --- a/tests/auto/threed/load_model/models/cube.dae +++ /dev/null @@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema"> - <asset> - <contributor> - <author>Illusoft Collada 1.4.0 plugin for Blender - http://colladablender.illusoft.com</author> - <authoring_tool>Blender v:249 - Illusoft Collada Exporter v:0.3.162</authoring_tool> - <comments></comments> - <copyright></copyright> - <source_data>file://</source_data> - </contributor> - <created>2010-12-15T02:07:15.785711</created> - <modified>2010-12-15T02:07:15.787585</modified> - <unit meter="0.01" name="centimeter"/> - <up_axis>Z_UP</up_axis> - </asset> - <library_effects> - <effect id="Material-fx" name="Material-fx"> - <profile_COMMON> - <technique sid="blender"> - <phong> - <emission> - <color>0.00000 0.00000 0.00000 1</color> - </emission> - <ambient> - <color>0.40000 0.40000 0.40000 1</color> - </ambient> - <diffuse> - <color>0.80000 0.80000 0.80000 1</color> - </diffuse> - <specular> - <color>0.50000 0.50000 0.50000 1</color> - </specular> - <shininess> - <float>12.5</float> - </shininess> - <reflective> - <color>1.00000 1.00000 1.00000 1</color> - </reflective> - <reflectivity> - <float>0.0</float> - </reflectivity> - <transparent> - <color>1 1 1 1</color> - </transparent> - <transparency> - <float>0.0</float> - </transparency> - </phong> - </technique> - </profile_COMMON> - </effect> - </library_effects> - <library_materials> - <material id="Material" name="Material"> - <instance_effect url="#Material-fx"/> - </material> - </library_materials> - <library_geometries> - <geometry id="Cube_001" name="Cube_001"> - <mesh> - <source id="Cube_001-Position"> - <float_array count="24" id="Cube_001-Position-array">1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000 1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000</float_array> - <technique_common> - <accessor count="8" source="#Cube_001-Position-array" stride="3"> - <param type="float" name="X"></param> - <param type="float" name="Y"></param> - <param type="float" name="Z"></param> - </accessor> - </technique_common> - </source> - <source id="Cube_001-Normals"> - <float_array count="18" id="Cube_001-Normals-array">0.00000 0.00000 -1.00000 0.00000 -0.00000 1.00000 1.00000 -0.00000 0.00000 -0.00000 -1.00000 -0.00000 -1.00000 0.00000 -0.00000 0.00000 1.00000 0.00000</float_array> - <technique_common> - <accessor count="6" source="#Cube_001-Normals-array" stride="3"> - <param type="float" name="X"></param> - <param type="float" name="Y"></param> - <param type="float" name="Z"></param> - </accessor> - </technique_common> - </source> - <vertices id="Cube_001-Vertex"> - <input semantic="POSITION" source="#Cube_001-Position"/> - </vertices> - <triangles count="12" material="Material"> - <input offset="0" semantic="VERTEX" source="#Cube_001-Vertex"/> - <input offset="1" semantic="NORMAL" source="#Cube_001-Normals"/> - <p>0 0 1 0 2 0 2 0 3 0 0 0 4 1 7 1 6 1 6 1 5 1 4 1 0 2 4 2 5 2 5 2 1 2 0 2 1 3 5 3 6 3 6 3 2 3 1 3 2 4 6 4 7 4 7 4 3 4 2 4 4 5 0 5 3 5 3 5 7 5 4 5</p> - </triangles> - </mesh> - </geometry> - </library_geometries> - <library_visual_scenes> - <visual_scene id="Scene" name="Scene"> - <node layer="L1" id="Cube" name="Cube"> - <translate sid="translate">0.00000 0.00000 0.00000</translate> - <rotate sid="rotateZ">0 0 1 0.00000</rotate> - <rotate sid="rotateY">0 1 0 -0.00000</rotate> - <rotate sid="rotateX">1 0 0 0.00000</rotate> - <scale sid="scale">1.00000 1.00000 1.00000</scale> - <instance_geometry url="#Cube_001"> - <bind_material> - <technique_common> - <instance_material symbol="Material" target="#Material"> - <bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/> - </instance_material> - </technique_common> - </bind_material> - </instance_geometry> - </node> - </visual_scene> - </library_visual_scenes> - <library_physics_materials> - <physics_material id="Cube-PhysicsMaterial" name="Cube-PhysicsMaterial"> - <technique_common> - <dynamic_friction>0.5</dynamic_friction> - <restitution>0.0</restitution> - <static_friction>0.5</static_friction> - </technique_common> - </physics_material> - </library_physics_materials> - <library_physics_models> - <physics_model id="Scene-PhysicsModel" name="Scene-PhysicsModel"> - <rigid_body name="Cube-RigidBody" sid="Cube-RigidBody"> - <technique_common> - <dynamic>false</dynamic> - <mass>0</mass> - <instance_physics_material url="#Cube-PhysicsMaterial"/> - <shape> - <instance_geometry url="#Cube_001"/> - </shape> - </technique_common> - </rigid_body> - </physics_model> - </library_physics_models> - <library_physics_scenes> - <physics_scene id="Scene-Physics" name="Scene-Physics"> - <instance_physics_model url="#Scene-PhysicsModel"> - <instance_rigid_body body="Cube-RigidBody" target="#Cube"/> - </instance_physics_model> - </physics_scene> - </library_physics_scenes> - <scene> - <instance_physics_scene url="#Scene-Physics"/> - <instance_visual_scene url="#Scene"/> - </scene> -</COLLADA> diff --git a/tests/auto/threed/load_model/models/teacup.bez b/tests/auto/threed/load_model/models/teacup.bez deleted file mode 100644 index f4dde3ef..00000000 --- a/tests/auto/threed/load_model/models/teacup.bez +++ /dev/null @@ -1,280 +0,0 @@ -26 -1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 -4,17,18,19,8,20,21,22,12,23,24,25,16,26,27,28 -19,29,30,31,22,32,33,34,25,35,36,37,28,38,39,40 -31,41,42,1,34,43,44,5,37,45,46,9,40,47,48,13 -13,14,15,16,49,50,51,52,53,54,55,56,57,58,59,60 -16,26,27,28,52,61,62,63,56,64,65,66,60,67,68,69 -28,38,39,40,63,70,71,72,66,73,74,75,69,76,77,78 -40,47,48,13,72,79,80,49,75,81,82,53,78,83,84,57 -193,194,195,196,197,198,199,200,201,202,203,204,1,2,3,4 -196,205,206,207,200,208,209,210,204,211,212,213,4,17,18,19 -207,214,215,216,210,217,218,219,213,220,221,222,19,29,30,31 -216,223,224,193,219,225,226,197,222,227,228,201,31,41,42,1 -229,230,231,28,232,233,234,235,236,237,238,239,240,241,242,243 -28,244,245,229,235,246,247,232,239,248,249,236,243,250,251,240 -57,58,59,60,85,86,87,88,89,90,91,92,93,94,95,96 -60,67,68,69,88,97,98,99,92,100,101,102,96,103,104,105 -69,76,77,78,99,106,107,108,102,109,110,111,105,112,113,114 -78,83,84,57,108,115,116,85,111,117,118,89,114,119,120,93 -93,94,95,96,121,122,123,124,125,126,127,128,129,130,131,132 -96,103,104,105,124,133,134,135,128,136,137,138,132,139,140,141 -105,112,113,114,135,142,143,144,138,145,146,147,141,148,149,150 -114,119,120,93,144,151,152,121,147,153,154,125,150,155,156,129 -129,130,131,132,157,158,159,160,161,162,163,164,165,166,167,168 -132,139,140,141,160,169,170,171,164,172,173,174,168,175,176,177 -141,148,149,150,171,178,179,180,174,181,182,183,177,184,185,186 -150,155,156,129,180,187,188,157,183,189,190,161,186,191,192,165 -251 -0.409091,0.772727,0.0 -0.409091,0.772727,-0.229091 -0.229091,0.772727,-0.409091 -0.0,0.772727,-0.409091 -0.409091,0.886364,0.0 -0.409091,0.886364,-0.229091 -0.229091,0.886364,-0.409091 -0.0,0.886364,-0.409091 -0.454545,0.886364,0.0 -0.454545,0.886364,-0.254545 -0.254545,0.886364,-0.454545 -0.0,0.886364,-0.454545 -0.454545,0.772727,0.0 -0.454545,0.772727,-0.254545 -0.254545,0.772727,-0.454545 -0.0,0.772727,-0.454545 --0.229091,0.772727,-0.409091 --0.409091,0.772727,-0.229091 --0.409091,0.772727,0.0 --0.229091,0.886364,-0.409091 --0.409091,0.886364,-0.229091 --0.409091,0.886364,0.0 --0.254545,0.886364,-0.454545 --0.454545,0.886364,-0.254545 --0.454545,0.886364,0.0 --0.254545,0.772727,-0.454545 --0.454545,0.772727,-0.254545 --0.454545,0.772727,0.0 --0.409091,0.772727,0.229091 --0.229091,0.772727,0.409091 -0.0,0.772727,0.409091 --0.409091,0.886364,0.229091 --0.229091,0.886364,0.409091 -0.0,0.886364,0.409091 --0.454545,0.886364,0.254545 --0.254545,0.886364,0.454545 -0.0,0.886364,0.454545 --0.454545,0.772727,0.254545 --0.254545,0.772727,0.454545 -0.0,0.772727,0.454545 -0.229091,0.772727,0.409091 -0.409091,0.772727,0.229091 -0.229091,0.886364,0.409091 -0.409091,0.886364,0.229091 -0.254545,0.886364,0.454545 -0.454545,0.886364,0.254545 -0.254545,0.772727,0.454545 -0.454545,0.772727,0.254545 -0.454545,0.545455,0.0 -0.454545,0.545455,-0.254545 -0.254545,0.545455,-0.454545 -0.0,0.545455,-0.454545 -0.454545,0.272727,0.0 -0.454545,0.272727,-0.254545 -0.254545,0.272727,-0.454545 -0.0,0.272727,-0.454545 -0.318182,0.0454545,0.0 -0.318182,0.0454545,-0.178182 -0.178182,0.0454545,-0.318182 -0.0,0.0454545,-0.318182 --0.254545,0.545455,-0.454545 --0.454545,0.545455,-0.254545 --0.454545,0.545455,0.0 --0.254545,0.272727,-0.454545 --0.454545,0.272727,-0.254545 --0.454545,0.272727,0.0 --0.178182,0.0454545,-0.318182 --0.318182,0.0454545,-0.178182 --0.318182,0.0454545,0.0 --0.454545,0.545455,0.254545 --0.254545,0.545455,0.454545 -0.0,0.545455,0.454545 --0.454545,0.272727,0.254545 --0.254545,0.272727,0.454545 -0.0,0.272727,0.454545 --0.318182,0.0454545,0.178182 --0.178182,0.0454545,0.318182 -0.0,0.0454545,0.318182 -0.254545,0.545455,0.454545 -0.454545,0.545455,0.254545 -0.254545,0.272727,0.454545 -0.454545,0.272727,0.254545 -0.178182,0.0454545,0.318182 -0.318182,0.0454545,0.178182 -0.545455,0.0454545,0.0 -0.545455,0.0454545,-0.305455 -0.305455,0.0454545,-0.545455 -0.0,0.0454545,-0.545455 -0.727273,0.136364,0.0 -0.727273,0.136364,-0.407273 -0.407273,0.136364,-0.727273 -0.0,0.136364,-0.727273 -0.909091,0.136364,0.0 -0.909091,0.136364,-0.509091 -0.509091,0.136364,-0.909091 -0.0,0.136364,-0.909091 --0.305455,0.0454545,-0.545455 --0.545455,0.0454545,-0.305455 --0.545455,0.0454545,0.0 --0.407273,0.136364,-0.727273 --0.727273,0.136364,-0.407273 --0.727273,0.136364,0.0 --0.509091,0.136364,-0.909091 --0.909091,0.136364,-0.509091 --0.909091,0.136364,0.0 --0.545455,0.0454545,0.305455 --0.305455,0.0454545,0.545455 -0.0,0.0454545,0.545455 --0.727273,0.136364,0.407273 --0.407273,0.136364,0.727273 -0.0,0.136364,0.727273 --0.909091,0.136364,0.509091 --0.509091,0.136364,0.909091 -0.0,0.136364,0.909091 -0.305455,0.0454545,0.545455 -0.545455,0.0454545,0.305455 -0.407273,0.136364,0.727273 -0.727273,0.136364,0.407273 -0.509091,0.136364,0.909091 -0.909091,0.136364,0.509091 -1.0,0.136364,0.0 -1.0,0.136364,-0.56 -0.56,0.136364,-1.0 -0.0,0.136364,-1.0 -1.0,0.0909091,0.0 -1.0,0.0909091,-0.56 -0.56,0.0909091,-1.0 -0.0,0.0909091,-1.0 -0.909091,0.0909091,0.0 -0.909091,0.0909091,-0.509091 -0.509091,0.0909091,-0.909091 -0.0,0.0909091,-0.909091 --0.56,0.136364,-1.0 --1.0,0.136364,-0.56 --1.0,0.136364,0.0 --0.56,0.0909091,-1.0 --1.0,0.0909091,-0.56 --1.0,0.0909091,0.0 --0.509091,0.0909091,-0.909091 --0.909091,0.0909091,-0.509091 --0.909091,0.0909091,0.0 --1.0,0.136364,0.56 --0.56,0.136364,1.0 -0.0,0.136364,1.0 --1.0,0.0909091,0.56 --0.56,0.0909091,1.0 -0.0,0.0909091,1.0 --0.909091,0.0909091,0.509091 --0.509091,0.0909091,0.909091 -0.0,0.0909091,0.909091 -0.56,0.136364,1.0 -1.0,0.136364,0.56 -0.56,0.0909091,1.0 -1.0,0.0909091,0.56 -0.509091,0.0909091,0.909091 -0.909091,0.0909091,0.509091 -0.727273,0.0909091,0.0 -0.727273,0.0909091,-0.407273 -0.407273,0.0909091,-0.727273 -0.0,0.0909091,-0.727273 -0.545455,0.0,0.0 -0.545455,0.0,-0.305455 -0.305455,0.0,-0.545455 -0.0,0.0,-0.545455 -0.318182,0.0,0.0 -0.318182,0.0,-0.178182 -0.178182,0.0,-0.318182 -0.0,0.0,-0.318182 --0.407273,0.0909091,-0.727273 --0.727273,0.0909091,-0.407273 --0.727273,0.0909091,0.0 --0.305455,0.0,-0.545455 --0.545455,0.0,-0.305455 --0.545455,0.0,0.0 --0.178182,0.0,-0.318182 --0.318182,0.0,-0.178182 --0.318182,0.0,0.0 --0.727273,0.0909091,0.407273 --0.407273,0.0909091,0.727273 -0.0,0.0909091,0.727273 --0.545455,0.0,0.305455 --0.305455,0.0,0.545455 -0.0,0.0,0.545455 --0.318182,0.0,0.178182 --0.178182,0.0,0.318182 -0.0,0.0,0.318182 -0.407273,0.0909091,0.727273 -0.727273,0.0909091,0.407273 -0.305455,0.0,0.545455 -0.545455,0.0,0.305455 -0.178182,0.0,0.318182 -0.318182,0.0,0.178182 -0.272727,0.0454545,0.0 -0.272727,0.0454545,-0.152727 -0.152727,0.0454545,-0.272727 -0.0,0.0454545,-0.272727 -0.409091,0.272727,0.0 -0.409091,0.272727,-0.229091 -0.229091,0.272727,-0.409091 -0.0,0.272727,-0.409091 -0.409091,0.545455,0.0 -0.409091,0.545455,-0.229091 -0.229091,0.545455,-0.409091 -0.0,0.545455,-0.409091 --0.152727,0.0454545,-0.272727 --0.272727,0.0454545,-0.152727 --0.272727,0.0454545,0.0 --0.229091,0.272727,-0.409091 --0.409091,0.272727,-0.229091 --0.409091,0.272727,0.0 --0.229091,0.545455,-0.409091 --0.409091,0.545455,-0.229091 --0.409091,0.545455,0.0 --0.272727,0.0454545,0.152727 --0.152727,0.0454545,0.272727 -0.0,0.0454545,0.272727 --0.409091,0.272727,0.229091 --0.229091,0.272727,0.409091 -0.0,0.272727,0.409091 --0.409091,0.545455,0.229091 --0.229091,0.545455,0.409091 -0.0,0.545455,0.409091 -0.152727,0.0454545,0.272727 -0.272727,0.0454545,0.152727 -0.229091,0.272727,0.409091 -0.409091,0.272727,0.229091 -0.229091,0.545455,0.409091 -0.409091,0.545455,0.229091 --0.454545,0.704545,0.0 --0.454545,0.704545,-0.0454545 --0.454545,0.772727,-0.0454545 --0.772727,0.863636,0.0 --0.772727,0.863636,-0.0454545 --0.818182,0.954545,-0.0454545 --0.818182,0.954545,0.0 --0.772727,0.522727,0.0 --0.772727,0.522727,-0.0454545 --0.909091,0.477273,-0.0454545 --0.909091,0.477273,0.0 --0.409091,0.363636,0.0 --0.409091,0.363636,-0.0454545 --0.409091,0.295455,-0.0454545 --0.409091,0.295455,0.0 --0.454545,0.772727,0.0454545 --0.454545,0.704545,0.0454545 --0.818182,0.954545,0.0454545 --0.772727,0.863636,0.0454545 --0.909091,0.477273,0.0454545 --0.772727,0.522727,0.0454545 --0.409091,0.295455,0.0454545 --0.409091,0.363636,0.0454545 -# reverse-patches diff --git a/tests/auto/threed/load_model/models/wave.obj b/tests/auto/threed/load_model/models/wave.obj deleted file mode 100644 index d47fba48..00000000 --- a/tests/auto/threed/load_model/models/wave.obj +++ /dev/null @@ -1,476 +0,0 @@ -o Wave_Obj -v -180 -180 20.21 -v -180 -120 39.571 -v -180 -60 103.881 -v -180 0 150.836 -v -180 60 104.229 -v -180 120 39.241 -v -180 180 20.21 -v -170 -180 41.143 -v -170 -120 71.763 -v -170 -60 155.217 -v -170 0 201.577 -v -170 60 142.873 -v -170 120 64.235 -v -170 180 41.143 -v -160 -180 69.49 -v -160 -120 113.906 -v -160 -60 212.144 -v -160 0 253.998 -v -160 60 183.949 -v -160 120 94.971 -v -160 180 69.49 -v -150 -180 103.5 -v -150 -120 161.47 -v -150 -60 269.407 -v -150 0 304.377 -v -150 60 223.999 -v -150 120 128.686 -v -150 180 103.5 -v -140 -180 138.975 -v -140 -120 208.317 -v -140 -60 322.442 -v -140 0 349.416 -v -140 60 260.097 -v -140 120 161.508 -v -140 180 138.975 -v -130 -180 171.412 -v -130 -120 249.8 -v -130 -60 367.819 -v -130 0 386.836 -v -130 60 290.235 -v -130 120 190.26 -v -130 180 171.412 -v -120 -180 198.071 -v -120 -120 283.402 -v -120 -60 403.825 -v -120 0 415.796 -v -120 60 313.627 -v -120 120 213.295 -v -120 180 198.071 -v -110 -180 218.155 -v -110 -120 308.549 -v -110 -60 430.441 -v -110 0 436.769 -v -110 60 330.597 -v -110 120 230.372 -v -110 180 218.155 -v -100 -180 232.096 -v -100 -120 325.951 -v -100 -60 448.727 -v -100 0 450.948 -v -100 60 342.085 -v -100 120 242.103 -v -100 180 232.096 -v -90 -180 240.799 -v -90 -120 336.8 -v -90 -60 460.077 -v -90 0 459.653 -v -90 60 349.144 -v -90 120 249.379 -v -90 180 240.799 -v -80 -180 245.162 -v -80 -120 342.236 -v -80 -60 465.751 -v -80 0 463.975 -v -80 60 352.652 -v -80 120 253.013 -v -80 180 245.162 -v -70 -180 245.876 -v -70 -120 343.125 -v -70 -60 466.678 -v -70 0 464.679 -v -70 60 353.224 -v -70 120 253.607 -v -70 180 245.876 -v -60 -180 243.379 -v -60 -120 340.015 -v -60 -60 463.434 -v -60 0 462.212 -v -60 60 351.221 -v -60 120 251.529 -v -60 180 243.379 -v -50 -180 237.873 -v -50 -120 333.154 -v -50 -60 456.266 -v -50 0 456.739 -v -50 60 346.781 -v -50 120 246.937 -v -50 180 237.873 -v -40 -180 229.336 -v -40 -120 322.509 -v -40 -60 445.118 -v -40 0 448.165 -v -40 60 339.829 -v -40 120 239.788 -v -40 180 229.336 -v -30 -180 217.539 -v -30 -120 307.779 -v -30 -60 429.63 -v -30 0 436.135 -v -30 60 330.084 -v -30 120 229.851 -v -30 180 217.539 -v -20 -180 202.042 -v -20 -120 288.383 -v -20 -60 409.118 -v -20 0 419.997 -v -20 60 317.024 -v -20 120 216.689 -v -20 180 202.042 -v -10 -180 182.22 -v -10 -120 263.461 -v -10 -60 382.526 -v -10 0 398.745 -v -10 60 299.848 -v -10 120 199.654 -v -10 180 182.22 -v 0 -180 157.356 -v 0 -120 231.929 -v 0 -60 348.414 -v 0 0 370.958 -v 0 60 277.434 -v 0 120 177.914 -v 0 180 157.356 -v 10 -180 127.018 -v 10 -120 192.755 -v 10 -60 305.077 -v 10 0 334.827 -v 10 60 248.38 -v 10 120 150.643 -v 10 180 127.018 -v 20 -180 92.098 -v 20 -120 145.878 -v 20 -60 251.138 -v 20 0 288.517 -v 20 60 211.347 -v 20 120 117.688 -v 20 180 92.098 -v 30 -180 56.374 -v 30 -120 94.668 -v 30 -60 187.198 -v 30 0 231.371 -v 30 60 166.122 -v 30 120 81.11 -v 30 180 56.374 -v 40 -180 25.98 -v 40 -120 48.522 -v 40 -60 119.078 -v 40 0 166.372 -v 40 60 115.898 -v 40 120 46.398 -v 40 180 25.98 -v 50 -180 5.981 -v 50 -120 16.643 -v 50 -60 60.852 -v 50 0 102.95 -v 50 60 69.36 -v 50 120 19.719 -v 50 180 5.981 -v 60 -180 0.255 -v 60 -120 1.383 -v 60 -60 23.928 -v 60 0 54.669 -v 60 60 35.477 -v 60 120 4.089 -v 60 180 0.255 -v 70 -180 18.321 -v 70 -120 3.316 -v 70 -60 5.835 -v 70 0 25.99 -v 70 60 15.427 -v 70 120 0.156 -v 70 180 18.321 -v 80 -180 59.32 -v 80 -120 28.502 -v 80 -60 0.178 -v 80 0 11.554 -v 80 60 5.561 -v 80 120 8.051 -v 80 180 59.32 -v 90 -180 57.91 -v 90 -120 68.006 -v 90 -60 0.905 -v 90 0 5.415 -v 90 60 1.77 -v 90 120 31.774 -v 90 180 57.91 -v 100 -180 57.335 -v 100 -120 67.375 -v 100 -60 2.408 -v 100 0 3.583 -v 100 60 0.819 -v 100 120 49.323 -v 100 180 57.335 -v 110 -180 57.545 -v 110 -120 67.606 -v 110 -60 1.766 -v 110 0 4.209 -v 110 60 1.126 -v 110 120 49.47 -v 110 180 57.545 -v 120 -180 58.399 -v 120 -120 68.542 -v 120 -60 0.211 -v 120 0 7.273 -v 120 60 2.852 -v 120 120 18.844 -v 120 180 58.399 -v 130 -180 59.722 -v 130 -120 19.94 -v 130 -60 0.647 -v 130 0 13.771 -v 130 60 7.03 -v 130 120 5.33 -v 130 180 59.722 -v 140 -180 20.309 -v 140 -120 3.839 -v 140 -60 5.366 -v 140 0 25.099 -v 140 60 14.806 -v 140 120 0.252 -v 140 180 20.309 -v 150 -180 2.643 -v 150 -120 0.03 -v 150 -60 16.035 -v 150 0 42.966 -v 150 60 27.3 -v 150 120 1.447 -v 150 180 2.643 -v 160 -180 0.334 -v 160 -120 4.859 -v 160 -60 34.47 -v 160 0 69.362 -v 160 60 45.731 -v 160 120 8.272 -v 160 180 0.334 -v 170 -180 6.626 -v 170 -120 17.756 -v 170 -60 63.11 -v 170 0 105.651 -v 170 60 71.284 -v 170 120 20.723 -v 170 180 6.626 -v 180 -180 20.21 -v 180 -120 39.571 -v 180 -60 103.881 -v 180 0 150.836 -v 180 60 104.229 -v 180 120 39.241 -v 180 180 20.21 -f 1/1 2/2 9/3 8/4 -f 2/1 3/2 10/3 9/4 -f 3/1 4/2 11/3 10/4 -f 4/1 5/2 12/3 11/4 -f 5/1 6/2 13/3 12/4 -f 6/1 7/2 14/3 13/4 -f 8/1 9/2 16/3 15/4 -f 9/1 10/2 17/3 16/4 -f 10/1 11/2 18/3 17/4 -f 11/1 12/2 19/3 18/4 -f 12/1 13/2 20/3 19/4 -f 13/1 14/2 21/3 20/4 -f 15/1 16/2 23/3 22/4 -f 16/1 17/2 24/3 23/4 -f 17/1 18/2 25/3 24/4 -f 18/1 19/2 26/3 25/4 -f 19/1 20/2 27/3 26/4 -f 20/1 21/2 28/3 27/4 -f 22/1 23/2 30/3 29/4 -f 23/1 24/2 31/3 30/4 -f 24/1 25/2 32/3 31/4 -f 25/1 26/2 33/3 32/4 -f 26/1 27/2 34/3 33/4 -f 27/1 28/2 35/3 34/4 -f 29/1 30/2 37/3 36/4 -f 30/1 31/2 38/3 37/4 -f 31/1 32/2 39/3 38/4 -f 32/1 33/2 40/3 39/4 -f 33/1 34/2 41/3 40/4 -f 34/1 35/2 42/3 41/4 -f 36/1 37/2 44/3 43/4 -f 37/1 38/2 45/3 44/4 -f 38/1 39/2 46/3 45/4 -f 39/1 40/2 47/3 46/4 -f 40/1 41/2 48/3 47/4 -f 41/1 42/2 49/3 48/4 -f 43/1 44/2 51/3 50/4 -f 44/1 45/2 52/3 51/4 -f 45/1 46/2 53/3 52/4 -f 46/1 47/2 54/3 53/4 -f 47/1 48/2 55/3 54/4 -f 48/1 49/2 56/3 55/4 -f 50/1 51/2 58/3 57/4 -f 51/1 52/2 59/3 58/4 -f 52/1 53/2 60/3 59/4 -f 53/1 54/2 61/3 60/4 -f 54/1 55/2 62/3 61/4 -f 55/1 56/2 63/3 62/4 -f 57/1 58/2 65/3 64/4 -f 58/1 59/2 66/3 65/4 -f 59/1 60/2 67/3 66/4 -f 60/1 61/2 68/3 67/4 -f 61/1 62/2 69/3 68/4 -f 62/1 63/2 70/3 69/4 -f 64/1 65/2 72/3 71/4 -f 65/1 66/2 73/3 72/4 -f 66/1 67/2 74/3 73/4 -f 67/1 68/2 75/3 74/4 -f 68/1 69/2 76/3 75/4 -f 69/1 70/2 77/3 76/4 -f 71/1 72/2 79/3 78/4 -f 72/1 73/2 80/3 79/4 -f 73/1 74/2 81/3 80/4 -f 74/1 75/2 82/3 81/4 -f 75/1 76/2 83/3 82/4 -f 76/1 77/2 84/3 83/4 -f 78/1 79/2 86/3 85/4 -f 79/1 80/2 87/3 86/4 -f 80/1 81/2 88/3 87/4 -f 81/1 82/2 89/3 88/4 -f 82/1 83/2 90/3 89/4 -f 83/1 84/2 91/3 90/4 -f 85/1 86/2 93/3 92/4 -f 86/1 87/2 94/3 93/4 -f 87/1 88/2 95/3 94/4 -f 88/1 89/2 96/3 95/4 -f 89/1 90/2 97/3 96/4 -f 90/1 91/2 98/3 97/4 -f 92/1 93/2 100/3 99/4 -f 93/1 94/2 101/3 100/4 -f 94/1 95/2 102/3 101/4 -f 95/1 96/2 103/3 102/4 -f 96/1 97/2 104/3 103/4 -f 97/1 98/2 105/3 104/4 -f 99/1 100/2 107/3 106/4 -f 100/1 101/2 108/3 107/4 -f 101/1 102/2 109/3 108/4 -f 102/1 103/2 110/3 109/4 -f 103/1 104/2 111/3 110/4 -f 104/1 105/2 112/3 111/4 -f 106/1 107/2 114/3 113/4 -f 107/1 108/2 115/3 114/4 -f 108/1 109/2 116/3 115/4 -f 109/1 110/2 117/3 116/4 -f 110/1 111/2 118/3 117/4 -f 111/1 112/2 119/3 118/4 -f 113/1 114/2 121/3 120/4 -f 114/1 115/2 122/3 121/4 -f 115/1 116/2 123/3 122/4 -f 116/1 117/2 124/3 123/4 -f 117/1 118/2 125/3 124/4 -f 118/1 119/2 126/3 125/4 -f 120/1 121/2 128/3 127/4 -f 121/1 122/2 129/3 128/4 -f 122/1 123/2 130/3 129/4 -f 123/1 124/2 131/3 130/4 -f 124/1 125/2 132/3 131/4 -f 125/1 126/2 133/3 132/4 -f 127/1 128/2 135/3 134/4 -f 128/1 129/2 136/3 135/4 -f 129/1 130/2 137/3 136/4 -f 130/1 131/2 138/3 137/4 -f 131/1 132/2 139/3 138/4 -f 132/1 133/2 140/3 139/4 -f 134/1 135/2 142/3 141/4 -f 135/1 136/2 143/3 142/4 -f 136/1 137/2 144/3 143/4 -f 137/1 138/2 145/3 144/4 -f 138/1 139/2 146/3 145/4 -f 139/1 140/2 147/3 146/4 -f 141/1 142/2 149/3 148/4 -f 142/1 143/2 150/3 149/4 -f 143/1 144/2 151/3 150/4 -f 144/1 145/2 152/3 151/4 -f 145/1 146/2 153/3 152/4 -f 146/1 147/2 154/3 153/4 -f 148/1 149/2 156/3 155/4 -f 149/1 150/2 157/3 156/4 -f 150/1 151/2 158/3 157/4 -f 151/1 152/2 159/3 158/4 -f 152/1 153/2 160/3 159/4 -f 153/1 154/2 161/3 160/4 -f 155/1 156/2 163/3 162/4 -f 156/1 157/2 164/3 163/4 -f 157/1 158/2 165/3 164/4 -f 158/1 159/2 166/3 165/4 -f 159/1 160/2 167/3 166/4 -f 160/1 161/2 168/3 167/4 -f 162/1 163/2 170/3 169/4 -f 163/1 164/2 171/3 170/4 -f 164/1 165/2 172/3 171/4 -f 165/1 166/2 173/3 172/4 -f 166/1 167/2 174/3 173/4 -f 167/1 168/2 175/3 174/4 -f 169/1 170/2 177/3 176/4 -f 170/1 171/2 178/3 177/4 -f 171/1 172/2 179/3 178/4 -f 172/1 173/2 180/3 179/4 -f 173/1 174/2 181/3 180/4 -f 174/1 175/2 182/3 181/4 -f 176/1 177/2 184/3 183/4 -f 177/1 178/2 185/3 184/4 -f 178/1 179/2 186/3 185/4 -f 179/1 180/2 187/3 186/4 -f 180/1 181/2 188/3 187/4 -f 181/1 182/2 189/3 188/4 -f 183/1 184/2 191/3 190/4 -f 184/1 185/2 192/3 191/4 -f 185/1 186/2 193/3 192/4 -f 186/1 187/2 194/3 193/4 -f 187/1 188/2 195/3 194/4 -f 188/1 189/2 196/3 195/4 -f 190/1 191/2 198/3 197/4 -f 191/1 192/2 199/3 198/4 -f 192/1 193/2 200/3 199/4 -f 193/1 194/2 201/3 200/4 -f 194/1 195/2 202/3 201/4 -f 195/1 196/2 203/3 202/4 -f 197/1 198/2 205/3 204/4 -f 198/1 199/2 206/3 205/4 -f 199/1 200/2 207/3 206/4 -f 200/1 201/2 208/3 207/4 -f 201/1 202/2 209/3 208/4 -f 202/1 203/2 210/3 209/4 -f 204/1 205/2 212/3 211/4 -f 205/1 206/2 213/3 212/4 -f 206/1 207/2 214/3 213/4 -f 207/1 208/2 215/3 214/4 -f 208/1 209/2 216/3 215/4 -f 209/1 210/2 217/3 216/4 -f 211/1 212/2 219/3 218/4 -f 212/1 213/2 220/3 219/4 -f 213/1 214/2 221/3 220/4 -f 214/1 215/2 222/3 221/4 -f 215/1 216/2 223/3 222/4 -f 216/1 217/2 224/3 223/4 -f 218/1 219/2 226/3 225/4 -f 219/1 220/2 227/3 226/4 -f 220/1 221/2 228/3 227/4 -f 221/1 222/2 229/3 228/4 -f 222/1 223/2 230/3 229/4 -f 223/1 224/2 231/3 230/4 -f 225/1 226/2 233/3 232/4 -f 226/1 227/2 234/3 233/4 -f 227/1 228/2 235/3 234/4 -f 228/1 229/2 236/3 235/4 -f 229/1 230/2 237/3 236/4 -f 230/1 231/2 238/3 237/4 -f 232/1 233/2 240/3 239/4 -f 233/1 234/2 241/3 240/4 -f 234/1 235/2 242/3 241/4 -f 235/1 236/2 243/3 242/4 -f 236/1 237/2 244/3 243/4 -f 237/1 238/2 245/3 244/4 -f 239/1 240/2 247/3 246/4 -f 240/1 241/2 248/3 247/4 -f 241/1 242/2 249/3 248/4 -f 242/1 243/2 250/3 249/4 -f 243/1 244/2 251/3 250/4 -f 244/1 245/2 252/3 251/4 -f 246/1 247/2 254/3 253/4 -f 247/1 248/2 255/3 254/4 -f 248/1 249/2 256/3 255/4 -f 249/1 250/2 257/3 256/4 -f 250/1 251/2 258/3 257/4 -f 251/1 252/2 259/3 258/4 diff --git a/tests/auto/threed/load_model/tst_load_model.cpp b/tests/auto/threed/load_model/tst_load_model.cpp deleted file mode 100644 index 65d032a4..00000000 --- a/tests/auto/threed/load_model/tst_load_model.cpp +++ /dev/null @@ -1,237 +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 <QtTest/QtTest> - -#include "qglabstractscene.h" - -class tst_LoadModel : public QObject -{ - Q_OBJECT -public: - tst_LoadModel() {} - ~tst_LoadModel() {} - -private slots: - void load_data(); - void load(); - void create_data(); - void create(); -}; - -// Just try to load all the models in the resources file - no checking -void tst_LoadModel::load_data() -{ - QString model_path(QLatin1String(":/data/models")); - QDir data(model_path); - - // only load if its a supported format - QStringList entries = data.entryList(QGLAbstractScene::supportedFormats()); - - QTest::addColumn<QString>("model"); - - for (int i = 0; i < entries.size(); ++i) - QTest::newRow(qPrintable(entries.at(i))) << entries.at(i); -} - -void tst_LoadModel::load() -{ - QFETCH(QString, model); - - QGLAbstractScene *scene = 0; - QString model_path(QLatin1String(":/data/models/%1")); - model_path = model_path.arg(model); - - QFile f(model_path); - QVERIFY(f.open(QIODevice::ReadOnly)); - - QUrl u; - u.setPath(model_path); - u.setScheme("file"); - - scene = QGLAbstractScene::loadScene(&f, u); - QVERIFY(scene != 0); -} - -void tst_LoadModel::create_data() -{ - QTest::addColumn<QString>("model"); - QTest::addColumn<QString>("options"); - QTest::addColumn<QString>("importName"); - QTest::addColumn<QString>("nodeName"); - QTest::addColumn<QString>("materialName"); - QTest::addColumn<QRgb>("materialDiffuse"); - QTest::addColumn<QString>("texture"); - QTest::addColumn<int>("expected_vertices"); - QTest::addColumn<int>("expected_indices"); - - ////// --- OBJ --- - - // default is faceted for obj - QTest::newRow("cube-obj-default") - << "basic-cube.obj" << "" - << "basic-cube.obj" << "CubeObject_CubeMesh" << "Red" - << qRgb(188, 32, 32) << "tex" - << 24 << 36; - - // force a faceted load - QTest::newRow("cube-obj-faceted") - << "basic-cube.obj" << "ForceFaceted" - << "basic-cube.obj" << "CubeObject_CubeMesh" << "Red" - << qRgb(188, 32, 32) << "tex" - << 24 << 36; - - // force a smooth load - QTest::newRow("cube-obj-smooth") - << "basic-cube.obj" << "ForceSmooth" - << "basic-cube.obj" << "CubeObject_CubeMesh" << "Red" - << qRgb(188, 32, 32) << "tex" - << 24 << 36; - - - ////// --- 3DS --- - - // default is faceted - QTest::newRow("cube-3ds-default") - << "basic-cube.3ds" << "" - << "basic-cube.3ds" << "CubeObject::SlateGray" << "SlateGray" - << qRgb(94, 142, 155) << "tex" - << 12 << 36; - - // force smooth - QTest::newRow("cube-3ds-smooth") - << "basic-cube.3ds" << "ForceSmooth" - << "basic-cube.3ds" << "CubeObject::Red" << "Red" - << qRgb(234, 40, 40) << "tex" - << 12 << 36; - - - ////// --- wave model --- - - // default is faceted - QTest::newRow("wave-obj-default") - << "wave.obj" << "" - << "wave.obj" << "Wave_Obj" << "" - << qRgb(0, 0, 0) << "" - << 259 << 1296; - - // force smooth - QTest::newRow("wave-obj-faceted") - << "wave.obj" << "ForceFaceted" - << "wave.obj" << "Wave_Obj" << "" - << qRgb(0, 0, 0) << "" - << 864 << 1296; -} - -void tst_LoadModel::create() -{ - QFETCH(QString, model); - QFETCH(QString, options); - QFETCH(QString, importName); - QFETCH(QString, nodeName); - QFETCH(QString, materialName); - QFETCH(QRgb, materialDiffuse); - QFETCH(QString, texture); - QFETCH(int, expected_vertices); - QFETCH(int, expected_indices); - - if (model == QLatin1String("wave.obj")) - { - QSKIP("Fails on Qt5"); - } - - QGLAbstractScene *scene = 0; - QString model_path(QLatin1String(":/data/models/%1")); - model_path = model_path.arg(model); - - QFile f(model_path); - QVERIFY(f.open(QIODevice::ReadOnly)); - - QUrl u; - u.setPath(model_path); - u.setScheme("file"); - - scene = QGLAbstractScene::loadScene(&f, u, QString(), options); - QVERIFY(scene != 0); - - QGLSceneNode *node = scene->mainNode(); - - //qDumpScene(node); - - QCOMPARE(node->objectName(), importName); - - QGLSceneNode *foundGeometry = 0; - QGLSceneNode *foundNode = nodeName.isEmpty() ? (QGLSceneNode *)1 : 0; - QGLSceneNode *foundMaterial = materialName.isEmpty() ? (QGLSceneNode *)1 : 0; - QList<QGLSceneNode*> list = node->allChildren(); - for (int i = 0; i < list.size(); ++ i) - { - if (!foundGeometry && list.at(i)->geometry().count() > 0) - foundGeometry = list.at(i); - if (!foundNode && list.at(i)->objectName() == nodeName) - foundNode = list.at(i); - if (!foundMaterial && list.at(i)->material() && - (list.at(i)->material()->objectName() == materialName)) - foundMaterial = list.at(i); - } - - QVERIFY2(foundGeometry != 0, "A non-null geometry node was not found"); - QVERIFY2(foundNode != 0, qPrintable(nodeName + QLatin1String(" named node not found"))); - QVERIFY2(foundMaterial != 0, qPrintable(materialName + QLatin1String(" named material not found"))); - - int r, g, b; - if (!materialName.isEmpty()) - { - foundMaterial->material()->diffuseColor().getRgb(&r, &g, &b); - QCOMPARE(materialDiffuse, qRgb(r, g, b)); - } - - QGeometryData data = foundGeometry->geometry(); - QVERIFY(data.count() > 0); - - QCOMPARE(data.vertices().count(), expected_vertices); - QCOMPARE(data.normals().count(), expected_vertices); - QCOMPARE(data.indices().count(), expected_indices); -} - -QTEST_APPLESS_MAIN(tst_LoadModel) - -#include "tst_load_model.moc" |