Re: [osg-users] A simple osgActiveX (Embed OSG viewer into HTML VB.NET) example
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 [EMAIL PROTECTED] 写道: 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 [EMAIL PROTECTED] 写道: 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@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- http://osgscenemaker.googlepages.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] A simple osgActiveX (Embed OSG viewer into HTML VB.NET) example
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/3/24 [EMAIL PROTECTED]: 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 [EMAIL PROTECTED] 写道: 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.orghttp://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 万 玩 家 同 时 在 线 http://event.mail.163.com/chanel/click.htm?from=NO_26domain=163 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- http://osgscenemaker.googlepages.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] A simple osgActiveX (Embed OSG viewer into HTML VB.NET) example
It's OK to handle URLs because osgDB::readNodeFile() accept URLs as well. :) 在08-3-25,Brian [EMAIL PROTECTED] 写道: 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] A simple osgActiveX (Embed OSG viewer into HTML VB.NET) example
Only tested on Visual Studio 2005 SP1 and OSG 2.3.4 at present. [EMAIL PROTECTED] [EMAIL PROTECTED] 写道: 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] A simple osgActiveX (Embed OSG viewer into HTML VB.NET) example
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 [EMAIL PROTECTED] 写道: 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___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org