Horde3D

Next-Generation Graphics Engine
It is currently 26.11.2020, 12:52

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 01.08.2012, 05:11 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Is there anyway to add attachments without a plugin? Like raw text or something?

Also does anyone run the editor using plugins on Linux? All the plugin configuration I've found refers to .dll files.


Top
 Profile  
Reply with quote  
PostPosted: 01.08.2012, 06:15 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
I thought about it some years ago but never implemented anything like that. Since the GameEngine was something that was only compilable under Windows for a long time I never did any tests with plugins under Linux. But in theory there shouldn't be any problem to use plugins under Linux too.


Top
 Profile  
Reply with quote  
PostPosted: 01.08.2012, 22:49 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
So how do the plugins actually work? I see where you point to a plugins folder in the editor's settings, which is where I've placed my linux compiled .so files, but it doesn't seem to be bringing anything in.

In the the SVN repository, there is this file: http://mm-werkstatt.informatik.uni-augsburg.de/public/Horde3D/trunk/Tools/Horde3DEditor/bin/plugin.cfg which refers to a bunch of plugin dlls. Where does this file go? Is it still necessary?


Top
 Profile  
Reply with quote  
PostPosted: 02.08.2012, 06:06 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
There are two types of plugins: the editor plugins that are using Qt's plugin mechanism and the GameEngine's components which are using the plugin.cfg file. I'm not sure if it's still be used. Maybe nuschii can tell you something about it, since he mentioned that he ported the GameEngine to linux some time ago.
The Qt mechanism should try to load editor plugins from the folder configured in the editor settings. AFAIK if there is an error during the loading there should be an error message in the console.


Top
 Profile  
Reply with quote  
PostPosted: 02.08.2012, 18:20 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Volker wrote:
AFAIK if there is an error during the loading there should be an error message in the console.


Yeah I have the .so plugins in that folder, but I'm not seeing anything in the logs referring to loading or erroring out plugins, and I'm not seeing anything under the Tools menu, and the add attachment menu option is always grey'd out.

I'll start looking through the source and see if it's looking specifically for .dll's or something.


Top
 Profile  
Reply with quote  
PostPosted: 02.08.2012, 19:13 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Nope, it looks like it's looking for .so files on linux:

Returns true if fileName has a valid suffix for a loadable library; otherwise returns false.

From: http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/da/d77/class_q_library.html#401854f4aeeeb725d104d14f08bfb16a
Quote:
Platform Valid suffixes Windows .dll Unix/Linux .so AIX .a HP-UX .sl Mac OS X .dylib, .bundle, .so


Top
 Profile  
Reply with quote  
PostPosted: 03.08.2012, 23:44 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
Regarding the Add attachment gray out, you have to activate a plugin when creating a new scene. The last wizard page should list all available plugins. Did you have implemented the AttachmentPlugins interface in your plugins like it is done in the GameControllerAttachment.h/.cpp ?
Check especially the Q_EXPORT_STATIC_PLUGIN and Q_EXPORT_PLUGIN2 statements in your cpp file. Otherwise the Qt plugin loader won't be able to load your plugin.

For scene node enhencements there is the ExtSceneNodePlugIn interface and for Tools you have to implement ToolPlugIn interface.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group