Hello Fabrice,
On Mon, 2007-09-10 at 13:26 +0200, Decle Fabrice wrote:
> Hi all!
>
> In my program, I dont't use the Simple Scene Manager, and sometimes (for
> example when I go close to an object), lights suddenly switch off... If
> I move, it sometimes switches on again...
this might be because the lights are subject to frustum culling. If your
lights are close to the root of the scenegraph you could give them an
infinite bounding volume:
NodePtr lightNode;
beginEditCP(lightNode, Node::VolumeFieldMask);
lightNode->getVolume().setInfinite(true);
endEditCP(lightNode, Node::VolumeFieldMask);
If your lights are deeper down in the scene, especially if they are
below geometry this can prevent frustum culling of that geometry though.
> With OpenSG 1.6, there were no problems...
Hm, I think lights were always subject to frustum culling, so this seems
to suggest it is something different, although I can not really think of
anything else that would make a light disappear.
> If I use the SSM, there are no problems too...
By default the SSM adds a headlight, maybe it was not possible to notice
the lights going off because of it?
Can you try adjusting the lights bounding volume? If that does not help,
please get back to the list, preferably with a description of your
scene, in terms of where in the graph lights, camera(s) and geometry
are.
Thanks,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users