Hi Ran,

On 6 May 2015 at 02:43, Ran Chao <[email protected]> wrote:

> my program just shows a earth model, and i want to add camera(use addSlave
> function) dynamically(such as i press a number key--'1').But when i run the
> program, it appears a wanring: detected OpenGL error 'invalid enumerant' at
> After Renderer::compile. And the image of the camera is dark.
>   who have met this problem? i hope that you can give me some
> advices.[/url]
>

Too few details for us to know what might be amiss.

As a general note, it's better to set up the Camera's you need and then
enable/disable a Camera via setNodeMask() when you need or don't need
them.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to