[osg-users] A simple osgActiveX (Embed OSG viewer into HTML & VB.NET) example
xyc508 at 163.com
xyc508 at 163.com
Mon Mar 31 07:15:55 PDT 2008
Hi,
I have downloaded osgActiveX ,I use osgText::text to write text on the screen ,firstly it display the text,but after the model loaded ,the text
disappear,what's the reason? could give some help? Thanks.
xyc508
在2008-03-25,Brian <osgscene at gmail.com> 写道:
Hi Wang Rui,
Thanks for sharing your code. I have been writing a plugin for Firefox using OSG.
Does your current version handle URLs or just local files?
Brian
在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
中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://osgscenemaker.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080331/0be1304f/attachment.html
More information about the osg-users
mailing list