Hello Christian,
apologies for the delayed reply, I was out of the office last week.
Christian Bar wrote:
> Hello everyone :)
> I have one scene and two different viewport on it (one should be a
> sort of first-person view, and the other a sort of map).
> I would like to enable illumination on the first person viewport, but
> not into the map one.
> In other words, how can I disable lighting when I render the scene as
> seen from the map viewport? I saw into osg::RenderAction something
> related to lights, but I didn't manage to use it.. :(
I don't think there is a central switch on the RenderAction that you can
flip to turn off lighting. However, you can just turn of all lights
(Light::setOn(false)). In order to not have a completely black scene you
probably also have to modify the materials of all objects in the scene,
since they now need to be visible despite the lack of light sources;
SwitchMaterial might be useful to toggle between the two material sets.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users