On Sat, 2006-01-21 at 17:25 +0100, Michael Sögtrop wrote:
> Hi,
>
> I am using OpenVRML to render VRML scenes among other things into an
> GL context. This is fairly straight forward with an overloaded
> openvrml::gl::viewer that overlaods funcions like initialization and
> view port setting with empty or cut down functions and works pretty
> well. My only problem is, that my app has multiple windows with each
> having its own GL context, and I want to draw one scene in multiple of
> these windows. OpenVRML seems to remember a lot of the GL context it
> used first in its scene node structures.
[snip]
> Is there some intended way to get around this or am I doing something
> fundamentaly wrong by assuming that one browser/scene can be reused
> for different views?
Unfortunately its simply not supported. It's something I'd like to
support; but as you've discovered, the library basically assumes a 1:1
relationship between a browser and a viewer.
> When I am using one browser per view and never switch the view of a
> browser, everything works fine, but this isn't a good solution.
I'd welcome a patch to fix the library to support this; however, it's a
nontrivial amount of work.
--
Braden McDaniel e-mail: <br...@en...>
<http://endoframe.com> Jabber: <br...@ja...>
|