Jean-Sébastien Guay schrieb: > Hello Raymond, > > >> Can you try to use a ref pointer instead of the regular pointer for >> "osg::Shader* shader". I believe I encountered exactly this issue when >> working on the PSSM, please see a patch that I sent +/- a week ago. >> > > It has no effect, and anyways, it would not have explained why > setAmbientBias did not take effect either... > > Anything else? > > Just to reiterate, only setTextureSize() takes effect, not > setAmbientBias or addShader. Plus, it works in a straight OSG project > (modified from the osgshadow example), but not in our application. So > I'm just looking for possible explanations. I know fully that the > problem is in our code, I'm just puzzled as to what could cause that. > > Thanks, > > J-S > Hi,
have you run the project with OSG_NOTIFY_LEVEL=debug? There you can see, if your shader-program is faulty. Regards, Andreas _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

