OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Having an issue with OSG plugins error.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Brigham Keys, Esq.
Guest





PostPosted: Wed Apr 12, 2017 5:24 am    Post subject:
Having an issue with OSG plugins error.
Reply with quote

Hello all,
I have OpenSceneGraph set up in my project, however when I try to load any files I always get this error
Error reading file build/untitled.osgt: read error (Could not find plugin to read objects from file "build/untitled.osgt".)

Which I did not think I needed a plugin set up for the native format, it does this on .obj and on .dae parsing as well and the 3D model never gets loaded into the scene. I tried doing this with files that could not possibly be real and it gives me the exact same error (and not an error relating to the file not existing). Has anyone else experienced this issue?

--
Brigham Keys, Esq.
Software Maintainer

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10892

PostPosted: Wed Apr 12, 2017 7:34 am    Post subject:
Having an issue with OSG plugins error.
Reply with quote

Hi Brigham,

All the OpenSceneGraph loaders are built as plugins, this includes the
native .osg, .ive ,osgt, .osgb and .oisgx formats.

The OSG uses the Chain Of Responsibility pattern with it's loaders,
first attempting to load formats by the ReaderWrtier already
registered with the osgDB::Registry, if this doesn't succeed then a
plugin associated with the extension of the file is loaded. For files
like .osgt, .osgb and .osgx a extension alias is provided to map these
to the osg plugin.

If you don't want to dynamically link the OSG and load the plugins at
runtime then you can statically link the OSG including the plugins,
you'll need to explicitly link in the symbols to do this, the
osgstaticviewer example illustrates how this is done.

If you want to dynamically link the OSG, as is the default build and
OSG usage, you'll need to make sure the parent directory of plugins
is one your system file path or use the OSG_LIBRARY_PATH env var.

You don't mention anything about your OS, build tools, how you built
the OSG, how you installed the OSG so there isn't anything specific
can advise, hopefully the above will give you enough pointers to get
things working.

Robert.


On 12 April 2017 at 06:20, Brigham Keys, Esq. <> wrote:
Quote:
Hello all,

I have OpenSceneGraph set up in my project, however when I try to load any
files I always get this error

Error reading file build/untitled.osgt: read error (Could not find plugin to
read objects from file "build/untitled.osgt".)

Which I did not think I needed a plugin set up for the native format, it
does this on .obj and on .dae parsing as well and the 3D model never gets
loaded into the scene. I tried doing this with files that could not possibly
be real and it gives me the exact same error (and not an error relating to
the file not existing). Has anyone else experienced this issue?


--
Brigham Keys, Esq.
Software Maintainer





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Alberto Luaces
Guest





PostPosted: Wed Apr 12, 2017 7:39 am    Post subject:
Having an issue with OSG plugins error.
Reply with quote

"Brigham Keys, Esq." writes:

Quote:
Hello all,

I have OpenSceneGraph set up in my project, however when I try to load
any files I always get this error

Error reading file build/untitled.osgt: read error (Could not find
plugin to read objects from file "build/untitled.osgt".)

Which I did not think I needed a plugin set up for the native format,
it does this on .obj and on .dae parsing as well and the 3D model
never gets loaded into the scene. I tried doing this with files that
could not possibly be real and it gives me the exact same error (and
not an error relating to the file not existing). Has anyone else
experienced this issue?

Hi Brigham, this error could be caused by your system not finding the
plugin directory, or when it holds a different version of the plugins
(debug/release, any other version...)

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OpenGL error when using TextureBuffer MariusD General 1 Mon May 22, 2017 1:40 pm View latest post
No new posts Multi-pass rendering segfault issue qiaokun General 0 Mon May 15, 2017 10:36 am View latest post
No new posts Building OSG for Android -- Windowing... bwhaines Build system [build] 4 Sun Apr 23, 2017 2:01 am View latest post
No new posts issue with 3ds model after upgrading ... filnet General 5 Thu Feb 09, 2017 1:27 pm View latest post
No new posts osgShadow issue juilear General 0 Thu Feb 09, 2017 7:54 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP