[osg-users] Shadow in GraphicsWindowEmbedded

Robert Osfield robert.osfield at gmail.com
Thu Aug 16 02:04:50 PDT 2018

On Thu, 16 Aug 2018 at 09:29, Cong Ye <sirian_ye at hotmail.com> 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.


More information about the osg-users mailing list