[osg-users] add camera dynamically
Robert Osfield
robert.osfield at gmail.com
Mon Sep 7 01:13:05 PDT 2015
Hi Ran,
On 6 May 2015 at 02:43, Ran Chao <1530904175 at qq.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150907/2dc97e03/attachment-0003.htm>
More information about the osg-users
mailing list