Classification: UNCLASSIFIED Caveats: NONE Howdy,
I searched the mailing lists, FAQs, Wikis, etc. and could not find anything on this. When OSG load .obj files, the material name appears to get lost from the state set. I noticed someone had a similar problem with 3DS files some time ago (see text after my sig). Can anyone confirm that this issue has not already been brought up/resolved? Thanks, Michael Day > Subject: 3DS Material Name > Date: 2006-12-30 20:57:51 GMT > > Hi Robert, > > I trust you've had a good break. I'm hoping this is the correct address to submit a bug fix to be patched in to > the OSG code base. > > I'm working a lot with the 3DS loader, and one of the bugs I've come across is that when a 3DS file is read into > the OSG world, the material name on the geometries is not maintained within the OSG world. This is a little > odd as there is a "Name" field for a material object within OSG. Hence the request that this be fixed. > > I've taken the liberty of embedding the corrected function below. This is taken from the > ReaderWriter3DS.cpp file. I confess to not having the latest version of OSG, mine is 1.0, however I > suspect from the mail list that this hasn't been spotted by anyone else. > > I've prefixed the line I would like added with some comment lines. I assume that you will remove unnecessary bits. > > Regards > > Neil Hughes Classification: UNCLASSIFIED Caveats: NONE _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org