add Tutorial.cpp files

load textured sphere8.obj by default as a test
tiny_obj_loader don't crash when mtl is not found
fix camera perspectives for some examples
This commit is contained in:
erwin coumans
2015-08-05 19:22:48 -07:00
parent a5669d2ffd
commit 6d8ad72d68
5 changed files with 22 additions and 12 deletions

View File

@@ -606,8 +606,8 @@ LoadObj(
std::string err_mtl = LoadMtl(material_map, namebuf, mtl_basepath);
if (!err_mtl.empty()) {
faceGroup.resize(0); // for safety
return err_mtl;
//faceGroup.resize(0); // for safety
//return err_mtl;
}
continue;
}