Changeset 3282
- Timestamp:
- 08/16/04 15:17:29 (9 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgPlugins/obj
- Files:
-
- 2 modified
-
ReaderWriterOBJ.cpp (modified) (2 diffs)
-
glm.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/obj/ReaderWriterOBJ.cpp
r3008 r3282 243 243 { 244 244 TextureMap::iterator titr = textureMap.find(omtl->textureName); 245 246 osg::notify(osg::DEBUG_INFO) << "textureName: " << omtl->textureName << std::endl; 247 245 248 if (titr==textureMap.end()) 246 249 { 247 250 248 251 std::string fileName = osgDB::findFileInDirectory(omtl->textureName,directory,osgDB::CASE_INSENSITIVE); 249 if ( !fileName.empty()) fileName = osgDB::findDataFile(omtl->textureName,osgDB::CASE_INSENSITIVE);252 if (fileName.empty()) fileName = osgDB::findDataFile(omtl->textureName,osgDB::CASE_INSENSITIVE); 250 253 251 254 if (!fileName.empty()) 252 255 { 253 256 257 osg::notify(osg::DEBUG_INFO) << "filename: " << fileName << std::endl; 258 254 259 osg::Image* osg_image = osgDB::readImageFile(fileName.c_str()); 255 260 if (osg_image) 256 261 { 262 263 osg::notify(osg::DEBUG_INFO) << "imageRead: " << omtl->textureName << std::endl; 264 265 257 266 osg::Texture2D* osg_texture = new osg::Texture2D; 258 267 osg_texture->setImage(osg_image); … … 352 361 // state and material (if any) 353 362 if (!osg_mtl.empty()) { 363 364 osg::notify(osg::NOTICE)<<"ogrp->material="<<ogrp->material<<std::endl; 365 354 366 drawable->setStateSet(osg_mtl[ogrp->material].get()); 355 367 } -
OpenSceneGraph/trunk/src/osgPlugins/obj/glm.cpp
r3230 r3282 655 655 fgets(buf, sizeof(buf), file); 656 656 break; 657 case 'o': /* group */ 658 case 's': /* group */ 657 659 case 'g': /* group */ 658 660 { … … 845 847 846 848 break; 849 case 'o': /* group */ 850 case 's': /* group */ 847 851 case 'g': /* group */ 848 852 /* eat up rest of line */
