Hello Wouter,
Wouter Wognum wrote:
> Hello,
>
> I am running into thesame problem (see original e-mail below).
> I'm trying to use OpenSG with VR Juggler (which works fine) and a
> shadowmapviewport (which doesn't).
>
> To use OpenSG with VR Juggler, you have to derive from the OpenSGApp class.
> This class uses a PassiveViewport and PassiveWindow by default.
> This works fine with my scene in OpenSG.
>
> But when I want to add shadows, I'll have to use the ShadowMapViewport.
> So I changed the OpenSGApp class, replacing the PassiveViewport by the
> ShadowMapViewport, and making additional settings to it.
ok.
> When I run my application now, all I get is a black screen.
> I attached the two versions of the VR Juggler OpenSGApp.
> The first one is the original, the second one uses the ShadowMapViewport.
can you try setting the environment variable OSG_LOG_LEVEL to DEBUG and
rerun, please ?
BTW what version of OpenSG is this and on what OS ?
> My light doesn't get added to the list of lightnodes yet, but even when
> you don't add lights, the result should just be shadowless, not black (at
> least, that's how it works in tutorial 24)
I assume that means the ShadowViewport works in the tutorial ?
> So; is the ShadowMapViewport even supposed to work with a PassiveWindow?
^^^^^
I'm nitpicking here, but you are using the ShadowViewport (no map in the
name), which IIRC is the recommended one.
Honestly, I don't know, but assuming that the OpenGL context is
activated properly, I'd say it should work.
Carsten
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users