Hi Stephen,

Using OSG with .NET is possible; I've been doing it for a while now.
However, it is *not* simple, easy, or quick.  Interoperating between the
.NET "managed" environment and the OSG "native" environment using
Microsoft's C++/CLI involves substantial effort and complexity if you
are using OSG in a non-trivial manner.  That basically eliminates most
of the advertised advantage of developing in .NET (and then some) unless
you are writing substantial .NET-only code for the rest of your
application.

If you're still determined to use .NET your best bet may be to try to
generate C# wrappers using the SWIG bindings put together recently by
Hartmut Seichter.  Otherwise the path of least resistance is likely to
be a pure-native application using MFC or another GUI library like Qt,
wxWidgets, or FLTK.

-Mike


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Northcott
Sent: Sunday, October 08, 2006 5:02 AM
To: [email protected]
Subject: [osg-users] .net and Open Scene Graph - Would appreciate
someadvice.. Thanks

Hello everyone, again!!

I have found very sparse discussion of this on the mailing lists, and  
am confused..
I assumed OSG worked with both Win32 and .NET, but am wondering if  
that is not the case.

I have been porting my os x app to Windows, but with limited  
experience of the platform I chose to go with the environment  
supplied in the Open Scene Graph distribution.. Basically I modified  
osgbillboard and went on from there..

All is fine with that, and I have an app, but with quite basic  
windowing functions. I have foundd the native Win32 environment quite  
time consuming and relatively complicated to get any useful GUI work  
done on. I have to say I was also warned before I embarked on this to  
try and get to .NET if I can! I now understand why!

Anyway, it appears that building this app is going to be much easier  
and better using .NET

I presumed this would be very easy, and so constructed a .NET  
application and then tried to include the osg include files and libs  
to this new version of my app.

But on building I get lots of warnings : "C4272 must specify native  
calling convention when importing a funtion"

The corresponding functions then give linking errors as they cannot  
be referenced.

Is this something I am going to have to give up on, or is it possible  
to use OSG with .NET, and is it a simple configuration that I am  
missing...

Again, any help / advice much appreciated.

Kind regards,
Stephen.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to