Re: [osg-users] Windows forms and c#
Smelik, R.M. (Ruben) wrote: > Hi Paul, > Nice, I think that would be interesting. It would make it far easier for .NET > developers to choose to use OSG for their 3D rendering. I think it would be a very valuable addition. This is a hard bridge to cross for someone who isn't knowledgeable in .NET. -- Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com PixelSense Landsat processing now available! http://www.alphapixel.com/demos/ "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Hi Paul, Nice, I think that would be interesting. It would make it far easier for .NET developers to choose to use OSG for their 3D rendering. Kind regards, Ruben -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul McIntosh Sent: woensdag 24 juni 2009 5:40 To: OpenSceneGraph Users Subject: Re: [osg-users] Windows forms and c# Would there be enough interest in an osgViewerActiveX? I have made a control which can be dropped into managed forms. This is for a particular purpose, however if there is enough interest I don't mind redoing it in a generic form and have it added as a osg project list (and maintaining it). If you just want to hack my code as-is then I can email you the code (let me know paul dot mcintosh at internetscooter dot com). Cheers, Paul -- Paul McIntosh www.internetscooter.com > ---Original Message--- > From: buidinhba5 > Subject: Re: [osg-users] Windows forms and c# > Sent: 24 Jun '09 13:14 > > Hi All > > I have download osgNETDemo.rar from > http://www.april1985.com/2008/02/19/osgnetdemo/#more-322 > > Download link : http://www.april1985.com/?dl_id=7 > > I Use OSG 2.8.1 , and in VSProj , in project I add /Lib and /include > of OSG > 2.8.1 > > In VS 2005 > > In debug mode I compile success but when I run it get error ; The > application failed to initialize properly (0xc015002). Click on OK to > terminate the application > > I Think this version OSG is newer and not compatible in this Project > , who can show me version Compatible or how to fix this problem . > Thank ^^ > > > > I also read about FAQ: > > > > http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembe > danOSG > viewerina.NETcontrol > > > > I make another project but when I only add library in > stdafx.h not use it, it take many time to compile !^! I don't know > why K > > //TODO: reference additional headers your program requires here > > #include > > #include > > #include > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > Thanks, > > Ba. > > > > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of > Smelik, R.M. (Ruben) > Sent: Monday, June 22, 2009 1:34 PM > To: OpenSceneGraph Users > Subject: Re: [osg-users] Windows forms and c# > > > > Dear Ba, > > > > Here's a working example of integrating OSG with C++/CLI and > WinForms, which was made by Hesicong a year ago: > > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org > /2008- > February/007430.html > > You can integrate this into a Visual Studio solution with a C# project. > > > > Kind regards, > > > Ruben > > > > _ > > From: osg-users-boun...@lists.openscenegraph.org on behalf of > buidinhba5 > Sent: Mon 6/22/2009 6:35 AM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] Windows forms and c# > > Hi Jason Beverage > You can give more information use c++/cli to make a managed control > ,some example or link to learn I have seach in Google and not see > more about how to use c++/cli, it seem to be not have more example > and turtorial can you give some help > > Thanks, > Ba. > > > > -Original Message- > > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is > a reply to the poster that asked about using OSG and c# and > > mentioned me :) > > Back when I first wrote that message I was using > Tao and osgdotnet in > some testing. These days the absolute best way > to use osg with c# IMO > is to use c++/cli to make a managed control > and just use osg from > native c++. You have full access to osg with > no need to write > wrappers. Osgdotnet seems to have been abandoned > anyway and hasn't > been updated in quite some time. > > > > Thanks! > > > > Jason > > > _
Re: [osg-users] Windows forms and c#
Hi Ba, I don't think there's an incompatibility between the OSGViewer .NET Control example and OSG 2.8.1. For instance, I'm using it with OSG 2.8.0. The error could just be as simple that the OSG .dll's are not found when launching the app. * Did you compile the Debug version of OSG 2.8.1? (This would result in dll's with the -d suffix) * Are your environment vars set? Especially the OSG_BIN_PATH, add it to your PATH as well: http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecific s/VisualStudio * Did you debug run the application from within Visual Studio? You can also use depends.exe to check for missing dll's for your app. Hope this helps a bit, Ruben From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of buidinhba5 Sent: woensdag 24 juni 2009 5:14 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi All I have download osgNETDemo.rar from http://www.april1985.com/2008/02/19/osgnetdemo/#more-322 Download link : http://www.april1985.com/?dl_id=7 I Use OSG 2.8.1 , and in VSProj , in project I add /Lib and /include of OSG 2.8.1 In VS 2005 In debug mode I compile success but when I run it get error ; The application failed to initialize properly (0xc015002). Click on OK to terminate the application I Think this version OSG is newer and not compatible in this Project , who can show me version Compatible or how to fix this problem . Thank ^^ I also read about FAQ: http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembeda nOSGviewerina.NETcontrol I make another project but when I only add library in stdafx.h not use it, it take many time to compile !^! I don't know why K //TODO: reference additional headers your program requires here #include #include #include #include #include #include #include #include #include #include #include #include #include Thanks, Ba. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Smelik, R.M. (Ruben) Sent: Monday, June 22, 2009 1:34 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Windows forms and c# Dear Ba, Here's a working example of integrating OSG with C++/CLI and WinForms, which was made by Hesicong a year ago: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2 008-February/007430.html You can integrate this into a Visual Studio solution with a C# project. Kind regards, Ruben From: osg-users-boun...@lists.openscenegraph.org on behalf of buidinhba5 Sent: Mon 6/22/2009 6:35 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi Jason Beverage You can give more information use c++/cli to make a managed control ,some example or link to learn I have seach in Google and not see more about how to use c++/cli, it seem to be not have more example and turtorial can you give some help Thanks, Ba. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is a reply to the poster that asked about using OSG and c# and > mentioned me :) > > Back when I first wrote that message I was using Tao and osgdotnet in > some testing. These days the absolute best way to use osg with c# IMO > is to use c++/cli to make a managed control and just use osg from > native c++. You have full access to osg with no need to write > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > been updated in quite some time. > > Thanks! > > Jason ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Would there be enough interest in an osgViewerActiveX? I have made a control which can be dropped into managed forms. This is for a particular purpose, however if there is enough interest I don't mind redoing it in a generic form and have it added as a osg project list (and maintaining it). If you just want to hack my code as-is then I can email you the code (let me know paul dot mcintosh at internetscooter dot com). Cheers, Paul -- Paul McIntosh www.internetscooter.com > ---Original Message--- > From: buidinhba5 > Subject: Re: [osg-users] Windows forms and c# > Sent: 24 Jun '09 13:14 > > Hi All > > I have download osgNETDemo.rar from > http://www.april1985.com/2008/02/19/osgnetdemo/#more-322 > > Download link : http://www.april1985.com/?dl_id=7 > > I Use OSG 2.8.1 , and in VSProj , in project I add /Lib and /include of OSG > 2.8.1 > > In VS 2005 > > In debug mode I compile success but when I run it get error ; The > application failed to initialize properly (0xc015002). Click on OK to > terminate the application > > I Think this version OSG is newer and not compatible in this Project , who > can show me version Compatible or how to fix this problem . Thank ^^ > > > > I also read about FAQ: > > > http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembedanOSG > viewerina.NETcontrol > > > > I make another project but when I only add library in stdafx.h > not use it, it take many time to compile !^! I don't know why K > > //TODO: reference additional headers your program requires here > > #include > > #include > > #include > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > #include > > #include > > > > Thanks, > > Ba. > > > > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Smelik, > R.M. (Ruben) > Sent: Monday, June 22, 2009 1:34 PM > To: OpenSceneGraph Users > Subject: Re: [osg-users] Windows forms and c# > > > > Dear Ba, > > > > Here's a working example of integrating OSG with C++/CLI and WinForms, which > was made by Hesicong a year ago: > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008- > February/007430.html > > You can integrate this into a Visual Studio solution with a C# project. > > > > Kind regards, > > > Ruben > > > > _ > > From: osg-users-boun...@lists.openscenegraph.org on behalf of buidinhba5 > Sent: Mon 6/22/2009 6:35 AM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] Windows forms and c# > > Hi Jason Beverage > You can give more information use c++/cli to make a managed control ,some > example or link to learn > I have seach in Google and not see more about how to use c++/cli, it seem to > be not have more example and turtorial can you give some help > > Thanks, > Ba. > > > > -Original Message- > > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > > Sent: Sunday, June 21, 2009 12:16 AM > > To: OpenSceneGraph Users > > Subject: [osg-users] Windows forms and c# > > > > Hi all, > > > > This is a reply to the poster that asked about using OSG and c# and > > mentioned me :) > > > > Back when I first wrote that message I was using Tao and osgdotnet in > > some testing. These days the absolute best way to use osg with c# IMO > > is to use c++/cli to make a managed control and just use osg from > > native c++. You have full access to osg with no need to write > > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > > been updated in quite some time. > > > > Thanks! > > > > Jason > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > This e-mail and its contents are subject to the DISCLAIMER at > http://www.tno.nl/disclaimer/email.html > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Hi All I have download osgNETDemo.rar from http://www.april1985.com/2008/02/19/osgnetdemo/#more-322 Download link : http://www.april1985.com/?dl_id=7 I Use OSG 2.8.1 , and in VSProj , in project I add /Lib and /include of OSG 2.8.1 In VS 2005 In debug mode I compile success but when I run it get error ; The application failed to initialize properly (0xc015002). Click on OK to terminate the application I Think this version OSG is newer and not compatible in this Project , who can show me version Compatible or how to fix this problem . Thank ^^ I also read about FAQ: http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembedanOSG viewerina.NETcontrol I make another project but when I only add library in stdafx.h not use it, it take many time to compile !^! I don't know why K //TODO: reference additional headers your program requires here #include #include #include #include #include #include #include #include #include #include #include #include #include Thanks, Ba. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Smelik, R.M. (Ruben) Sent: Monday, June 22, 2009 1:34 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Windows forms and c# Dear Ba, Here's a working example of integrating OSG with C++/CLI and WinForms, which was made by Hesicong a year ago: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008- February/007430.html You can integrate this into a Visual Studio solution with a C# project. Kind regards, Ruben _ From: osg-users-boun...@lists.openscenegraph.org on behalf of buidinhba5 Sent: Mon 6/22/2009 6:35 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi Jason Beverage You can give more information use c++/cli to make a managed control ,some example or link to learn I have seach in Google and not see more about how to use c++/cli, it seem to be not have more example and turtorial can you give some help Thanks, Ba. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is a reply to the poster that asked about using OSG and c# and > mentioned me :) > > Back when I first wrote that message I was using Tao and osgdotnet in > some testing. These days the absolute best way to use osg with c# IMO > is to use c++/cli to make a managed control and just use osg from > native c++. You have full access to osg with no need to write > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > been updated in quite some time. > > Thanks! > > Jason ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html <>___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembedanOSGviewerina.NETcontrol Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Mon, Jun 22, 2009 at 12:35 AM, buidinhba5 wrote: > Hi Jason Beverage > You can give more information use c++/cli to make a managed control ,some > example or link to learn > I have seach in Google and not see more about how to use c++/cli, it seem > to > be not have more example and turtorial can you give some help > > Thanks, > Ba. > > > > -Original Message- > > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > > Sent: Sunday, June 21, 2009 12:16 AM > > To: OpenSceneGraph Users > > Subject: [osg-users] Windows forms and c# > > > > Hi all, > > > > This is a reply to the poster that asked about using OSG and c# and > > mentioned me :) > > > > Back when I first wrote that message I was using Tao and osgdotnet in > > some testing. These days the absolute best way to use osg with c# IMO > > is to use c++/cli to make a managed control and just use osg from > > native c++. You have full access to osg with no need to write > > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > > been updated in quite some time. > > > > Thanks! > > > > Jason > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Hi Ba, maybe i could recommend you two books about C++/CLI: First, "Pro Visual C++/CLI and the .NET 2.0 Platform" by Stephen R.G. Fraser. This is an introductory manual to .NET from the C++/CLI perspective. It's like a beginner C# book, but instead using c#, it uses C++/CLI. Here you will find how to use the managed .NET API from C++/CLI. Second, "C++/CLI in Action" by Nishant Sivakumar. This book complements the first one, and it speaks more about interop and has many examples and test cases, for example, how to build a managed wrapper around a native library (the way to go with OSG and .NET). A side note, Microsoft changed C++ drastically from .NET 1.1 to 2.0. There are two managed C++ languages specifications. The first one (already obsolete) is Managed C++. This was the first attempt of Microsoft to "bridge the gap". Not very nice. The second one, C++/CLI, is the last attempt and is more mature and easier to grasp. Forget all you know about Managed C++, and use only C++/CLI. This ones confused me at first, so, if you find references regarding Managed C++, ignore them. I think "Managed C++" and "C++\CLI" are the proper terms to search and separate them. Of course, if you are new to C++, grasp also a good book about C++ and STL. It will help you to better understand OSG. Sorry OSG community for this off-topic message. Hope this can help you. Best regards. Himar. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Dear Ba, Here's a working example of integrating OSG with C++/CLI and WinForms, which was made by Hesicong a year ago: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-February/007430.html You can integrate this into a Visual Studio solution with a C# project. Kind regards, Ruben From: osg-users-boun...@lists.openscenegraph.org on behalf of buidinhba5 Sent: Mon 6/22/2009 6:35 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi Jason Beverage You can give more information use c++/cli to make a managed control ,some example or link to learn I have seach in Google and not see more about how to use c++/cli, it seem to be not have more example and turtorial can you give some help Thanks, Ba. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is a reply to the poster that asked about using OSG and c# and > mentioned me :) > > Back when I first wrote that message I was using Tao and osgdotnet in > some testing. These days the absolute best way to use osg with c# IMO > is to use c++/cli to make a managed control and just use osg from > native c++. You have full access to osg with no need to write > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > been updated in quite some time. > > Thanks! > > Jason ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html <>___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows forms and c#
Hi Jason Beverage You can give more information use c++/cli to make a managed control ,some example or link to learn I have seach in Google and not see more about how to use c++/cli, it seem to be not have more example and turtorial can you give some help Thanks, Ba. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is a reply to the poster that asked about using OSG and c# and > mentioned me :) > > Back when I first wrote that message I was using Tao and osgdotnet in > some testing. These days the absolute best way to use osg with c# IMO > is to use c++/cli to make a managed control and just use osg from > native c++. You have full access to osg with no need to write > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > been updated in quite some time. > > Thanks! > > Jason ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Windows forms and c#
Hi all, This is a reply to the poster that asked about using OSG and c# and mentioned me :) Back when I first wrote that message I was using Tao and osgdotnet in some testing. These days the absolute best way to use osg with c# IMO is to use c++/cli to make a managed control and just use osg from native c++. You have full access to osg with no need to write wrappers. Osgdotnet seems to have been abandoned anyway and hasn't been updated in quite some time. Thanks! Jason Sent from my iPhone ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org