Hey all, Thank you for the help so far, I'm making progress.
I have been using this tutorial: http://www.codeproject.com/opengl/opengl_activex.asp and the "testPassiveWindow" code, to combine OpenSG, OpenGL and ActiveX. I have one remaining issue though. Because, I don't want to create a window myself, I leave out "glutCreateWindow("OpenSG");" and "glutMainLoop();". But then I receive a nullpointer error from PassiveWindow::Init(). It happens in this piece of code: void OSG::Window::frameInit(void) { ... const char *version = reinterpret_cast<const char *>(glGetString(GL_VERSION)); int major = atoi(version); ... } Apparantly there is something wrong with 'version'. I'm guessing the glutCreateWindow initializes this ? Is there another way to do the initialisation that glutCreateWindow does, without creating a window ? Or is there something else going on here? (It all works when I do use glutCreateWindow. The window is not actually displayed until glutMainLoop is called, which I don't. It's a solution, but obviously not a nice one.) Johan Robben Software Engineer [EMAIL PROTECTED] Tel: +32 16 74 01 77 Fax: +32 16 74 01 02 Metris Headquarters Interleuvenlaan 86 3001 Leuven Belgium www.metris.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Lindblom Sent: Friday, August 10, 2007 10:48 AM To: [email protected] Subject: Re: [Opensg-users] R: R: ActiveX component Antonio Bleile wrote: >> I suppose it could be used in a Java-applet, but I don't know anything >> about security rules, local dlls, etc. But if Java3D manages to do it, >> there ought to be a way. This is Windows only, btw. >> > > Well Java3d deployment is quite crappy, but it could be done the same > way it works for JOGL, you just have to check a signed jar and then > you can deploy the native libs, quite complicated but it works somehow! > > https://jogl-demos.dev.java.net/applettest.html > Good enough, I'd say. :) >> I tried to compile it, but it needed some more code. (Shame on me for >> posting incomplete sources) >> >> Do you need a demo? I'm a bit busy at the moment. It's really just a >> Java window with an OpenSG canvas drawing a torus. Nothing fancy. >> > > Nono, don't need a demo, but it would have been cool to see a demo on > the web. Perhaps we can assemble something.... :) > True. I can try to dig up the missing java files during next week. It shouldn't take that long. Cheers, /Marcus ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
