From: Braden M. <br...@en...> - 2005-12-21 06:29:13
|
On Tue, 2005-12-20 at 13:33 +0100, Marwan Badawi wrote: > Hello all, > > I have an application that uses OpenGL to do some pretty low level stuff > for manipulating geometries (I will pass the details). I would like to > use an openvrml::gl::browser (or another alternative) to draw vrml > objects into the already established OpenGL context, using it's > lighting, viewport, projection and modelview matrices. > > What would be the best way to do so? Presumably you mean openvrml::gl::viewer. As far as an OpenGL renderer is concerned, openvrml::gl::viewer is all that OpenVRML gives you. I suspect you could get the functionality you need by inheriting it and selectively overriding its methods. In the worst case (i.e., if you find openvrml::gl::viewer working against you too much), you can create your own renderer from scratch by inheriting openvrml::viewer just like openvrml::gl::viewer does. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |