Linking osg plugins #1205
-
Hello, I'm following the "OpenSceneGraph Beginner's Guide" book mentioned on the osg website.
I'm getting error: The code runs and outputs an empty blue fullscreen window. But the model shown in the book is not shown. I'm using the following environment: vcpkg dry run result:
IDE: CLion
OpenSceneGraph Data: OpenSceneGraph-Data-3.4.0.zip I've searched for this issue and everyone says that adding osgPlugin folder to env variables, I tried that but it doesn't work for me (Maybe I'm doing something wrong?), please help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
THe OSG plugins should normally be placed in a subdirectory below the library directory so just setting PATH variable to that library directory should be enough, The OSG_FILE_PATH is used for data files. |
Beta Was this translation helpful? Give feedback.
-
On Sat, 11 Feb 2023 at 11:50, Harsh Patel ***@***.***> wrote:
I tried your solution, but it didn't work, still has the same error.
The Plugins folder contains all .dll files, and the lib directory which is
in the path contains .lib files.
Also, I removed the plugin's path from the OSG_FILE_PATH.
The OSG has a notification system that you can alter the verbosity of which
can help spot what paths the plugins are being search for.
set OSG_NOTIFY_LEVEL=DEBUG
Then run the application and look through the output. You may want to
write the output to a file as it'll be quite verbose. When looking through
you see the paths the OSG is checking and this might give you a clue to
what is going wrong.
…--
As a general comment, the OSG project, like OpenGL that it's based on, is
now in maintenance mode and my expectation is it'll primarily be used for
existing applications that already use the OSG.
For new developers working on new applications then it would probably be
better to look at the VulkanSceneGraph, while it's still early in it's life
so doesn't yet have books written about it, it's much more modern and
forward looking.
Message ID:
<openscenegraph/OpenSceneGraph/repo-discussions/1205/comments/4942806@
github.com>
|
Beta Was this translation helpful? Give feedback.
THe OSG plugins should normally be placed in a subdirectory below the library directory so just setting PATH variable to that library directory should be enough,
The OSG_FILE_PATH is used for data files.