Text archives Help
- From: "Thiago Ize" <thiago@sci.utah.edu>
- To: manta@sci.utah.edu
- Subject: [Manta] r2248 - trunk/scenes
- Date: Mon, 5 May 2008 20:30:39 -0600 (MDT)
Author: thiago
Date: Mon May 5 20:30:39 2008
New Revision: 2248
Modified:
trunk/scenes/triangleSceneViewer.cc
Log:
Added .iw loading.
Modified: trunk/scenes/triangleSceneViewer.cc
==============================================================================
--- trunk/scenes/triangleSceneViewer.cc (original)
+++ trunk/scenes/triangleSceneViewer.cc Mon May 5 20:30:39 2008
@@ -23,6 +23,7 @@
#include <Model/MiscObjects/KeyFrameAnimation.h>
#include <Model/Primitives/Parallelogram.h>
#include <Model/Readers/PlyReader.h>
+#include <Model/Readers/IW.h>
#include <Model/Textures/Constant.h>
#include <Core/Math/MinMax.h>
@@ -60,6 +61,9 @@
cerr << " -smoothAnimation - interpolates between keyframes.\n";
cerr << " -triangleType - Triangle implementation to use.\n"
<< " Wald_tri, KS_tri.\n";
+ cerr << " -overrideMatl - Force to use a material.\n"
+ << " flat, eyelight, lambertian, phong,
ambientocclusion\n.";
+ cerr << " -lightPosition - Location of light.\n";
throw IllegalArgument("scene primtest", i, args);
}
@@ -74,6 +78,9 @@
}
else if (!strncmp(modelName.c_str()+modelName.length()-4, ".obj", 4)) {
frame = new ObjGroup(modelName.c_str(), defaultMatl, triangleType);
+ }
+ else if (!strncmp(modelName.c_str()+modelName.length()-3, ".iw", 3)) {
+ frame = readIW(modelName, triangleType);
}
if (overrideMatl) {
- [Manta] r2248 - trunk/scenes, Thiago Ize, 05/05/2008
Archive powered by MHonArc 2.6.16.