Commits

Frederic De Groef  committed b1d3ced

herp derp

  • Participants
  • Parent commits 52c20bc

Comments (0)

Files changed (1)

File ogre-lib3ds/Test3DSViewerApp.cpp

  
     //m3dsFile =  lib3ds_file_open("../media/3ds/test3.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/indochine.3DS");
-    ///m3dsFile =  lib3ds_file_open("../media/3ds/monaco.3DS");
+    //m3dsFile =  lib3ds_file_open("../media/3ds/monaco.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/amphimath_walls.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/lyon.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/Kengresshus-visuelle.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/casa_de_musica-visuelle.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/Modern-home-interior1.3DS");
-    m3dsFile =  lib3ds_file_open("../media/3ds/test.3DS");
+    //m3dsFile =  lib3ds_file_open("../media/3ds/test.3DS");
     //m3dsFile =  lib3ds_file_open("../media/3ds/chienvert.3DS");
+
+    m3dsFile =  lib3ds_file_open("../media/3ds/ionic_temple.3ds");
+
     if (!m3dsFile->nodes)
         lib3ds_file_create_nodes_for_meshes(m3dsFile);
 
     modelNode->scale(scale, scale, scale);
     modelNode->pitch(Degree(-90));
 
-    StaticGeometry *geom = mSceneMgr->createStaticGeometry("fucking shit");
-    geom->addSceneNode(modelNode);
-    geom->build();
-    geom->setVisible(true);
-    modelNode->setVisible(false);
+    //StaticGeometry *geom = mSceneMgr->createStaticGeometry("fucking shit");
+    //geom->addSceneNode(modelNode);
+    //geom->build();
+    //geom->setVisible(true);
+    //modelNode->setVisible(false);
 
 
     lib3ds_file_free(m3dsFile);
         lib3ds_mesh_calculate_vertex_normals(mesh, normals);
         
         // copy everything to vertex buffers
-        newObject->begin("3DS/Gray", RenderOperation::OT_TRIANGLE_LIST);
+        newObject->begin("Shading/Phong", RenderOperation::OT_TRIANGLE_LIST);
 
         int idx = 0;
 
 
         // create an ogre object for easy OgreMesh conversion
         // TODO: better default material
-        newObject->begin("3DS/Gray", RenderOperation::OT_TRIANGLE_LIST);
+        newObject->begin("Shading/Phong", RenderOperation::OT_TRIANGLE_LIST);
 
         int idx = 0;
         // foreach tri