Changeset 3324
- Timestamp:
- 08/26/04 16:52:14 (9 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgPlugins/obj/obj.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/obj/obj.cpp
r3323 r3324 94 94 bool Model::readMTL(std::istream& fin) 95 95 { 96 osg::notify(osg:: NOTICE)<<"Reading MTL file"<<std::endl;96 osg::notify(osg::INFO)<<"Reading MTL file"<<std::endl; 97 97 98 98 const int LINE_SIZE = 4096; … … 256 256 bool Model::readOBJ(std::istream& fin) 257 257 { 258 osg::notify(osg:: NOTICE)<<"Reading OBJ file"<<std::endl;258 osg::notify(osg::INFO)<<"Reading OBJ file"<<std::endl; 259 259 260 260 const int LINE_SIZE = 4096; … … 306 306 (line[0]=='l') ? Element::POLYLINE : 307 307 Element::POLYGON ); 308 309 // osg::notify(osg::NOTICE)<<"face"<<ptr<<std::endl; 308 310 309 311 int vi=0, ti=0, ni=0; … … 315 317 if (sscanf(ptr, "%d/%d/%d", &vi, &ti, &ni) == 3) 316 318 { 319 // osg::notify(osg::NOTICE)<<" vi="<<vi<<"/ti="<<ti<<"/ni="<<ni<<std::endl; 317 320 element->vertexIndices.push_back(remapVertexIndex(vi)); 318 321 element->normalIndices.push_back(remapNormalIndex(ni)); … … 321 324 else if (sscanf(ptr, "%d//%d", &vi, &ni) == 2) 322 325 { 326 // osg::notify(osg::NOTICE)<<" vi="<<vi<<"//ni="<<ni<<std::endl; 323 327 element->vertexIndices.push_back(remapVertexIndex(vi)); 324 328 element->normalIndices.push_back(remapNormalIndex(ni)); … … 326 330 else if (sscanf(ptr, "%d/%d", &vi, &ti) == 2) 327 331 { 332 // osg::notify(osg::NOTICE)<<" vi="<<vi<<"/ti="<<ti<<std::endl; 328 333 element->vertexIndices.push_back(remapVertexIndex(vi)); 329 334 element->texCoordIndices.push_back(remapTexCoordIndex(ti)); … … 331 336 else if (sscanf(ptr, "%d", &vi) == 1) 332 337 { 338 // osg::notify(osg::NOTICE)<<" vi="<<vi<<std::endl; 333 339 element->vertexIndices.push_back(remapVertexIndex(vi)); 334 340 } … … 421 427 422 428 } 423 429 #if 0 424 430 osg::notify(osg::NOTICE) <<"vertices :"<<vertices.size()<<std::endl; 425 431 osg::notify(osg::NOTICE) <<"normals :"<<normals.size()<<std::endl; … … 427 433 osg::notify(osg::NOTICE) <<"materials :"<<materialMap.size()<<std::endl; 428 434 osg::notify(osg::NOTICE) <<"elementStates :"<<elementStateMap.size()<<std::endl; 429 /*435 430 436 unsigned int pos=0; 431 437 for(ElementStateMap::iterator itr=elementStateMap.begin(); … … 443 449 444 450 } 445 */ 451 #endif 446 452 return true; 447 453 }
