Hi Laurens, I just committed your patch. Thanks a lot!
Cheers, Farshid On Thu, Nov 17, 2011 at 4:34 AM, Laurens Voerman <l.voer...@rug.nl> wrote: > Hi Farshid, > > I experienced a crash while exporting a file from max2012 (x64). > I traced the problem to a mixmap having no texture on one of the imputs, > that triggered a bug in MtlKeeper.cpp > line812: texUnits[i] = getNextTexUnit(stateset, > subTexmap->GetMapChannel()); > BUG: subTexmap is NULL > > Also the mixmap doesn't respond to lighting due to the way the texEnv is > set up. To fix both problems I rewrote the entire > MtlKeeper::convertMixTexmap functon, setting up the texEnv to first mix > texure 1/2 controlled by tex3 and a second texEnv for modulating the result > (of the previous texEnv) with the primary fragment color. > Attached as MtlKeeper.zip > > Second problem I encountered with max2012 is that the exported textures > are garbage is gamma correction is enabled in 3dstudio. Attached is a > simple fix disabling gamma correction during export. > Attached as OSGExp.zip > > Both files are based on svn trunk rev. 230 > > Regards, > Laurens. > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org