[osg-users] Shadow in GraphicsWindowEmbedded

Robert Osfield robert.osfield at gmail.com
Thu Aug 16 00:11:05 PDT 2018

Hi Cong,

On Thu, 16 Aug 2018 at 06:32, Cong Ye <sirian_ye at hotmail.com> wrote:
> I agree this is a problem. But i don't think it causes the shadow not displays in embedded window problem. Could I ask where can I specific the graphicscontext to shadow camera? That may be the problem? Didn't find any methods in shadow technology to do that.

It all depends on how you are doing shadowing.

If you are using the osgShadow NodeKist then it'll create FBO's for
the shadow map generation and won't need a separate graphics context,
just put a ShadowedScene node into your scene graph as per the
osgshadow example and you should be OK.

If you are rolling your own shadows then you'll need to explain more
about your setup for us to give you direction.


More information about the osg-users mailing list