Jason
Thanks for the quick response. Trying debug mode I get FindFileInPath() : trying XXX\OpenSceneGraph\bin\osgPlugins-2.7.3\osgdb_jpegd.dll ... FindFileInPath() : USING XXX\OpenSceneGraph\bin\osgPlugins-2.7.3\osgdb_jpegd.dll DynamicLibrary::failed loading "osgPlugins-2.7.3/osgdb_jpegd.dll" Trying osgviewer --image skymap.jpg worked fine. I'm using osgCppCLIDemo/osgNETDemo.exe as an example to get started using C# and OSG I got this file from http://www.openscenegraph.org/projects/osg/wiki/Community/LanguageWrappers The scenefile I'm trying is skydome.osg from the example osg dataset and it works fine with osgviewer. So obviously the error issue relates to the C#/OSG configuration. Are you using the example osgCppCLIDemo? Cheers Maya From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Beverage Sent: Thursday, October 30, 2008 6:34 PM To: OpenSceneGraph Users Subject: Re: [osg-users] OSG and C# Users Hi Maya, It's hard to tell what could be going on without some more information about your setup. One thing you should try is setting the OSG_NOTIFY_LEVEL environment variable to DEBUG to help get a clue of what is going on. If you build your app as a Console application you will see all of OSG's debug messages and might point you to the problem. I'm grasping at straws here and just guessing, but if you are using an OpenFileDialog to load your models, make sure that that RestoreDirectory property is set to true. If not, it will change your applications working directory and OpenSceneGraph won't know where to find your plugins. Jason On Thu, Oct 30, 2008 at 6:02 PM, usergroups_email <[EMAIL PROTECTED]> wrote: Jason The osgdb_jpg.dll and osgdb_gif.dll plugins are in the same location as the osgdb_gif and osgdb_rgb.dll, so I would expect them to work. Any other hints? thanks maya From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Beverage Sent: Thursday, October 30, 2008 3:46 PM To: OpenSceneGraph Users Subject: Re: [osg-users] OSG and C# Users Hi Maya, As long as you have the appropriate image plugin within your path (osgdb_jpg.dll, osgdb_gif.dll, etc) things should work fine. Make sure you are building these plugins and they are accessible. In theory, if the model works from osgviewer, it should work in your c# application. Good luck! Jason On Thu, Oct 30, 2008 at 3:18 PM, maya leonard <[EMAIL PROTECTED]> wrote: Hello hesicong, OSG and C# Users I'm trying to get textures to load within osg C# application and nothing happens. Certain textures such as rgb formats work, but jpg and gif do not work. You can replicate this problem with the osgnetdemo sample by hesicong and the sample skydome.osg sample. Do you know how to load jpg and gif textures within C# and osg? sincerely maya _____ Want to read Hotmail messages in Outlook? The Wordsmiths show you how. Learn Now <http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cn s%2120EE04FBC541789%21167.entry?ocid=TXT_TAGLM_WL_hotmail_092008> _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

