Hi J-S
Thanks for your reply!

I think fork is more sharp :). Ha, I am sorry for the wrong words.

Actually, I found that the 3rd part lib I download from osg office site is
not include the libpng(d).dll file.

The libpng.dll I used is complied by the newest version download from libpng
office site. It's libpng14(d).dll. Is this way any problem?



On Fri, Oct 15, 2010 at 8:15 PM, Jean-Sébastien Guay <
[email protected]> wrote:

> Hello Lee,
>
>  Hi forks.
>>
>
> I prefer to think of myself as a spoon. SPOOOOOOOON! Sorry, I had to. :-)
>
>
>  1 When I run it via visual studio, I get information that can not load
>> island.ive. But I have download the oceandata and put it into resources
>> directory just like osgocean wiki told.
>>
>
> If you run in Visual Studio, the default working directory is where the
> executable is located. If you go into the oceanExample's project properties,
> Debugging section, you can set the Working Directory to where the resources
> directory is located (the base of your osgOcean checkout), and then
> islands.ive and the skydome images should be found.
>
>
>  2 When I run it from bin directory by .exe, I get information that can
>> not found plug-in to handle png files. But i already have gotten the
>> libpng.lib file and set that directory by system variable.
>>
>
> You need to have the OSG libraries and its dependencies on your system
> PATH. This means you need to put on your PATH the directory that contains
> osgXX-osg.dll and others, and the PNG plugin needs libpng13.dll which needs
> to be in your PATH as well. I generally copy the contents of the
> 3rdparty\bin directory into my OpenSceneGraph\bin directory so that I'm sure
> all OSG's dependencies will be found if OSG itself is.
>
>
>> I have checked the setting, and both osgXX-osg.dll and 3rd plugin are all
set corrected by PATH. But why the "missing plug-in error" disappear in
Visual Studio way, while appear in .exe double clicked from bin directory
way?

>
>  In both situations, the sky was not rendered.
>>
>
> See above, the skydome images are in the resources folder and are PNG
> images, thus will only be found and loaded if a) you run the oceanExample
> from the correct working directory, and b) the png plugin can load them.
>
> Hope this helps,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>

Thanks for your suggestions!

-- 
Best  Regards!
Yours Lee
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to