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

Wang Rui wangray84 at gmail.com
Tue Mar 18 07:26:33 PDT 2008


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/20080318/37b98ddc/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htmlOSG.PNG
Type: image/png
Size: 182212 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080318/37b98ddc/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VbOSG.png
Type: image/png
Size: 94153 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080318/37b98ddc/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgActiveX.zip_
Type: application/x-zip-compressed
Size: 163875 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080318/37b98ddc/attachment-0001.bin 


More information about the osg-users mailing list