Hi Robert Thanks very much for your reply. I check the osgQt after your suggestion, I know the problem now. However, it still doesn't work after I add gl_back. As it is not high priority, I will implement shadow myself later.
robertosfield wrote: > On Thu, 16 Aug 2018 at 09:29, Cong Ye <> wrote: > > > I am currently using the osgShadow NodeKist. It only works when I use > > osgViewer as default graphics context. Now the case is, I have to assign a > > third party graphics context to the main camera as we are using a Qt Gui > > for buttons etc. After I assign osgViewer::GraphicsWindowEmbedded to the > > main camera, the scene cannot be drawn. Only clear color is displayed. So I > > assume that since the graphics context has been changed, do i have to > > specify where the shadow texture need to be binded? > > > > There isn't any special you need to do with osgShadow, it'll be > looking after itself. > > The problem you have is mostly likely down to the issues with the Qt > integration, and using osgShadow isn't revelling this exisiting > problem rather than causing it. > > My best guess is that you haven't set the Draw/ReadBuffers correctly > for you viewer level Cameras. > > If this doesn't work then please think about using osgQt. > > Robert. > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74620#74620 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org