Hello, While I was playing with shadow maps, i discovered a problem in OSGBlendChunk:
OSGBlendChunk.cpp tests with "if(_sfSrcFactor.getValue() != GL_NONE)" whether blending should be enabled (or disabled on change). However GL_NONE is the same value as GL_ZERO, which of course, is a valid mode for glBlendFunc(..). e.g.: the blend function i used was: blend->setSrcFactor(GL_ZERO); blend->setDestFactor(GL_ONE_MINUS_SRC_COLOR); but, OSG thought that there is no blending necessary (src == GL_NONE) and did not enable blending :( The proper solution seems to add an extra flag to decide, when to set blending and when not... Best Regards, Jens Hoffmann -- Gates' Law: Every 18 months, the speed of software halves. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
