[osg-users] A simple osgActiveX (Embed OSG viewer into HTML & VB.NET) example

xyc508 at 163.com xyc508 at 163.com
Sun Mar 23 21:35:12 PDT 2008


Hi,
 
What's the version of OSG and Virual Studio you are running of osgActiveX?
I meet more error while rebuild the project and regsvr32.exe the osgMFCAx.ocx.
could give some help.Thank you.
 
 
DonZin 2006.3.24

在2008-03-18,"Wang Rui" <wangray84 at gmail.com> 写道:

Hello all,
 
The attached .zip file is a very simple project which attempted to embed an OSG viewer into HTML pages and Visual Basic projects. Both are implemented using ActiveX (.OCX) controls. There was a classic project named osgAX which had done much better in a similar way, but it seemed to be discontinued. (And I could not find the source code anymore) I wish to start a new OSG ActiveX project for web browsing. So this naive osgActiveX comes into being. Hope it will help rookies of OSG like me. :)
There are only two methods to operate the OSG ActiveX control at present: GetFileName, which provides both a input interface to load 3D/2D files from the local path or a URL address and an output interface to get the current running model file; ResetOSG, which simply reset the attributes of OSG viewer when resizing.
 
Please rename the .zip_ file to .zip (GMail refuse to attach the .ocx files directly, sorry for the inconvenient). Be sure to rebuild the project and use regsvr32.exe to make the ocx file available.
 
The 'osgActiveX' was first distributed on www.osgChina.org. Is it possible to distribute the project on the English website, too?
Thanks a lot for criticizing and advising.
 
Wang Rui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080324/1da963b9/attachment.html 


More information about the osg-users mailing list